@media (min-width: 769px) {
  body[data-route^="/payment"] .payment-page {
    --desktop-ui-bg: #ffffff;
    --desktop-ui-border: #e2e8ee;
    --desktop-ui-shadow: 0 16px 34px rgba(20, 35, 58, 0.08);
    --desktop-ui-section-shadow: 0 8px 22px rgba(20, 35, 58, 0.045);
    --desktop-ui-radius: 22px;
    --desktop-ui-gap: 16px;
    --desktop-ui-primary: #078c91;
    --desktop-ui-primary-dark: #0b5876;
    --desktop-ui-text: #14233a;
    --desktop-ui-muted: #667085;
    width: calc(100% - 40px);
    max-width: 980px;
    margin-inline: auto;
    padding: 24px;
    background: var(--desktop-ui-bg);
    border-color: var(--desktop-ui-border);
    border-radius: var(--desktop-ui-radius);
    box-shadow: var(--desktop-ui-shadow);
    overflow: visible;
  }

  body[data-route^="/payment"] .payment-page .payment-section-card {
    border: 1px solid var(--desktop-ui-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--desktop-ui-section-shadow);
    padding: 18px;
    display: grid;
    gap: 14px;
  }

  body[data-route^="/payment"] .payment-page .payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--desktop-ui-gap);
    min-width: 0;
    direction: rtl;
  }

  body[data-route^="/payment"] .payment-page .payment-grid.one {
    grid-template-columns: 1fr;
  }

  body[data-route^="/payment"] .payment-page .payment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 2px;
  }

  body[data-route^="/payment"] .payment-page .payment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
  }

  body[data-route^="/payment"] .payment-page .payment-title h3 {
    margin: 0;
    color: var(--desktop-ui-text);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -0.35px;
  }

  body[data-route^="/payment"] .payment-page .payment-title .mui-title-mark {
    display: block;
    margin-top: 9px;
  }

  body[data-route^="/payment"] .payment-page .payment-title-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    order: -1;
    border: 1px solid #dcecee;
    border-radius: 13px;
    background: #e8f6f6;
    color: var(--desktop-ui-primary);
  }

  body[data-route^="/payment"] .payment-page .payment-title-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  body[data-route^="/payment"] .payment-page .payment-form {
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-route^="/payment"] .payment-page .payment-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 2px;
  }

  body[data-route^="/payment"] .payment-page .payment-section-title h4 {
    margin: 0;
    color: var(--desktop-ui-text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
  }

  body[data-route^="/payment"] .payment-page .payment-section-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    order: -1;
    border: 1px solid #dcecee;
    border-radius: 10px;
    background: #e8f6f6;
    color: var(--desktop-ui-primary);
  }

  body[data-route^="/payment"] .payment-page .payment-section-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }

  body[data-route^="/payment"] .payment-page .payment-field {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  body[data-route^="/payment"] .payment-page .app-ui-label {
    margin: 0 4px 0 0;
    color: var(--desktop-ui-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
    text-align: right;
    opacity: 0.92;
  }

  body[data-route^="/payment"] .payment-page .app-ui-help,
  body[data-route^="/payment"] .payment-page .field small,
  body[data-route^="/payment"] .payment-page .field .text-muted,
  body[data-route^="/payment"] .payment-page .payment-selected {
    margin-top: 4px;
    color: var(--desktop-ui-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
  }

  body[data-route^="/payment"] .payment-page .app-ui-control-row {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    direction: rtl;
    min-width: 0;
  }

  body[data-route^="/payment"] .payment-page .app-ui-icon {
    width: 42px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--desktop-ui-border);
    border-radius: 12px;
    background: #f3f8fa;
    color: var(--desktop-ui-primary-dark);
  }

  body[data-route^="/payment"] .payment-page .app-ui-icon img,
  body[data-route^="/payment"] .payment-page .app-ui-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
  }

  body[data-route^="/payment"] .payment-page .app-ui-control {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  body[data-route^="/payment"] .payment-page .app-ui-control input,
  body[data-route^="/payment"] .payment-page .app-ui-control select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background-color: #ffffff;
    background-image: none;
    padding: 0 14px;
    color: var(--desktop-ui-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
    direction: rtl;
    box-shadow: none;
  }

  body[data-route^="/payment"] .payment-page .app-ui-control input:focus,
  body[data-route^="/payment"] .payment-page .app-ui-control select:focus {
    border-color: var(--desktop-ui-primary);
    box-shadow: 0 0 0 3px rgba(7, 140, 145, 0.10);
    background-color: #ffffff;
  }

  body[data-route^="/payment"] .payment-page .app-ui-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  body[data-route^="/payment"] .payment-page .app-ui-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 14px;
    padding-left: 36px;
    cursor: pointer;
  }

  body[data-route^="/payment"] .payment-page .app-ui-chevron {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    display: block;
    border-left: 2px solid var(--desktop-ui-muted);
    border-bottom: 2px solid var(--desktop-ui-muted);
    transform: translateY(-65%) rotate(-45deg);
    pointer-events: none;
    z-index: 2;
  }

  body[data-route^="/payment"] .payment-page .app-ui-file-picker {
    width: 100%;
    height: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    padding: 5px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
  }

  body[data-route^="/payment"] .payment-page .app-ui-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    border: 0;
  }

  body[data-route^="/payment"] .payment-page .app-ui-file-picker__button {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 10px;
    background: #eaf6f7;
    color: var(--desktop-ui-primary-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
  }

  body[data-route^="/payment"] .payment-page .app-ui-file-picker__name {
    min-width: 0;
    flex: 1;
    color: var(--desktop-ui-muted);
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
  }

  body[data-route^="/payment"] .payment-page .payment-results {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 8px;
    display: none;
    gap: 6px;
    box-sizing: border-box;
    border: 1px solid var(--desktop-ui-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
  }

  body[data-route^="/payment"] .payment-page .payment-results:not(:empty) {
    display: grid;
  }

  body[data-route^="/payment"] .payment-page .payment-results .btn {
    width: 100%;
    justify-content: flex-start;
    text-align: right;
    white-space: normal;
    line-height: 1.55;
    border-color: rgba(102,112,133,0.22);
    color: var(--desktop-ui-text);
  }

  body[data-route^="/payment"] .payment-page .payment-price-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d8ecee;
    border-radius: 14px;
    background: #e8f6f6;
    color: var(--desktop-ui-text);
    box-shadow: none;
  }

  body[data-route^="/payment"] .payment-page .payment-actions .btn {
    width: auto;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    padding-block: 0;
    padding-inline: 14px;
    border-radius: 12px;
    line-height: 1;
  }

  body[data-route="/register"] .register-page {
    --desktop-ui-bg: #ffffff;
    --desktop-ui-border: #e2e8ee;
    --desktop-ui-shadow: 0 16px 34px rgba(20, 35, 58, 0.08);
    --desktop-ui-section-shadow: 0 8px 22px rgba(20, 35, 58, 0.045);
    --desktop-ui-radius: 22px;
    --desktop-ui-gap: 16px;
    --desktop-ui-primary: #078c91;
    --desktop-ui-primary-dark: #0b5876;
    --desktop-ui-text: #14233a;
    --desktop-ui-muted: #667085;
    width: calc(100% - 40px);
    max-width: 1180px;
    margin-inline: auto;
    padding: 24px;
    background: var(--desktop-ui-bg);
    border-color: var(--desktop-ui-border);
    border-radius: var(--desktop-ui-radius);
    box-shadow: var(--desktop-ui-shadow);
  }

  body[data-route="/register"] .register-page .register-section-card {
    border: 1px solid var(--desktop-ui-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--desktop-ui-section-shadow);
    padding: 18px;
  }

  body[data-route="/register"] .register-page .register-grid {
    gap: var(--desktop-ui-gap);
  }

  body[data-route="/register"] .register-page .register-actions {
    justify-content: flex-start;
  }

  body[data-route="/register"] .register-page {
    overflow: visible;
  }

  body[data-route="/register"] .register-page .register-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
  }

  body[data-route="/register"] .register-page .register-title h3 {
    margin: 0;
    color: var(--desktop-ui-text);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -0.35px;
  }

  body[data-route="/register"] .register-page .register-title .mui-title-mark {
    display: block;
    margin-top: 9px;
  }

  body[data-route="/register"] .register-page .register-title-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    order: -1;
    border: 1px solid #dcecee;
    border-radius: 13px;
    background: #e8f6f6;
    color: var(--desktop-ui-primary);
  }

  body[data-route="/register"] .register-page .register-title-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  body[data-route="/register"] .register-page #register-form {
    display: grid;
    gap: 16px;
  }

  body[data-route="/register"] .register-page .register-section {
    display: grid;
    gap: 14px;
    min-width: 0;
  }

  body[data-route="/register"] .register-page .register-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 2px;
  }

  body[data-route="/register"] .register-page .register-section-title h4 {
    margin: 0;
    color: var(--desktop-ui-text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
  }

  body[data-route="/register"] .register-page .register-section-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    order: -1;
    border: 1px solid #dcecee;
    border-radius: 10px;
    background: #e8f6f6;
    color: var(--desktop-ui-primary);
  }

  body[data-route="/register"] .register-page .register-section-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }

  body[data-route="/register"] .register-page .register-grid,
  body[data-route="/register"] .register-page .register-grid.one {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    min-width: 0;
  }

  body[data-route="/register"] .register-page .register-section-card:nth-of-type(3) .register-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-route="/register"] .register-page .register-section-card:first-of-type > .register-field {
    width: calc((100% - var(--desktop-ui-gap)) / 2);
  }

  body[data-route="/register"] .register-page .register-section-card:first-of-type > .register-field:last-child {
    width: 100%;
  }

  body[data-route="/register"] .register-page .register-field {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  body[data-route="/register"] .register-page .app-ui-label {
    margin: 0 4px 0 0;
    color: var(--desktop-ui-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
    text-align: right;
    opacity: 0.92;
  }

  body[data-route="/register"] .register-page .app-ui-help,
  body[data-route="/register"] .register-page .app-ui-error,
  body[data-route="/register"] .register-page .field small,
  body[data-route="/register"] .register-page .field .text-muted {
    margin-top: 4px;
    color: var(--desktop-ui-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
  }

  body[data-route="/register"] .register-page .app-ui-control-row {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    direction: rtl;
    min-width: 0;
  }

  body[data-route="/register"] .register-page .app-ui-icon {
    width: 42px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--desktop-ui-border);
    border-radius: 12px;
    background: #f3f8fa;
    color: var(--desktop-ui-primary-dark);
  }

  body[data-route="/register"] .register-page .app-ui-icon img,
  body[data-route="/register"] .register-page .app-ui-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
  }

  body[data-route="/register"] .register-page .app-ui-control {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  body[data-route="/register"] .register-page .app-ui-control input,
  body[data-route="/register"] .register-page .app-ui-control select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background-color: #ffffff;
    background-image: none;
    padding: 0 14px;
    color: var(--desktop-ui-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
    direction: rtl;
    box-shadow: none;
  }

  body[data-route="/register"] .register-page .app-ui-control textarea {
    width: 100%;
    min-height: 104px;
    box-sizing: border-box;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    color: var(--desktop-ui-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-align: right;
    direction: rtl;
    resize: vertical;
    box-shadow: none;
  }

  body[data-route="/register"] .register-page .app-ui-control input:focus,
  body[data-route="/register"] .register-page .app-ui-control select:focus,
  body[data-route="/register"] .register-page .app-ui-control textarea:focus {
    border-color: var(--desktop-ui-primary);
    box-shadow: 0 0 0 3px rgba(7, 140, 145, 0.10);
    background-color: #ffffff;
  }

  body[data-route="/register"] .register-page .app-ui-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  body[data-route="/register"] .register-page .app-ui-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 14px;
    padding-left: 36px;
    cursor: pointer;
  }

  body[data-route="/register"] .register-page .app-ui-chevron {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    display: block;
    border-left: 2px solid var(--desktop-ui-muted);
    border-bottom: 2px solid var(--desktop-ui-muted);
    transform: translateY(-65%) rotate(-45deg);
    pointer-events: none;
    z-index: 2;
  }

  body[data-route="/register"] .register-page .app-ui-ltr,
  body[data-route="/register"] .register-page .app-ui-ltr::placeholder {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
  }

  body[data-route="/register"] .register-page .app-ui-file-picker {
    width: 100%;
    height: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    padding: 5px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
  }

  body[data-route="/register"] .register-page .app-ui-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    border: 0;
  }

  body[data-route="/register"] .register-page .app-ui-file-picker__button {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 10px;
    background: #eaf6f7;
    color: var(--desktop-ui-primary-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
  }

  body[data-route="/register"] .register-page .app-ui-file-picker__name {
    min-width: 0;
    flex: 1;
    color: var(--desktop-ui-muted);
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
  }

  body[data-route="/register"] .register-page .register-price-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d8ecee;
    border-radius: 14px;
    background: #e8f6f6;
    box-shadow: none;
  }

  body[data-route="/register"] .register-page .register-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  body[data-route="/register"] .register-page .register-price-value {
    color: var(--desktop-ui-text);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.4;
  }

  body[data-route="/register"] .register-page .register-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf7f0;
    color: #159455;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
  }

  body[data-route="/register"] .register-page .register-divider {
    display: none;
  }

  body[data-route="/register"] .register-page .register-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
  }

  body[data-route="/register"] .register-page .register-actions .btn {
    width: auto;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    padding-block: 0;
    padding-inline: 14px;
    border-radius: 12px;
    line-height: 1;
  }
}

@media (min-width: 769px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .app-header {
    position: fixed;
    inset-block: 0;
    right: 0;
    width: 230px;
    height: 100dvh;
    z-index: 1200;
    display: flex;
    background: linear-gradient(160deg, #062f3f 0%, #075f60 100%);
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px 0 0 24px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-header .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-width: 0;
  }

  .header-row {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4px 12px;
  }

  .brand,
  .nav-panel-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 19px;
    font-weight: 950;
    line-height: 1;
  }

  .brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #52d6d1;
    box-shadow: 0 0 0 5px rgba(82, 214, 209, 0.16);
  }

  .icon-btn,
  .nav-close,
  .nav-backdrop,
  .nav-panel-head {
    display: none;
  }

  .nav {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .nav-left,
  .nav-right,
  .nav-sub {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .nav-right {
    margin-top: auto;
  }

  .nav-link,
  .nav-group-toggle {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-align: right;
  }

  .nav-link.active,
  .nav-group-toggle.active {
    border-color: rgba(87, 210, 201, 0.78);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .nav-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
  }

  .nav-chevron {
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-right: auto;
    opacity: .72;
  }

  .nav-group.open .nav-chevron {
    transform: rotate(135deg);
  }

  .nav-sub {
    display: none;
    margin-top: 5px;
    padding: 5px 0 5px 0;
    padding-inline-start: 30px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
  }

  .nav-group.open .nav-sub {
    display: grid;
  }

  .nav-sub .nav-link {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 12px;
    background: transparent;
  }

  .nav-sub-divider {
    height: 1px;
    margin: 3px 0;
    background: rgba(255, 255, 255, 0.14);
  }

  .user-chip {
    min-height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
  }

  .user-chip .nav-icon {
    width: 15px;
    height: 15px;
  }

  .shell-logout {
    width: 100%;
    min-height: 40px;
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(185, 28, 28, 0.18);
  }

  .nav-booking-cta {
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, #0b83c5, #078c91);
    box-shadow: none;
  }

  .nav-booking-cta::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-right: auto;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .86;
  }

  .nav-booking-cta strong,
  .nav-booking-cta small {
    display: block;
    line-height: 1.35;
  }

  .nav-booking-cta small {
    opacity: .82;
    font-size: 11px;
  }

  main.container {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-right: 250px;
    margin-left: 20px;
    padding-inline: 0;
  }

  .bottom-nav {
    display: none;
  }

  .club-dashboard {
    display: grid;
    gap: 18px;
  }

  .club-dashboard__hero,
  .club-dashboard__card {
    border: 1px solid #e2e8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(20, 35, 58, 0.08);
  }

  .club-dashboard__hero {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .club-dashboard__eyebrow,
  .club-dashboard__hero p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
  }

  .club-dashboard__hero h2 {
    margin: 6px 0 8px;
    color: #14233a;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 950;
  }

  .club-dashboard__status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 12px;
    color: #159455;
    background: #eaf7f0;
    font-size: 12px;
    font-weight: 900;
  }

  .club-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    min-width: 0;
  }

  .club-dashboard__card {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 8px;
    color: #14233a;
  }

  .club-dashboard__card img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .club-dashboard__card strong {
    font-size: 15px;
    font-weight: 950;
  }

  .club-dashboard__card span {
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
  }

  .club-dashboard__card--primary {
    border-color: rgba(7, 140, 145, 0.28);
    background: linear-gradient(135deg, #e8f6f6, #ffffff);
  }
}

/* =========================================================
   FINAL DESKTOP SHELL OVERRIDES — 2026-07-17
   The nav itself is the right sidebar; the mobile header is hidden.
   ========================================================= */
@media (min-width: 769px) {
  .app-header { display: none; }

  #navMenu.nav {
    position: fixed;
    inset-block: 0;
    right: 0;
    width: 220px;
    height: 100dvh;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 11px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(160deg, #062f3f 0%, #075f60 100%);
    color: #fff;
    border-left: 1px solid rgba(255,255,255,.14);
    border-radius: 22px 0 0 22px;
    box-shadow: -10px 0 28px rgba(7,15,25,.08);
    transform: none;
  }

  #navMenu .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 5px 10px;
  }

  #navMenu .nav-close { display: none; }
  #navMenu .nav-left { display: grid; gap: 5px; }
  #navMenu .nav-right { display: grid; gap: 6px; margin-top: auto; }
  #navMenu .nav-group { min-width: 0; }
  #navMenu .nav-sub { position: static; width: 100%; max-width: 100%; }

  main.container {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-right: 240px;
    margin-left: 20px;
    padding-inline: 0;
  }
}


/* =========================================================
   DESKTOP SIDEBAR POLISH — wider, flat rows, soft active state
   ========================================================= */
@media (min-width: 769px) {
  #navMenu.nav {
    width: 248px;
    padding-inline: 13px;
  }

  #navMenu .nav-link,
  #navMenu .nav-group-toggle {
    min-height: 42px;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
  }

  #navMenu .nav-link:hover,
  #navMenu .nav-link:focus-visible,
  #navMenu .nav-group-toggle:hover,
  #navMenu .nav-group-toggle:focus-visible {
    border-color: transparent;
    background: rgba(255,255,255,.085);
    color: #fff;
  }

  #navMenu .nav-link.active,
  #navMenu .nav-group-toggle.active {
    border-color: transparent;
    background: rgba(255,255,255,.16);
    color: #fff;
  }

  #navMenu .nav-sub {
    padding-inline-start: 24px;
    border-radius: 0;
    background: transparent;
  }

  #navMenu .nav-sub .nav-link {
    background: transparent;
  }

  #navMenu .nav-right {
    gap: 7px;
  }

  #navMenu .user-chip,
  #navMenu .shell-logout {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
  }

  #navMenu .user-chip {
    justify-content: flex-start;
  }

  #navMenu .shell-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    box-shadow: none;
  }

  main.container {
    margin-right: 268px;
  }
}


/* =========================================================
   FINAL SIDEBAR STABILITY + SUBMENU ACTIVE STATE — 2026-07-18
   ========================================================= */
@media (min-width: 769px) {
  #navMenu.nav {
    width: 248px !important;
    min-width: 248px !important;
    max-width: 248px !important;
    box-sizing: border-box !important;
    overflow-y: scroll !important;
    scrollbar-gutter: stable !important;
  }

  #navMenu .nav-left,
  #navMenu .nav-right,
  #navMenu .nav-group,
  #navMenu .nav-sub {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #navMenu .nav-group-toggle {
    border-radius: 10px !important;
  }

  #navMenu .nav-sub .nav-link {
    border-radius: 8px !important;
    color: rgba(255,255,255,.82);
    background: transparent !important;
  }

  #navMenu .nav-sub .nav-link:hover,
  #navMenu .nav-sub .nav-link:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.08) !important;
  }

  #navMenu .nav-sub .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.16) !important;
    box-shadow: inset -3px 0 0 #52d6d1;
  }

  /* Group title opens the accordion but the selected child owns the active state. */
  #navMenu .nav-group.open > .nav-group-toggle:not(:hover):not(:focus-visible) {
    background: rgba(255,255,255,.07) !important;
  }

  main.container {
    margin-right: 268px !important;
  }
}


/* =========================================================
   MENU FIX 3 — hidden scrollbar, stable reload, active rail
   ========================================================= */
@media (min-width: 769px) {
  #navMenu.nav {
    overflow-y: auto !important;
    scrollbar-gutter: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: none !important;
  }

  #navMenu.nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  /* All directly active destinations use the same mint rail as active children. */
  #navMenu .nav-left > .nav-link.active,
  #navMenu .nav-sub .nav-link.active {
    box-shadow: inset -3px 0 0 #52d6d1 !important;
  }

  /* An expanded group is structural; the actual child owns the active rail. */
  #navMenu .nav-group.open > .nav-group-toggle:not(:hover):not(:focus-visible) {
    box-shadow: none !important;
  }
}

/* =========================================================
   MENU FIX 4 — preserve active accordion and semantic icon rail
   ========================================================= */
@media (min-width: 769px) {
  #navMenu .nav-left > .nav-link.active,
  #navMenu .nav-sub .nav-link.active {
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    box-shadow: inset -3px 0 0 #52d6d1 !important;
  }
}
