/* EDIVIC consolidated page styles extracted from the audited source during the controlled UI/UX upgrade. */

    :root {
      --barley: #fff4cc;
      --barley-soft: #fff9e8;
      --barley-deep: #f3e4ad;
      --cream: #fffdf7;
      --mikado: #ffbe00;
      --mikado-dark: #d99b00;
      --mikado-deep: #b57c00;
      --mikado-soft: rgba(255, 190, 0, 0.14);
      --ink: #2b2418;
      --ink-soft: #504634;
      --muted: #7c715e;
      --line: rgba(43, 36, 24, 0.13);
      --line-strong: rgba(43, 36, 24, 0.23);
      --surface: #ffffff;
      --surface-soft: #fffaf0;
      --success: #237a4b;
      --success-soft: rgba(35, 122, 75, 0.12);
      --danger: #bd3b3b;
      --danger-soft: rgba(189, 59, 59, 0.11);
      --info: #704716;
      --info-soft: rgba(54, 95, 145, 0.11);
      --warning: #a66a00;
      --topbar-height: 76px;
      --sidebar-width: 282px;
      --radius-xs: 10px;
      --radius-sm: 14px;
      --radius-md: 20px;
      --radius-lg: 30px;
      --shadow-sm: 0 8px 24px rgba(72, 52, 16, 0.08);
      --shadow-md: 0 18px 52px rgba(72, 52, 16, 0.12);
      --shadow-lg: 0 30px 90px rgba(72, 52, 16, 0.17);
      --ease: cubic-bezier(.22, 1, .36, 1);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      font-family: "Outfit", sans-serif;
      background:
        radial-gradient(circle at 88% 5%, rgba(255, 190, 0, 0.20), transparent 29rem),
        radial-gradient(circle at 3% 87%, rgba(255, 244, 204, 0.92), transparent 34rem),
        #f8f2e4;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
    }

    body.menu-open,
    body.modal-open { overflow: hidden; }

    button, input, select, textarea { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { color: inherit; }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    :focus-visible {
      outline: 3px solid rgba(255, 190, 0, 0.52);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 10000;
      transform: translateY(-150%);
      padding: 10px 14px;
      border-radius: var(--radius-xs);
      background: var(--ink);
      color: #fff;
      font-weight: 700;
      transition: transform .2s ease;
    }

    .skip-link:focus { transform: translateY(0); }

    .app-loader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: grid;
      place-items: center;
      background: #f8f2e4;
      transition: opacity .35s ease, visibility .35s ease;
    }

    .app-loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .loader-mark {
      position: relative;
      display: grid;
      place-items: center;
      width: 78px;
      height: 78px;
      border-radius: 24px;
      background: var(--mikado);
      color: var(--ink);
      box-shadow: 0 22px 55px rgba(255, 190, 0, .30);
      animation: loaderFloat 1.3s ease-in-out infinite alternate;
    }

    .loader-mark::after {
      content: "";
      position: absolute;
      inset: -10px;
      border: 2px solid rgba(255, 190, 0, .32);
      border-radius: 31px;
      animation: loaderPulse 1.3s ease-out infinite;
    }

    .loader-mark i { font-size: 1.8rem; }

    @keyframes loaderFloat {
      to { transform: translateY(-8px) rotate(-2deg); }
    }

    @keyframes loaderPulse {
      0% { opacity: 1; transform: scale(.82); }
      100% { opacity: 0; transform: scale(1.16); }
    }

    .topbar {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 1200;
      height: var(--topbar-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 0 24px;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 253, 247, .86);
      backdrop-filter: blur(20px) saturate(1.2);
      box-shadow: 0 8px 30px rgba(72, 52, 16, .06);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      flex: 0 0 auto;
      min-width: 180px;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 8px 22px rgba(255, 190, 0, .18);
    }

    .brand-copy {
      display: grid;
      line-height: 1;
    }

    .brand-copy strong {
      font-family: "Fraunces", serif;
      font-size: 1.32rem;
      letter-spacing: -.03em;
    }

    .brand-copy small {
      margin-top: 5px;
      color: var(--muted);
      font-size: .67rem;
      font-weight: 700;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    .topbar-title {
      min-width: 0;
      flex: 1;
    }

    .topbar-title h1 {
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-family: "Fraunces", serif;
      font-size: 1.04rem;
      line-height: 1.1;
    }

    .topbar-title p {
      margin: 4px 0 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: .75rem;
    }

    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex: 0 0 auto;
    }

    .icon-btn,
    .menu-btn {
      position: relative;
      display: inline-grid;
      place-items: center;
      width: 43px;
      height: 43px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.74);
      color: var(--ink-soft);
      cursor: pointer;
      transition: transform .22s var(--ease), background .22s ease, border-color .22s ease, color .22s ease;
    }

    .icon-btn:hover,
    .menu-btn:hover {
      transform: translateY(-2px);
      background: var(--barley-soft);
      border-color: rgba(255, 190, 0, .45);
      color: var(--ink);
    }

    .notif-dot {
      position: absolute;
      top: 7px;
      right: 7px;
      display: none;
      min-width: 17px;
      height: 17px;
      padding: 0 4px;
      place-items: center;
      border: 2px solid var(--surface);
      border-radius: 999px;
      background: var(--danger);
      color: #fff;
      font-size: .58rem;
      font-weight: 800;
    }

    .notif-dot.show { display: grid; }

    .account-chip {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 172px;
      padding: 6px 10px 6px 7px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255,255,255,.72);
    }

    .avatar {
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      flex: 0 0 36px;
      overflow: hidden;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--mikado), #ffe278);
      color: var(--ink);
      font-weight: 800;
      box-shadow: inset 0 0 0 1px rgba(43,36,24,.08);
    }

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

    .account-copy { min-width: 0; }
    .account-copy strong,
    .account-copy small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .account-copy strong { font-size: .78rem; }
    .account-copy small { margin-top: 3px; color: var(--muted); font-size: .66rem; }

    .menu-btn {
      display: none;
      padding: 0;
    }

    .hamburger {
      position: relative;
      width: 20px;
      height: 16px;
    }

    .hamburger span {
      position: absolute;
      left: 0;
      width: 100%;
      height: 2px;
      border-radius: 99px;
      background: currentColor;
      transition: transform .28s var(--ease), top .28s var(--ease), opacity .18s ease;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 7px; }
    .hamburger span:nth-child(3) { top: 14px; }

    .menu-btn.active .hamburger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
    .menu-btn.active .hamburger span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
    .menu-btn.active .hamburger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

    .sidebar {
      position: fixed;
      top: var(--topbar-height);
      bottom: 0;
      left: 0;
      z-index: 1100;
      width: var(--sidebar-width);
      display: flex;
      flex-direction: column;
      padding: 20px 16px 18px;
      border-right: 1px solid var(--line);
      background: rgba(255, 250, 240, .92);
      backdrop-filter: blur(20px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: var(--barley-deep) transparent;
    }

    .sidebar-user {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px;
      margin-bottom: 16px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,.78);
      box-shadow: var(--shadow-sm);
    }

    .sidebar-user .avatar { width: 42px; height: 42px; flex-basis: 42px; }
    .sidebar-user-copy { min-width: 0; }
    .sidebar-user-copy strong,
    .sidebar-user-copy span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .sidebar-user-copy strong { font-size: .87rem; }
    .sidebar-user-copy span { margin-top: 4px; color: var(--muted); font-size: .7rem; }

    .nav-section { margin-bottom: 18px; }
    .nav-label {
      margin: 0 10px 7px;
      color: var(--muted);
      font-size: .64rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .side-nav { display: grid; gap: 5px; }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 45px;
      padding: 10px 12px;
      border: 1px solid transparent;
      border-radius: 14px;
      color: var(--ink-soft);
      font-size: .82rem;
      font-weight: 650;
      transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
    }

    .nav-link i {
      display: grid;
      place-items: center;
      width: 20px;
      color: var(--muted);
      transition: color .2s ease;
    }

    .nav-link:hover {
      transform: translateX(3px);
      background: rgba(255,255,255,.76);
      border-color: var(--line);
      color: var(--ink);
    }

    .nav-link.active {
      background: linear-gradient(135deg, var(--mikado), #ffd95c);
      border-color: rgba(43,36,24,.10);
      color: var(--ink);
      box-shadow: 0 12px 26px rgba(255,190,0,.19);
    }

    .nav-link.active i { color: var(--ink); }

    .side-badge {
      margin-left: auto;
      min-width: 22px;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(43,36,24,.08);
      color: var(--ink);
      text-align: center;
      font-size: .62rem;
      font-weight: 800;
    }

    .sidebar-spacer { flex: 1; }

    .support-card {
      position: relative;
      overflow: hidden;
      padding: 16px;
      margin-top: 12px;
      border-radius: 20px;
      background: var(--ink);
      color: #fff;
      box-shadow: var(--shadow-md);
    }

    .support-card::after {
      content: "";
      position: absolute;
      width: 110px;
      height: 110px;
      right: -45px;
      bottom: -48px;
      border-radius: 50%;
      background: var(--mikado);
      opacity: .20;
    }

    .support-card i { color: var(--mikado); }
    .support-card h3 { margin: 10px 0 5px; font-family: "Fraunces", serif; font-size: 1rem; }
    .support-card p { margin: 0 0 12px; color: rgba(255,255,255,.68); font-size: .7rem; line-height: 1.55; }
    .support-card a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: var(--mikado); font-size: .72rem; font-weight: 800; }

    .logout-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 44px;
      padding: 10px 12px;
      margin-top: 10px;
      border: 1px solid transparent;
      border-radius: 14px;
      background: transparent;
      color: var(--danger);
      font-size: .78rem;
      font-weight: 700;
      cursor: pointer;
      transition: background .2s ease, border-color .2s ease;
    }

    .logout-btn:hover { background: var(--danger-soft); border-color: rgba(189,59,59,.18); }

    .mobile-overlay {
      position: fixed;
      inset: var(--topbar-height) 0 0 0;
      z-index: 1050;
      background: rgba(43,36,24,.32);
      backdrop-filter: blur(4px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .3s ease, visibility .3s ease;
    }

    .mobile-overlay.show { opacity: 1; visibility: visible; }

    .main {
      min-height: 100vh;
      padding: calc(var(--topbar-height) + 34px) clamp(20px, 3vw, 48px) 48px;
    }

    .page-shell { width: min(1240px, 100%); margin: 0 auto; }

    .hero {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
      gap: 28px;
      align-items: center;
      padding: clamp(28px, 5vw, 58px);
      border: 1px solid rgba(43,36,24,.10);
      border-radius: 34px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,249,232,.94)),
        var(--surface);
      box-shadow: var(--shadow-lg);
      isolation: isolate;
    }

    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      z-index: -1;
      border-radius: 50%;
      pointer-events: none;
    }

    .hero::before {
      width: 390px;
      height: 390px;
      right: -120px;
      top: -190px;
      background: radial-gradient(circle, rgba(255,190,0,.28), rgba(255,190,0,0) 70%);
      animation: drift 10s ease-in-out infinite alternate;
    }

    .hero::after {
      width: 220px;
      height: 220px;
      left: 39%;
      bottom: -170px;
      border: 48px solid rgba(255,244,204,.72);
      animation: driftReverse 12s ease-in-out infinite alternate;
    }

    @keyframes drift { to { transform: translate(-34px, 24px) scale(1.05); } }
    @keyframes driftReverse { to { transform: translate(38px, -18px) rotate(16deg); } }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      padding: 8px 12px;
      border: 1px solid rgba(255,190,0,.35);
      border-radius: 999px;
      background: var(--mikado-soft);
      color: var(--warning);
      font-size: .73rem;
      font-weight: 800;
      letter-spacing: .03em;
    }

    .hero h2 {
      max-width: 760px;
      margin: 18px 0 16px;
      font-family: "Fraunces", serif;
      font-size: clamp(2.45rem, 5.4vw, 5.3rem);
      line-height: .96;
      letter-spacing: -.055em;
    }

    .hero h2 .accent {
      position: relative;
      display: inline-block;
      color: var(--mikado-deep);
    }

    .hero h2 .accent::after {
      content: "";
      position: absolute;
      left: 2%;
      right: 1%;
      bottom: .03em;
      z-index: -1;
      height: .22em;
      border-radius: 99px;
      background: var(--mikado);
      opacity: .42;
      transform: rotate(-1.2deg);
    }

    .hero-copy > p {
      max-width: 720px;
      margin: 0;
      color: var(--ink-soft);
      font-size: clamp(.95rem, 1.35vw, 1.08rem);
      line-height: 1.75;
    }

    .trust-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
    }

    .trust-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.72);
      color: var(--ink-soft);
      font-size: .73rem;
      font-weight: 700;
    }

    .trust-chip i { color: var(--mikado-deep); }

    .hero-offer {
      position: relative;
      padding: 26px;
      border: 1px solid rgba(43,36,24,.10);
      border-radius: 28px;
      background: var(--ink);
      color: #fff;
      box-shadow: 0 28px 66px rgba(43,36,24,.25);
      transform: rotate(1.2deg);
      transition: transform .45s var(--ease);
    }

    .hero:hover .hero-offer { transform: rotate(0deg) translateY(-4px); }

    .hero-offer::before {
      content: "";
      position: absolute;
      inset: 10px;
      border: 1px dashed rgba(255,190,0,.34);
      border-radius: 21px;
      pointer-events: none;
    }

    .membership-label {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--mikado);
      color: var(--ink);
      font-size: .68rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .hero-price {
      position: relative;
      display: flex;
      align-items: flex-end;
      gap: 7px;
      margin: 22px 0 4px;
    }

    .hero-price strong {
      font-family: "Fraunces", serif;
      color: var(--mikado);
      font-size: clamp(4.5rem, 8vw, 7.1rem);
      line-height: .75;
      letter-spacing: -.07em;
    }

    .hero-price span { color: rgba(255,255,255,.72); font-size: .8rem; font-weight: 700; }
    .hero-offer p { position: relative; margin: 14px 0 0; color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.65; }
    .hero-offer p strong { color: #fff; }

    .section { margin-top: 34px; }

    .section-heading {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 18px;
    }

    .section-heading h2 {
      margin: 0;
      font-family: "Fraunces", serif;
      font-size: clamp(1.8rem, 3vw, 2.65rem);
      letter-spacing: -.035em;
    }

    .section-heading p {
      max-width: 650px;
      margin: 7px 0 0;
      color: var(--muted);
      font-size: .86rem;
      line-height: 1.6;
    }

    .status-banner {
      display: none;
      align-items: flex-start;
      gap: 13px;
      padding: 15px 17px;
      margin-top: 22px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
      box-shadow: var(--shadow-sm);
    }

    .status-banner.show { display: flex; animation: slideDown .45s var(--ease) both; }
    .status-banner.success { border-color: rgba(35,122,75,.24); background: #f4fcf7; }
    .status-banner.error { border-color: rgba(189,59,59,.23); background: #fff7f7; }
    .status-banner.info { border-color: rgba(54,95,145,.21); background: #f7faff; }
    .status-banner.warning { border-color: rgba(255,190,0,.35); background: var(--barley-soft); }

    .status-icon {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      border-radius: 12px;
      background: var(--mikado-soft);
      color: var(--warning);
    }

    .status-banner.success .status-icon { background: var(--success-soft); color: var(--success); }
    .status-banner.error .status-icon { background: var(--danger-soft); color: var(--danger); }
    .status-banner.info .status-icon { background: var(--info-soft); color: var(--info); }
    .status-copy h3 { margin: 1px 0 4px; font-size: .88rem; }
    .status-copy p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
    .status-copy a { color: var(--mikado-deep); font-weight: 800; }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-14px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .active-membership {
      display: none;
      position: relative;
      overflow: hidden;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: center;
      padding: 24px;
      margin-top: 22px;
      border: 1px solid rgba(35,122,75,.20);
      border-radius: 24px;
      background: linear-gradient(135deg, #f6fff9, #ffffff 72%);
      box-shadow: var(--shadow-md);
    }

    .active-membership.show { display: grid; animation: revealUp .55s var(--ease) both; }
    .active-membership::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      right: -70px;
      top: -92px;
      border-radius: 50%;
      background: var(--success-soft);
    }

    .active-copy { position: relative; z-index: 1; }
    .active-copy span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--success-soft);
      color: var(--success);
      font-size: .7rem;
      font-weight: 850;
    }

    .active-copy h3 { margin: 12px 0 5px; font-family: "Fraunces", serif; font-size: 1.48rem; }
    .active-copy p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

    .active-meta {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(2, minmax(110px, 1fr));
      gap: 10px;
    }

    .active-meta div {
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.84);
    }

    .active-meta small { display: block; color: var(--muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
    .active-meta strong { display: block; margin-top: 5px; font-size: .78rem; }

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

    .plan-card {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 100%;
      padding: 26px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: rgba(255,255,255,.88);
      box-shadow: var(--shadow-sm);
      transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
    }

    .plan-card:hover {
      transform: translateY(-9px);
      border-color: rgba(255,190,0,.42);
      box-shadow: var(--shadow-lg);
    }

    .plan-card.featured {
      border-color: rgba(255,190,0,.62);
      background: linear-gradient(160deg, #fffdf7, #fff7d8);
      box-shadow: 0 25px 70px rgba(255,190,0,.17);
    }

    .plan-card.featured::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      right: -95px;
      top: -105px;
      border-radius: 50%;
      background: var(--mikado);
      opacity: .18;
    }

    .plan-ribbon {
      position: absolute;
      top: 16px;
      right: -36px;
      z-index: 2;
      width: 140px;
      padding: 6px 0;
      transform: rotate(38deg);
      background: var(--mikado);
      color: var(--ink);
      text-align: center;
      font-size: .58rem;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .plan-icon {
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      border: 1px solid rgba(255,190,0,.25);
      border-radius: 15px;
      background: var(--mikado-soft);
      color: var(--mikado-deep);
      font-size: 1.04rem;
    }

    .plan-availability {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 28px;
      margin: 0 0 8px;
      padding: 5px 10px;
      border: 1px solid rgba(216, 146, 0, .32);
      border-radius: 999px;
      background: rgba(255, 196, 0, .14);
      color: #6f4c00;
      font-size: .76rem;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .plan-card.is-unavailable {
      opacity: .86;
    }

    .plan-card.is-unavailable .plan-button {
      cursor: not-allowed;
      box-shadow: none;
    }

    .plan-card h3 {
      margin: 18px 0 5px;
      font-family: "Fraunces", serif;
      font-size: 1.46rem;
    }

    .plan-description { min-height: 42px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

    .price-wrap {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      margin: 23px 0 6px;
    }

    .price-wrap strong {
      font-family: "Fraunces", serif;
      font-size: clamp(2.8rem, 4vw, 4rem);
      line-height: .82;
      letter-spacing: -.055em;
    }

    .price-wrap small { padding-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 700; }
    .old-price { margin-left: 4px; color: var(--muted); font-size: .76rem; text-decoration: line-through; text-decoration-thickness: 2px; }
    .price-note { margin: 0 0 18px; color: var(--mikado-deep); font-size: .71rem; font-weight: 800; }

    .feature-list {
      display: grid;
      gap: 11px;
      padding: 18px 0 22px;
      margin: 0;
      border-top: 1px solid var(--line);
      list-style: none;
    }

    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--ink-soft);
      font-size: .76rem;
      line-height: 1.45;
    }

    .feature-list i {
      display: grid;
      place-items: center;
      width: 20px;
      height: 20px;
      flex: 0 0 20px;
      border-radius: 7px;
      background: var(--success-soft);
      color: var(--success);
      font-size: .63rem;
    }

    .plan-footer { margin-top: auto; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 48px;
      padding: 12px 18px;
      border: 1px solid transparent;
      border-radius: 15px;
      font-size: .79rem;
      font-weight: 800;
      cursor: pointer;
      transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
    }

    .btn:hover:not(:disabled) { transform: translateY(-2px); }
    .btn:disabled { opacity: .58; cursor: not-allowed; }
    .btn-block { width: 100%; }

    .btn-primary {
      background: linear-gradient(135deg, var(--mikado), #ffd955);
      color: var(--ink);
      box-shadow: 0 13px 28px rgba(255,190,0,.20);
    }

    .btn-primary:hover:not(:disabled) { box-shadow: 0 17px 34px rgba(255,190,0,.28); }

    .btn-dark {
      background: var(--ink);
      color: #fff;
      box-shadow: 0 13px 28px rgba(43,36,24,.18);
    }

    .btn-light {
      border-color: var(--line);
      background: #fff;
      color: var(--ink);
    }

    .btn-light:hover:not(:disabled) { border-color: rgba(255,190,0,.46); background: var(--barley-soft); }
    .btn-danger { background: var(--danger); color: #fff; }
    .btn-small { min-height: 42px; padding: 10px 14px; font-size: .73rem; }

    .plan-meta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      margin-top: 11px;
      color: var(--muted);
      font-size: .63rem;
      text-align: center;
    }

    .comparison-card,
    .process-card,
    .history-card,
    .faq-card {
      border: 1px solid var(--line);
      border-radius: 27px;
      background: rgba(255,255,255,.84);
      box-shadow: var(--shadow-md);
    }

    .comparison-card { overflow: hidden; }

    .comparison-head,
    .comparison-row {
      display: grid;
      grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(120px, .7fr));
      align-items: center;
      min-height: 58px;
      border-bottom: 1px solid var(--line);
    }

    .comparison-row:last-child { border-bottom: 0; }
    .comparison-head { background: var(--ink); color: #fff; }
    .comparison-head > div,
    .comparison-row > div { padding: 14px 18px; }
    .comparison-head > div:not(:first-child),
    .comparison-row > div:not(:first-child) { text-align: center; border-left: 1px solid var(--line); }
    .comparison-head > div:not(:first-child) { border-left-color: rgba(255,255,255,.10); }
    .comparison-head strong { font-family: "Fraunces", serif; font-size: .94rem; }
    .comparison-row span { color: var(--ink-soft); font-size: .76rem; }
    .comparison-row i.fa-check { color: var(--success); }
    .comparison-row i.fa-minus { color: #b3aa9c; }
    .comparison-highlight { background: rgba(255,190,0,.07); }

    .process-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      padding: 22px;
    }

    .process-step {
      position: relative;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--surface-soft);
    }

    .step-number {
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      border-radius: 12px;
      background: var(--mikado);
      color: var(--ink);
      font-family: "Fraunces", serif;
      font-weight: 800;
    }

    .process-step h3 { margin: 15px 0 6px; font-family: "Fraunces", serif; font-size: 1.06rem; }
    .process-step p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.58; }

    .history-card { display: none; padding: 22px; }
    .history-card.show { display: block; }
    .history-list { display: grid; gap: 10px; }

    .history-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 13px 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-soft);
    }

    .history-icon {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: var(--success-soft);
      color: var(--success);
    }

    .history-copy { min-width: 0; }
    .history-copy strong,
    .history-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .history-copy strong { font-size: .78rem; }
    .history-copy span { margin-top: 4px; color: var(--muted); font-size: .66rem; }
    .history-amount { text-align: right; }
    .history-amount strong { display: block; font-size: .82rem; }
    .history-amount span { display: block; margin-top: 4px; color: var(--success); font-size: .62rem; font-weight: 800; text-transform: capitalize; }

    .faq-card { overflow: hidden; }
    .faq-item { border-bottom: 1px solid var(--line); }
    .faq-item:last-child { border-bottom: 0; }

    .faq-question {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      width: 100%;
      padding: 19px 21px;
      border: 0;
      background: transparent;
      color: var(--ink);
      text-align: left;
      font-size: .84rem;
      font-weight: 800;
      cursor: pointer;
    }

    .faq-question i { color: var(--mikado-deep); transition: transform .3s var(--ease); }
    .faq-item.open .faq-question i { transform: rotate(45deg); }

    .faq-answer {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows .35s var(--ease);
    }

    .faq-item.open .faq-answer { grid-template-rows: 1fr; }
    .faq-answer > div { overflow: hidden; }
    .faq-answer p { margin: 0; padding: 0 21px 19px; color: var(--muted); font-size: .76rem; line-height: 1.65; }

    .legal-note {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 18px;
      margin-top: 24px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,.58);
      color: var(--muted);
      font-size: .68rem;
      line-height: 1.65;
    }

    .legal-note i { margin-top: 2px; color: var(--mikado-deep); }
    .legal-note a { color: var(--ink); font-weight: 800; }

    .footer {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      padding: 24px 2px 0;
      margin-top: 26px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: .68rem;
    }

    .footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
    .footer-links a:hover { color: var(--mikado-deep); }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 20000;
      width: auto;
      height: auto;
      max-width: none;
      max-height: none;
      margin: 0;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(43,36,24,.45);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .28s ease, visibility .28s ease;
    }

    .modal.show { opacity: 1; visibility: visible; }

    /*
      Keep pricing dialogs anchored to the viewport. The shared accessibility
      stylesheet caps ordinary dialogs, but this element is also the full-screen
      backdrop. Capping it clips checkout behind the workspace sidebar and leaves
      most of the page undimmed at desktop zoom levels.
    */
    body.pricing-page > .modal {
      inset: 0 !important;
      width: auto !important;
      height: auto !important;
      max-width: none !important;
      max-height: none !important;
      margin: 0 !important;
    }

    .modal-panel {
      width: min(520px, 100%);
      max-height: calc(100vh - 40px);
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: var(--cream);
      box-shadow: 0 35px 100px rgba(43,36,24,.28);
      transform: translateY(24px) scale(.97);
      transition: transform .35s var(--ease);
    }

    .modal.show .modal-panel { transform: translateY(0) scale(1); }

    .modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      padding: 20px 22px;
      border-bottom: 1px solid var(--line);
    }

    .modal-head h2 { margin: 0; font-family: "Fraunces", serif; font-size: 1.35rem; }
    .modal-close {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      cursor: pointer;
    }

    .modal-body { padding: 22px; }

    .checkout-plan {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 17px;
      border: 1px solid rgba(255,190,0,.32);
      border-radius: 18px;
      background: var(--barley-soft);
    }

    .checkout-plan h3 { margin: 0; font-family: "Fraunces", serif; font-size: 1.12rem; }
    .checkout-plan p { margin: 5px 0 0; color: var(--muted); font-size: .7rem; }
    .checkout-price { text-align: right; }
    .checkout-price strong { display: block; font-family: "Fraunces", serif; font-size: 1.75rem; }
    .checkout-price small { color: var(--muted); font-size: .63rem; }

    .checkout-points { display: grid; gap: 10px; margin: 18px 0; }
    .checkout-point { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: .73rem; line-height: 1.5; }
    .checkout-point i { margin-top: 3px; color: var(--success); }

    .consent-box {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      padding: 13px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      cursor: pointer;
    }

    .consent-box input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--mikado-dark); }
    .consent-box span { color: var(--muted); font-size: .68rem; line-height: 1.55; }
    .consent-box a { color: var(--ink); font-weight: 800; }

    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 19px; }

    .confirm-icon {
      display: grid;
      place-items: center;
      width: 64px;
      height: 64px;
      margin: 0 auto 15px;
      border-radius: 21px;
      background: var(--danger-soft);
      color: var(--danger);
      font-size: 1.4rem;
    }

    .confirm-copy { text-align: center; }
    .confirm-copy h2 { margin: 0; font-family: "Fraunces", serif; font-size: 1.55rem; }
    .confirm-copy p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

    .toast-stack {
      position: fixed;
      top: calc(var(--topbar-height) + 14px);
      right: 16px;
      z-index: 21000;
      display: grid;
      gap: 10px;
      width: min(370px, calc(100vw - 32px));
      pointer-events: none;
    }

    .toast {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 11px;
      align-items: start;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 17px;
      background: rgba(255,253,247,.97);
      box-shadow: var(--shadow-lg);
      pointer-events: auto;
      animation: toastIn .42s var(--ease) both;
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateX(24px) scale(.96); }
      to { opacity: 1; transform: translateX(0) scale(1); }
    }

    .toast-icon {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 11px;
      background: var(--info-soft);
      color: var(--info);
    }

    .toast.success .toast-icon { background: var(--success-soft); color: var(--success); }
    .toast.error .toast-icon { background: var(--danger-soft); color: var(--danger); }
    .toast.warning .toast-icon { background: var(--mikado-soft); color: var(--warning); }
    .toast h3 { margin: 1px 0 3px; font-size: .78rem; }
    .toast p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
    .toast-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .7s var(--ease), transform .7s var(--ease);
    }

    .reveal.visible { opacity: 1; transform: translateY(0); }
    @keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

    @media (max-width: 1180px) {
      .hero { grid-template-columns: 1fr .62fr; padding: 36px; }
      .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .plan-card.featured { grid-column: span 2; }
    }

    @media (max-width: 1024px) {
      :root { --sidebar-width: 290px; }
      .menu-btn { display: inline-grid; }
      .account-chip { display: none; }
      .sidebar {
        transform: translateX(-105%);
        box-shadow: 30px 0 70px rgba(43,36,24,.18);
        transition: transform .38s var(--ease);
      }
      .sidebar.open { transform: translateX(0); }
      .main { margin-left: 0; }
      .topbar-title { display: none; }
      .brand { min-width: 0; }
    }

    @media (max-width: 820px) {
      .topbar { padding: 0 14px; }
      .brand-copy small { display: none; }
      .main { padding: calc(var(--topbar-height) + 20px) 14px 34px; }
      .hero { grid-template-columns: 1fr; padding: 28px; border-radius: 27px; }
      .hero-offer { transform: none; }
      .hero:hover .hero-offer { transform: translateY(-3px); }
      .plans-grid { grid-template-columns: 1fr; }
      .plan-card.featured { grid-column: auto; }
      .process-grid { grid-template-columns: 1fr; }
      .active-membership { grid-template-columns: 1fr; }
      .comparison-card { overflow-x: auto; }
      .comparison-head,
      .comparison-row { min-width: 700px; }
      .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
      .footer { flex-direction: column; }
    }

    @media (max-width: 560px) {
      .top-actions .icon-btn:first-child { display: none; }
      .hero { padding: 23px 19px; }
      .hero h2 { font-size: clamp(2.25rem, 13.5vw, 3.5rem); }
      .hero-offer { padding: 22px 20px; }
      .trust-row { gap: 7px; }
      .trust-chip { width: 100%; justify-content: flex-start; }
      .plan-card { padding: 21px; border-radius: 23px; }
      .active-meta { grid-template-columns: 1fr; }
      .history-row { grid-template-columns: auto minmax(0, 1fr); }
      .history-amount { grid-column: 2; text-align: left; }
      .modal { padding: 10px; align-items: end; }
      .modal-panel { width: 100%; max-height: 92vh; border-radius: 25px 25px 0 0; }
      .modal-actions { flex-direction: column-reverse; }
      .modal-actions .btn { width: 100%; }
      .checkout-plan { align-items: flex-start; }
      .checkout-price strong { font-size: 1.45rem; }
      .sidebar { width: min(88vw, 310px); }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
      .reveal { opacity: 1; transform: none; }
    }
  
/* EDIVIC FINAL POLISH */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(255,190,0,.72);outline-offset:3px}
html{scroll-padding-top:calc(var(--top,74px) + 18px)}
body{overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%}
button,[role="button"],a{ -webkit-tap-highlight-color:transparent }
::selection{background:#ffbe00;color:#2b2418}
*{scrollbar-width:thin;scrollbar-color:#d9ad20 #fff4cc}
*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:#fff4cc}*::-webkit-scrollbar-thumb{background:#d9ad20;border:3px solid #fff4cc;border-radius:999px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:480px){button,.btn,input,select,textarea{min-height:44px}.topbar{padding-left:14px!important;padding-right:14px!important}}

/* Phase 6/9 responsive pricing contract. */
.pricing-main{min-width:0;overflow-x:clip}
.price,.plan-price,.membership-price{white-space:nowrap;word-break:normal;overflow-wrap:normal}
@media(max-width:1100px){body.edivic-app-shell-active .pricing-main{margin-left:0!important;width:100%!important;max-width:100%!important}}
@media(max-width:760px){.pricing-main{padding-inline:14px!important}.plans-grid,.pricing-grid{grid-template-columns:1fr!important}.comparison-wrap{margin-inline:-2px}.pricing-hero{padding:28px 20px!important}}
