@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800;900&display=swap");

:root {
  --maroon: #800000;
  --maroon-dark: #5f0000;
  --gold: #b77920;
  --cream: #fffdf9;
  --cream-2: #fbf5ed;
  --text: #201d1d;
  --muted: #6e6762;
  --line: #eadfce;
  --green: #16a34a;
  --shadow-sm: 0 12px 32px rgba(38, 25, 16, 0.08);
  --shadow-md: 0 22px 60px rgba(38, 25, 16, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(
      circle at 80% 14%,
      rgba(183, 122, 31, 0.12),
      transparent 28%
    ),
    radial-gradient(circle at 18% 20%, rgba(128, 0, 0, 0.055), transparent 30%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.fs-dash-page {
  min-height: 100vh;
}

/* NAV */
.fs-dash-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 18px 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(38, 25, 16, 0.06);
}

.fs-dash-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fs-dash-brand__mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}

.fs-dash-brand__mark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.fs-dash-brand strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.fs-dash-brand strong span {
  color: var(--maroon);
}

.fs-dash-brand small {
  display: block;
  margin-top: 5px;
  color: #8b5b18;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fs-dash-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.fs-dash-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  color: #292525;
  font-size: 15px;
  font-weight: 800;
}

.fs-dash-links a i {
  font-size: 21px;
}

.fs-dash-links a.active {
  color: var(--maroon);
}

.fs-dash-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 4px;
  border-radius: 999px;
  background: var(--maroon);
}

.fs-dash-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fs-dash-bell {
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #272525;
  font-size: 23px;
  cursor: pointer;
}

.fs-dash-bell span {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.fs-dash-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fs-dash-avatar-btn span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.fs-dash-dropdown {
  position: absolute;
  right: 0;
  top: 68px;
  width: 220px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.fs-dash-dropdown.is-open {
  display: grid;
}

.fs-dash-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.fs-dash-dropdown a:hover {
  background: #fff6e7;
}

.fs-dash-dropdown a.danger {
  color: var(--maroon);
}

.fs-dash-menu-btn {
  display: none;
}

/* MAIN */
.fs-dash-main {
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.fs-dash-hero {
  margin-bottom: 22px;
}

.fs-dash-hero h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3.4rem, 3vw, 5.7rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.fs-dash-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 600;
}

.fs-dash-hero strong {
  color: var(--text);
}

.fs-dash-grid {
  display: grid;
  grid-template-columns: 1fr 0.46fr;
  gap: 34px;
  align-items: start;
}

.fs-dash-left {
  display: grid;
  gap: 18px;
}

.fs-dash-card,
.fs-side-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.fs-dash-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  padding: 30px;
}

.fs-card-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f6ead8;
  color: var(--maroon);
  font-size: 40px;
}

.fs-card-icon--shield {
  color: var(--maroon);
}

.fs-card-head h2,
.fs-profile-card h2,
.fs-side-panel__head h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--maroon);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.fs-card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.fs-card-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* subscription */
.fs-sub-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.fs-sub-meta div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.fs-sub-meta div:first-child {
  padding-left: 0;
}

.fs-sub-meta div:last-child {
  border-right: 0;
}

.fs-sub-meta i {
  grid-row: span 2;
  color: var(--maroon);
  font-size: 29px;
}

.fs-sub-meta span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.fs-sub-meta strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.fs-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.fs-dash-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  border-radius: 7px;
  border: 1px solid #cdbb9d;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.fs-dash-btn--primary {
  border-color: transparent;
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 16px 34px rgba(128, 0, 0, 0.18);
}

.fs-dash-btn--light {
  background: #fff;
  color: var(--text);
}

.fs-dev-tip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #efe1ce;
  border-radius: 8px;
  background: #fbf3e9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fs-dev-tip code {
  color: var(--maroon);
  font-family: inherit;
}

/* alerts */
.fs-dash-alert {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 900;
}

.fs-dash-alert--success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.fs-dash-alert--error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* profile */
.fs-profile-card__content h2 {
  margin-bottom: 24px;
}

.fs-profile-form {
  display: grid;
  gap: 18px;
}

.fs-profile-field {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: start;
}

.fs-profile-field label {
  padding-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.fs-profile-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d9cdbc;
  border-radius: 7px;
  background: #fff;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.fs-profile-field input:focus {
  border-color: rgba(128, 0, 0, 0.36);
  box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.06);
}

.fs-profile-field input[readonly] {
  background: #faf7f2;
  color: #4d4845;
}

.fs-profile-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fs-profile-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-left: 188px;
  margin-top: 2px;
}

.fs-change-password {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon);
  font-weight: 900;
}

/* right panels */
.fs-dash-right {
  display: grid;
  gap: 22px;
}

.fs-side-panel {
  padding: 24px;
}

.fs-side-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.fs-side-panel__head > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f6ead8;
  color: var(--gold);
  font-size: 24px;
}

.fs-side-panel__head h2 {
  color: var(--text);
  font-size: 28px;
}

.fs-action-list {
  display: grid;
}

.fs-action-list a {
  min-height: 76px;
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.fs-action-list a + a {
  margin-top: 0;
  border-top: 0;
}

.fs-action-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(128, 0, 0, 0.2);
  box-shadow: var(--shadow-sm);
}

.fs-action-list a > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f6ead8;
  color: var(--maroon);
  font-size: 22px;
}

.fs-action-list a > span.soft-red {
  background: #f9e8e8;
  color: var(--maroon);
}

.fs-action-list a > span.soft-green {
  background: #dcfce7;
  color: #16a34a;
}

.fs-action-list a > span.soft-gold {
  background: #fff1d6;
  color: var(--gold);
}

.fs-action-list strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.fs-action-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fs-action-list > a > i {
  color: var(--text);
  font-size: 14px;
}

/* footer */
.fs-dash-footer {
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fs-dash-footer div {
  display: flex;
  gap: 24px;
}

.fs-dash-footer a {
  color: var(--maroon);
}

/* responsive */
@media (max-width: 1180px) {
  .fs-dash-nav {
    grid-template-columns: auto auto auto;
  }

  .fs-dash-menu-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--maroon);
    font-size: 20px;
  }

  .fs-dash-links {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 102px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .fs-dash-links.is-open {
    display: grid;
  }

  .fs-dash-links a {
    min-height: 46px;
  }

  .fs-dash-links a.active::after {
    display: none;
  }

  .fs-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fs-dash-nav {
    min-height: 86px;
    padding: 14px 18px;
    gap: 12px;
  }

  .fs-dash-brand__mark {
    width: 52px;
    height: 52px;
  }

  .fs-dash-brand strong {
    font-size: 25px;
  }

  .fs-dash-brand small {
    font-size: 10px;
  }

  .fs-dash-bell {
    display: none;
  }

  .fs-dash-main,
  .fs-dash-footer {
    width: min(100% - 28px, 1500px);
  }

  .fs-dash-main {
    padding-top: 28px;
  }

  .fs-dash-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .fs-dash-hero p {
    font-size: 17px;
  }

  .fs-dash-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .fs-sub-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fs-sub-meta div {
    border-right: 0;
    padding: 0;
  }

  .fs-profile-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fs-profile-field label {
    padding-top: 0;
  }

  .fs-profile-actions {
    padding-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .fs-dash-btn {
    width: 100%;
  }

  .fs-action-list a {
    grid-template-columns: 48px 1fr 18px;
    padding: 12px;
  }

  .fs-dash-footer {
    justify-content: flex-start;
  }

  .fs-dash-footer div {
    flex-direction: column;
    gap: 10px;
  }
}

/* MANAGE SUBSCRIPTION PAGE */
.fs-manage-main {
  padding-bottom: 40px;
}

.fs-manage-hero {
  margin-bottom: 28px;
}

.fs-manage-hero h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3.4rem, 3vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.fs-manage-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}

/* Status */
.fs-manage-status {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.fs-manage-status__head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.fs-manage-status__head h2 {
  margin: 0 0 12px;
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--maroon);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.fs-manage-status__head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.fs-manage-status__head span.active {
  background: #dcfce7;
  color: #047857;
}

.fs-manage-status__head span.inactive {
  background: #fef2f2;
  color: #b91c1c;
}

.fs-manage-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

.fs-manage-meta div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.fs-manage-meta div:first-child {
  grid-template-columns: 1fr;
  padding-left: 0;
}

.fs-manage-meta div:last-child {
  border-right: 0;
}

.fs-manage-meta i {
  grid-row: span 2;
  color: var(--gold);
  font-size: 28px;
}

.fs-manage-meta span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.fs-manage-meta strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

/* Plan cards */
.fs-manage-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.fs-manage-plan {
  position: relative;
  min-height: 540px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.fs-manage-plan--lifetime {
  background:
    radial-gradient(
      circle at top right,
      rgba(183, 122, 31, 0.12),
      transparent 36%
    ),
    #fffdf9;
}

.fs-manage-plan--pro {
  border: 1.5px solid rgba(37, 99, 235, 0.7);
}

.fs-manage-plan--premium {
  background:
    radial-gradient(
      circle at top right,
      rgba(128, 0, 0, 0.08),
      transparent 36%
    ),
    #fffdf9;
  border-color: rgba(128, 0, 0, 0.24);
}

.fs-manage-plan__top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fs-manage-plan__tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff6e7;
  color: #7e4c00;
  font-size: 11px;
  font-weight: 900;
}

.fs-manage-plan__tag.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.fs-manage-plan h3 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.fs-manage-price {
  margin-top: 18px;
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.fs-manage-price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 700;
}

.fs-manage-plan p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.fs-manage-plan ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 92px;
  padding: 0;
  list-style: none;
}

.fs-manage-plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.fs-manage-plan li::before {
  content: "✓";
  color: #047857;
  font-weight: 900;
}

.fs-manage-plan form {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.fs-manage-plan button,
.fs-manage-renewals button,
.fs-manage-cancel button {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 16px 34px rgba(128, 0, 0, 0.18);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.fs-manage-plan--pro button {
  background: #2563eb;
}

/* Renewals */
.fs-manage-renewals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.fs-manage-renewals article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.fs-manage-renewals article > div {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f6ead8;
  color: var(--gold);
  font-size: 26px;
}

.fs-manage-renewals h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--maroon);
  font-size: 30px;
  font-weight: 400;
}

.fs-manage-renewals p {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
  padding-top: 90px;
}

/* Bottom */
.fs-manage-bottom {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: center;
}

.fs-manage-back {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cdbb9d;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}

.fs-manage-warning {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #eed7b7;
  border-radius: 8px;
  background: #fff6e7;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.fs-manage-warning i {
  color: var(--gold);
}

.fs-manage-cancel {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 14px;
  justify-content: end;
}

.fs-manage-cancel button.outline {
  border: 1px solid var(--maroon);
  background: #fff;
  color: var(--maroon);
  box-shadow: none;
}

.fs-manage-cancel button.danger {
  background: var(--maroon);
}

/* Manage responsive */
@media (max-width: 1180px) {
  .fs-manage-plans,
  .fs-manage-renewals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-manage-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .fs-manage-meta div {
    border-right: 0;
    padding: 0;
  }

  .fs-manage-bottom {
    grid-template-columns: 1fr;
  }

  .fs-manage-cancel {
    grid-column: auto;
    justify-content: stretch;
  }
}

@media (max-width: 760px) {
  .fs-manage-hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

  .fs-manage-hero p {
    font-size: 16px;
  }

  .fs-manage-status {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .fs-manage-meta,
  .fs-manage-plans,
  .fs-manage-renewals,
  .fs-manage-cancel {
    grid-template-columns: 1fr;
  }

  .fs-manage-plan {
    min-height: auto;
    padding-bottom: 102px;
  }
}

.fs-manage-plan button.blue-btn {
  background: #2563eb;
}

.fs-manage-status__head span.active {
  background: #dcfce7;
  color: #047857;
}

.fs-manage-status__head span.warn {
  background: #fff7ed;
  color: #b45309;
}

.fs-manage-status__head span.bad {
  background: #fef2f2;
  color: #b91c1c;
}

.fs-manage-cancel--single {
  grid-template-columns: minmax(0, 320px);
}

/* FINAL FIX: RENEWAL CARDS OVERLAP */
.fs-manage-renewals {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 28px 0 !important;
}

.fs-manage-renewals .fs-renew-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 330px !important;
  padding: 28px !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--shadow-sm) !important;
}

.fs-manage-renewals .fs-renew-card__icon {
  width: 62px !important;
  height: 62px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 0 18px !important;
  border-radius: 999px !important;
  background: #f6ead8 !important;
  color: var(--gold) !important;
  font-size: 26px !important;
}

.fs-manage-renewals .fs-renew-card__title {
  margin: 0 0 14px !important;
  font-family: "DM Serif Display", Georgia, serif !important;
  color: var(--maroon) !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  font-weight: 400 !important;
}

.fs-manage-renewals .fs-renew-card__price {
  display: block !important;
  margin: 0 0 16px !important;
}

.fs-manage-renewals .fs-renew-card__price strong {
  display: block !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 38px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  font-style: normal !important;
}

.fs-manage-renewals .fs-renew-card__price small {
  display: block !important;
  margin: 8px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  font-style: normal !important;
}

.fs-manage-renewals .fs-renew-card__text {
  display: block !important;
  margin: 0 0 24px !important;
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  font-weight: 600 !important;
}

.fs-manage-renewals .fs-renew-card form {
  margin-top: auto !important;
}

.fs-manage-renewals .fs-renew-card__button {
  width: 100% !important;
  min-height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--maroon) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(128, 0, 0, 0.18) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.fs-manage-renewals .fs-renew-card__button i {
  color: #fff !important;
}

/* Stop old/global span rules affecting renewal cards */
.fs-manage-renewals .fs-renew-card span,
.fs-manage-renewals .fs-renew-card small,
.fs-manage-renewals .fs-renew-card strong,
.fs-manage-renewals .fs-renew-card p,
.fs-manage-renewals .fs-renew-card div {
  position: static !important;
  transform: none !important;
  font-style: normal !important;
}

/* Mobile */
@media (max-width: 980px) {
  .fs-manage-renewals {
    grid-template-columns: 1fr !important;
  }
}

.fs-cancel-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
}

.fs-cancel-modal.is-open {
  display: grid;
}

.fs-cancel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 18, 0.62);
  backdrop-filter: blur(8px);
}

.fs-cancel-modal__card {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(128, 0, 0, 0.1), transparent 38%),
    #fffdf9;
  box-shadow: 0 30px 90px rgba(38, 25, 16, 0.24);
}

.fs-cancel-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  cursor: pointer;
}

.fs-cancel-modal__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 28px;
}

.fs-cancel-modal__eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-cancel-modal__card h2 {
  margin: 0;
  color: var(--maroon);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
}

.fs-cancel-modal__card p {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

.fs-cancel-code-box {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px dashed rgba(185, 28, 28, 0.35);
  border-radius: 18px;
  background: #fff7f7;
}

.fs-cancel-code-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.fs-cancel-code-box strong {
  display: block;
  margin-top: 8px;
  color: #b91c1c;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.fs-cancel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.fs-cancel-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  outline: 0;
}

.fs-cancel-input:focus {
  border-color: rgba(185, 28, 28, 0.38);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

.fs-cancel-error {
  display: none;
  margin-top: 10px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

.fs-cancel-error.is-visible {
  display: block;
}

.fs-cancel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.fs-cancel-actions button {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--maroon);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.fs-cancel-actions button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.fs-cancel-actions button.danger {
  background: #b91c1c;
}

@media (max-width: 560px) {
  .fs-cancel-modal__card {
    padding: 26px;
  }

  .fs-cancel-actions {
    grid-template-columns: 1fr;
  }
}

.fs-cancel-modal__icon--warn {
  background: #fff7ed;
  color: #b45309;
}

.fs-cancel-modal__eyebrow--warn {
  background: #fff7ed;
  color: #b45309;
}

.fs-period-end-box {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px dashed rgba(180, 83, 9, 0.35);
  border-radius: 18px;
  background: #fffaf3;
}

.fs-period-end-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.fs-period-end-box strong {
  display: block;
  margin-top: 8px;
  color: #b45309;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.fs-dash-bell {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #272525;
  font-size: 23px;
  cursor: pointer;
  text-decoration: none;
}

.fs-dash-bell.has-alert {
  color: var(--maroon);
}

.fs-dash-bell span {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

/* Mobile layout fix */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .fs-dash-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .fs-dash-nav {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    padding: 10px 14px;
    box-sizing: border-box;
  }

  .fs-dash-brand {
    min-width: 0;
    max-width: 190px;
  }

  .fs-dash-brand__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .fs-dash-brand strong {
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
  }

  .fs-dash-brand small {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .fs-dash-user {
    gap: 8px;
    flex-shrink: 0;
  }

  .fs-dash-bell {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .fs-dash-avatar-btn {
    height: 46px;
    gap: 6px;
    padding: 0;
  }

  .fs-dash-avatar-btn span {
    width: 46px;
    height: 46px;
  }

  .fs-dash-menu-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .fs-dash-main {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  .fs-dash-hero {
    margin-top: 18px;
  }

  .fs-dash-hero h1 {
    font-size: 46px;
    line-height: 0.95;
  }

  .fs-dash-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .fs-dash-left,
  .fs-dash-right,
  .fs-dash-card,
  .fs-profile-card,
  .fs-side-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 760px) {
  .fs-dash-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(14px);
  }

  .fs-dash-main {
    padding-top: 92px;
  }

  .fs-dash-page {
    overflow: visible;
  }

  body {
    overflow-x: hidden;
  }
}

/* Mobile account menu cleanup */
.fs-mobile-account-links {
  display: none;
}

@media (max-width: 760px) {
  .fs-dash-avatar-btn,
  .fs-dash-dropdown {
    display: none !important;
  }

  .fs-mobile-account-links {
    display: contents;
  }
}
