:root,
.dark {
    --color-primary: 244 90% 63%;
    --color-secondary: 252 100% 71%;
    --color-neutral: 246 28% 19%;
    --color-base: 245 60% 96%;
    --color-muted: 245 15% 64%;
    --color-inverted: 248 50% 6%;
    --color-success: 152 65% 58%;
    --color-error: 350 100% 71%;
    --color-warning: 42 100% 70%;
    --color-inactive: 245 10% 50%;
    --color-info: 204 100% 68%;
    --color-background: 248 47% 5%;
    --color-background-secondary: 247 38% 10%;
}

:root {
    --plus-ink: #06050e;
    --plus-panel: #0d0b1c;
    --plus-panel-2: #12102a;
    --plus-indigo: #5648f5;
    --plus-violet: #7b6cff;
    --plus-lav: #bdb8ff;
    --plus-paper: #f3f2ff;
    --plus-mist: #9c9ac0;
    --plus-mint: #7cf2b6;
    --plus-line: rgba(189, 184, 255, 0.12);
    --plus-line-strong: rgba(189, 184, 255, 0.24);
    --plus-radius: 18px;
    --plus-font: "Readex Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    color-scheme: dark;
}

body.plus-app {
    position: relative;
    font-family: var(--plus-font);
    color: var(--plus-paper);
    background:
        radial-gradient(1100px 560px at 8% -12%, rgba(86, 72, 245, 0.24), transparent 62%),
        radial-gradient(900px 520px at 102% -6%, rgba(123, 108, 255, 0.14), transparent 58%),
        radial-gradient(760px 520px at 50% 112%, rgba(124, 242, 182, 0.06), transparent 60%),
        var(--plus-ink);
    background-attachment: fixed;
}

body.plus-app::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(189, 184, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 184, 255, 0.035) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
}

.plus-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.plus-bg i {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.34;
    animation: plus-drift 22s ease-in-out infinite alternate;
}

.plus-bg i:nth-child(1) {
    width: 520px;
    height: 520px;
    top: -180px;
    inset-inline-start: -120px;
    background: #5648f5;
}

.plus-bg i:nth-child(2) {
    width: 420px;
    height: 420px;
    top: 8%;
    inset-inline-end: -140px;
    background: #7b6cff;
    animation-duration: 28s;
}

.plus-bg i:nth-child(3) {
    width: 360px;
    height: 360px;
    bottom: -160px;
    inset-inline-start: 38%;
    background: #2a2380;
    opacity: 0.4;
    animation-duration: 26s;
}

.plus-bg i:nth-child(4) {
    width: 240px;
    height: 240px;
    inset-inline-end: 14%;
    bottom: 6%;
    background: #7cf2b6;
    opacity: 0.08;
    animation-duration: 18s;
}

@keyframes plus-drift {
    to {
        transform: translate3d(28px, -34px, 0) scale(1.08);
    }
}

.plus-app h1,
.plus-app h2,
.plus-app h3,
.plus-app h4 {
    font-family: var(--plus-font);
    letter-spacing: -0.025em;
}

[dir="rtl"] .plus-app h1,
[dir="rtl"] .plus-app h2,
[dir="rtl"] .plus-app h3,
[dir="rtl"] .plus-app h4 {
    letter-spacing: 0;
}

.plus-main {
    margin-top: 84px !important;
    position: relative;
    z-index: 1;
}

.plus-app main {
    position: relative;
    z-index: 1;
}

.plus-app ::selection {
    color: #fff;
    background: rgba(86, 72, 245, 0.72);
}

.plus-app a,
.plus-app button {
    -webkit-tap-highlight-color: transparent;
}

.plus-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--plus-lav);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.plus-eyebrow > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--plus-mint);
    box-shadow: 0 0 12px var(--plus-mint);
    flex: 0 0 auto;
}

.plus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.plus-btn:hover {
    transform: translateY(-1px);
}

.plus-btn-primary {
    color: #fff;
    border: 1px solid rgba(189, 184, 255, 0.28);
    background: linear-gradient(135deg, #6a5ffa, #4b3eea);
    box-shadow: 0 14px 34px rgba(86, 72, 245, 0.36);
}

.plus-btn-primary:hover {
    box-shadow: 0 18px 40px rgba(86, 72, 245, 0.46);
}

.plus-btn-ghost {
    color: var(--plus-paper);
    border: 1px solid var(--plus-line-strong);
    background: rgba(189, 184, 255, 0.06);
}

.plus-btn-ghost:hover {
    background: rgba(189, 184, 255, 0.11);
    border-color: rgba(189, 184, 255, 0.4);
}

/* Header */
.plus-header {
    min-height: 72px;
    border-bottom: 1px solid var(--plus-line) !important;
    background: rgba(6, 5, 14, 0.76) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.plus-header > div > div {
    min-height: 72px;
}

.plus-brand {
    text-decoration: none;
    min-width: max-content;
}

.plus-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 6px 20px rgba(86, 72, 245, 0.38);
    flex: 0 0 auto;
}

.plus-brand-word {
    color: var(--plus-paper);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plus-brand-word span {
    color: var(--plus-lav);
}

.plus-nav a {
    border-radius: 10px;
    color: var(--plus-mist) !important;
    padding: 9px 13px !important;
    transition: color 0.2s ease, background 0.2s ease;
}

.plus-nav a:hover {
    color: var(--plus-paper) !important;
    background: rgba(189, 184, 255, 0.07);
}

.plus-actions > div,
.plus-actions > a,
.plus-actions > button {
    border-radius: 10px;
}

.plus-actions .bg-primary {
    background: linear-gradient(135deg, #6a5ffa, #4b3eea) !important;
    box-shadow: 0 8px 22px rgba(86, 72, 245, 0.3);
}

.plus-actions .bg-background-secondary {
    background: rgba(189, 184, 255, 0.06) !important;
    border-color: var(--plus-line-strong) !important;
}

.plus-header .theme-toggle,
.plus-theme-toggle {
    display: none !important;
}

/* Home */
.plus-home {
    position: relative;
    z-index: 1;
}

.plus-hero {
    padding: 56px 0 68px;
}

.plus-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 56px;
    align-items: center;
}

.plus-hero-copy h1 {
    margin: 18px 0 20px;
    color: var(--plus-paper);
    font-size: clamp(2.55rem, 5vw, 4.55rem);
    font-weight: 700;
    line-height: 1.08;
}

.plus-hero-copy h1 span {
    background: linear-gradient(100deg, #bdb8ff 0%, #7b6cff 52%, #7cf2b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plus-hero-lead {
    max-width: 610px;
    margin: 0;
    color: var(--plus-mist);
    font-size: 17px;
    line-height: 1.9;
}

.plus-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.plus-hero-actions .plus-btn {
    min-height: 48px;
    padding: 0 24px;
}

.plus-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    color: var(--plus-mist);
    font-size: 13px;
}

.plus-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plus-hero-points svg {
    color: var(--plus-mint);
}

.plus-hero-panel {
    position: relative;
    border: 1px solid var(--plus-line-strong);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(25, 22, 53, 0.94), rgba(9, 8, 22, 0.96));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.plus-hero-panel::before {
    content: "";
    position: absolute;
    inset-inline: 18%;
    top: -90px;
    height: 170px;
    border-radius: 50%;
    background: rgba(123, 108, 255, 0.3);
    filter: blur(54px);
    pointer-events: none;
}

.plus-panel-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--plus-line);
    background: rgba(6, 5, 14, 0.4);
}

.plus-panel-dots {
    display: inline-flex;
    gap: 6px;
}

.plus-panel-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(189, 184, 255, 0.25);
}

.plus-panel-dots i:first-child {
    background: rgba(255, 107, 129, 0.75);
}

.plus-panel-dots i:nth-child(2) {
    background: rgba(255, 209, 102, 0.75);
}

.plus-panel-dots i:last-child {
    background: rgba(124, 242, 182, 0.75);
}

.plus-panel-label {
    color: rgba(189, 184, 255, 0.55);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 10px;
    direction: ltr;
}

.plus-panel-body {
    position: relative;
    padding: 24px;
}

.plus-panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--plus-line);
}

.plus-panel-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(86, 72, 245, 0.36);
}

.plus-panel-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.plus-panel-brand b {
    color: var(--plus-paper);
    font-size: 16px;
}

.plus-panel-brand span {
    color: var(--plus-mist);
    font-size: 12px;
}

.plus-panel-rows {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.plus-panel-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(189, 184, 255, 0.07);
    border-radius: 11px;
    color: var(--plus-mist);
    background: rgba(189, 184, 255, 0.035);
    font-size: 13px;
}

.plus-panel-row svg {
    color: var(--plus-lav);
}

.plus-panel-row i {
    width: 7px;
    height: 7px;
    margin-inline-start: auto;
    border-radius: 50%;
    background: rgba(189, 184, 255, 0.25);
}

.plus-panel-row i.ok {
    background: var(--plus-mint);
    box-shadow: 0 0 9px rgba(124, 242, 182, 0.7);
}

.plus-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--plus-line);
    color: var(--plus-mist);
    font-size: 11px;
}

.plus-panel-footer b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--plus-mint);
    font-weight: 600;
}

.plus-home-note {
    padding-bottom: 12px;
}

.plus-home-note .plus-prose {
    padding: 24px;
    border: 1px solid var(--plus-line);
    border-radius: var(--plus-radius);
    background: rgba(18, 16, 42, 0.55);
}

.plus-services {
    padding-top: 28px;
    padding-bottom: 24px;
    scroll-margin-top: 96px;
}

.plus-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.plus-section-head h2 {
    margin: 10px 0 0;
    color: var(--plus-paper);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 700;
}

.plus-section-head > p {
    max-width: 430px;
    margin: 0;
    color: var(--plus-mist);
    font-size: 13.5px;
    line-height: 1.8;
    text-align: end;
}

.plus-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plus-service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--plus-line);
    border-radius: var(--plus-radius);
    background: linear-gradient(165deg, rgba(25, 22, 53, 0.82), rgba(11, 10, 26, 0.82));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.plus-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(189, 184, 255, 0.32);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.plus-service-media {
    position: relative;
    height: 156px;
    overflow: hidden;
    border-bottom: 1px solid var(--plus-line);
    background: radial-gradient(circle at 50% 40%, rgba(86, 72, 245, 0.34), transparent 70%), #0b0a1a;
}

.plus-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.plus-service-card:hover .plus-service-media img {
    transform: scale(1.04);
    opacity: 1;
}

.plus-service-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--plus-lav);
    opacity: 0.65;
}

.plus-service-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: 4px 9px;
    border: 1px solid rgba(124, 242, 182, 0.22);
    border-radius: 999px;
    color: var(--plus-mint);
    background: rgba(6, 5, 14, 0.72);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 600;
}

.plus-service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.plus-service-body h3 {
    margin: 0 0 8px;
    color: var(--plus-paper);
    font-size: 18px;
    font-weight: 600;
}

.plus-service-desc {
    flex: 1;
    margin: 0 0 16px;
    color: var(--plus-mist);
    font-size: 12.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plus-service-desc p {
    margin: 0;
}

.plus-service-desc * {
    color: inherit !important;
    font-size: inherit !important;
}

.plus-btn-card {
    width: 100%;
    min-height: 42px;
    color: var(--plus-paper);
    border: 1px solid var(--plus-line-strong);
    background: rgba(86, 72, 245, 0.14);
}

.plus-btn-card:hover {
    background: rgba(86, 72, 245, 0.24);
    border-color: rgba(189, 184, 255, 0.4);
}

.plus-trust {
    padding-top: 34px;
    padding-bottom: 58px;
}

.plus-trust-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--plus-line);
    border-radius: 22px;
    background:
        radial-gradient(600px 280px at 90% 0%, rgba(123, 108, 255, 0.18), transparent 60%),
        linear-gradient(155deg, rgba(25, 22, 53, 0.68), rgba(11, 10, 26, 0.64));
}

.plus-trust-card h2 {
    margin: 10px 0 0;
    color: var(--plus-paper);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 700;
}

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

.plus-trust-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(189, 184, 255, 0.08);
    border-radius: 13px;
    background: rgba(189, 184, 255, 0.035);
}

.plus-trust-grid svg {
    color: var(--plus-lav);
    margin-bottom: 4px;
}

.plus-trust-grid b {
    color: var(--plus-paper);
    font-size: 13px;
}

.plus-trust-grid span {
    color: var(--plus-mist);
    font-size: 11px;
    line-height: 1.6;
}

.plus-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px;
    border: 1px dashed var(--plus-line-strong);
    border-radius: var(--plus-radius);
    color: var(--plus-mist);
    background: rgba(18, 16, 42, 0.4);
}

/* Generic content cards, forms and tables */
.plus-app main .bg-background-secondary {
    background: linear-gradient(160deg, rgba(22, 19, 45, 0.9), rgba(11, 10, 26, 0.9)) !important;
    border-color: var(--plus-line) !important;
    border-radius: var(--plus-radius);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.plus-app main .bg-background-secondary\/80:hover,
.plus-app main .hover\:bg-background-secondary\/80:hover {
    background: rgba(30, 26, 60, 0.9) !important;
}

.plus-app main .border-neutral {
    border-color: var(--plus-line) !important;
}

.plus-app main .divide-neutral > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--plus-line) !important;
}

.plus-app main .prose,
.plus-app main .prose * {
    color: var(--plus-mist);
}

.plus-app main .prose h1,
.plus-app main .prose h2,
.plus-app main .prose h3,
.plus-app main .prose h4,
.plus-app main .prose strong {
    color: var(--plus-paper);
}

.plus-app main .prose a {
    color: var(--plus-lav);
}

.plus-app input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.plus-app select,
.plus-app textarea {
    color: var(--plus-paper) !important;
    border: 1px solid var(--plus-line-strong) !important;
    border-radius: 10px !important;
    background: rgba(6, 5, 14, 0.5) !important;
    box-shadow: none !important;
}

.plus-app input:focus,
.plus-app select:focus,
.plus-app textarea:focus {
    border-color: rgba(123, 108, 255, 0.72) !important;
    outline: 2px solid rgba(123, 108, 255, 0.18) !important;
    outline-offset: 1px;
}

.plus-app input::placeholder,
.plus-app textarea::placeholder {
    color: rgba(156, 154, 192, 0.6) !important;
}

.plus-app label {
    color: var(--plus-lav) !important;
}

.plus-app main .bg-primary {
    background: linear-gradient(135deg, #6a5ffa, #4b3eea) !important;
    box-shadow: 0 8px 24px rgba(86, 72, 245, 0.28);
}

.plus-app main .bg-primary:hover {
    background: linear-gradient(135deg, #7b6cff, #5648f5) !important;
}

.plus-app main button.bg-background-secondary,
.plus-app main a.bg-background-secondary {
    background: rgba(189, 184, 255, 0.06) !important;
    border-color: var(--plus-line-strong) !important;
}

.plus-app main .rounded-lg,
.plus-app main .rounded-md {
    border-radius: 12px;
}

.plus-app main .rounded-xl {
    border-radius: var(--plus-radius);
}

.plus-app .dropdown-menu,
.plus-app [x-ref="dropdown"] {
    border-color: var(--plus-line-strong) !important;
    background: #12102a !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46) !important;
}

.plus-app #main-aside {
    top: 72px;
    height: calc(100vh - 72px);
    border-color: var(--plus-line) !important;
    background: rgba(9, 8, 22, 0.82) !important;
    backdrop-filter: blur(16px);
}

.plus-app #main-aside a {
    border-radius: 10px;
}

.plus-page {
    padding-top: 6px;
}

.plus-category-list {
    gap: 2px;
}

.plus-category-list a {
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--plus-mist);
    font-size: 13px;
    transition: color 0.2s ease, background 0.2s ease;
}

.plus-category-list a:hover {
    color: var(--plus-paper);
    background: rgba(189, 184, 255, 0.06);
}

.plus-category-list a.font-bold {
    color: var(--plus-lav);
    background: rgba(86, 72, 245, 0.14);
}

.plus-product-card {
    overflow: hidden;
    padding: 0 !important;
    background: linear-gradient(165deg, rgba(25, 22, 53, 0.88), rgba(11, 10, 26, 0.9)) !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.plus-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(189, 184, 255, 0.32) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.plus-product-card > img.plus-product-image {
    width: 100%;
    height: 172px;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    border-bottom: 1px solid var(--plus-line);
}

.plus-product-card > h2,
.plus-product-card > h3,
.plus-product-card > article {
    margin-inline: 16px;
}

.plus-product-card > h2 {
    margin-top: 16px;
    margin-bottom: 4px;
    color: var(--plus-paper);
    font-size: 18px;
}

.plus-product-card > h3 {
    color: var(--plus-lav);
    font-size: 14px;
}

.plus-product-card > div:last-child {
    padding: 12px 16px 16px;
}

.plus-product-card > div:not(:last-child) {
    padding-inline: 16px;
}

.plus-plans-page {
    padding-bottom: 56px;
}

.plus-plans-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.plus-plans-title {
    min-width: 0;
}

.plus-plans-title h1 {
    margin: 10px 0 8px;
    color: var(--plus-paper);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.plus-plans-desc {
    max-width: 720px;
    color: var(--plus-mist);
    font-size: 14px;
    line-height: 1.9;
}

.plus-plans-desc > :first-child {
    margin-top: 0;
}

.plus-plans-desc > :last-child {
    margin-bottom: 0;
}

.plus-plans-desc a {
    color: var(--plus-lav);
}

.plus-plan-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.plus-plan-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--plus-line);
    border-radius: 999px;
    color: var(--plus-mist);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    background: rgba(18, 16, 42, 0.52);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.plus-plan-categories a:hover {
    color: var(--plus-paper);
    border-color: var(--plus-line-strong);
    background: rgba(189, 184, 255, 0.07);
}

.plus-plan-categories a.is-active {
    color: #fff;
    border-color: rgba(123, 108, 255, 0.52);
    background: linear-gradient(135deg, #6a5ffa, #4b3eea);
    box-shadow: 0 10px 24px rgba(86, 72, 245, 0.28);
}

.plus-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    max-width: 1180px;
    margin-inline: auto;
}

.plus-plan-grid-1 {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}

.plus-plan-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 520px));
    justify-content: center;
}

.plus-plan-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 380px));
    justify-content: center;
}

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

.plus-plan-grid + .plus-plan-grid {
    margin-top: 20px;
}

.plus-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    height: 100%;
    padding: 30px;
    border: 1px solid var(--plus-line);
    border-radius: 22px;
    background:
        radial-gradient(120% 85% at 100% 0%, rgba(123, 108, 255, 0.14), transparent 58%),
        linear-gradient(165deg, rgba(25, 22, 53, 0.94), rgba(10, 9, 24, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.plus-plan-card::before {
    content: "";
    position: absolute;
    inset-inline: 22px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(189, 184, 255, 0.5), transparent);
    pointer-events: none;
}

.plus-plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(189, 184, 255, 0.34);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
}

.plus-plan-card.is-out-of-stock {
    opacity: 0.82;
}

.plus-plan-card-category .plus-plan-features {
    min-height: 48px;
}

.plus-plan-category-media {
    margin: -10px -6px 18px;
    overflow: hidden;
    border: 1px solid var(--plus-line);
    border-radius: 15px;
    aspect-ratio: 16 / 7;
}

.plus-plan-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plus-plan-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plus-plan-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plus-plan-title-row h2,
.plus-plan-header h2 {
    margin: 0;
    color: var(--plus-paper);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.plus-plan-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    padding: 0 9px;
    border: 1px solid rgba(124, 242, 182, 0.28);
    border-radius: 999px;
    color: var(--plus-mint);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: rgba(124, 242, 182, 0.08);
}

.plus-plan-badge-muted {
    color: #ffb3c0;
    border-color: rgba(255, 122, 147, 0.26);
    background: rgba(255, 122, 147, 0.08);
}

.plus-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.plus-plan-from {
    width: 100%;
    color: var(--plus-mist);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.plus-plan-price strong {
    color: var(--plus-paper);
    font-size: clamp(40px, 3.8vw, 50px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}

.plus-plan-period {
    color: var(--plus-mist);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.plus-plan-fee {
    color: var(--plus-mist);
    font-size: 11px;
    line-height: 1.4;
}

.plus-plan-divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, var(--plus-line-strong), transparent);
}

.plus-plan-features {
    flex: 1 1 auto;
    color: var(--plus-mist);
    font-size: 14px;
    line-height: 1.85;
}

.plus-plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
}

.plus-plan-feature::before,
.plus-plan-rich li::before {
    content: "✓";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    color: var(--plus-mint);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    background: rgba(124, 242, 182, 0.1);
}

.plus-plan-feature span {
    min-width: 0;
}

.plus-plan-spec {
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(189, 184, 255, 0.08);
}

.plus-plan-spec:last-child {
    border-bottom: 0;
}

.plus-plan-spec::before {
    display: none;
}

.plus-plan-spec span {
    color: var(--plus-mist);
}

.plus-plan-spec strong {
    color: var(--plus-paper);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.plus-plan-rich > :first-child {
    margin-top: 0;
}

.plus-plan-rich > :last-child {
    margin-bottom: 0;
}

.plus-plan-rich p {
    margin: 0 0 10px;
    line-height: 1.85;
}

.plus-plan-rich ul,
.plus-plan-rich ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plus-plan-rich li {
    position: relative;
    margin: 8px 0;
    padding-inline-start: 28px;
    line-height: 1.7;
}

.plus-plan-rich li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    margin-top: 0;
}

.plus-plan-rich strong {
    color: var(--plus-paper);
    font-weight: 600;
}

.plus-plan-rich a {
    color: var(--plus-lav);
}

.plus-plan-features-empty {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px dashed var(--plus-line-strong);
    border-radius: 12px;
    color: var(--plus-mist);
    font-size: 12px;
    line-height: 1.7;
    background: rgba(6, 5, 14, 0.22);
}

.plus-plan-features-empty svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--plus-lav);
}

.plus-plan-actions {
    margin-top: 22px;
}

.plus-plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(189, 184, 255, 0.28);
    border-radius: 12px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(135deg, #6a5ffa, #4b3eea);
    box-shadow: 0 14px 30px rgba(86, 72, 245, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plus-plan-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #7b6cff, #5648f5);
    box-shadow: 0 18px 36px rgba(86, 72, 245, 0.4);
}

.plus-plan-cta-muted {
    color: var(--plus-paper);
    border-color: var(--plus-line-strong);
    background: rgba(189, 184, 255, 0.07);
    box-shadow: none;
}

.plus-plan-cta-muted:hover {
    color: var(--plus-paper);
    background: rgba(189, 184, 255, 0.12);
    box-shadow: none;
}

.plus-plan-arrow {
    transition: transform 0.2s ease;
}

.plus-plan-cta:hover .plus-plan-arrow {
    transform: translateX(3px);
}

[dir="rtl"] .plus-plan-arrow {
    transform: rotate(180deg);
}

[dir="rtl"] .plus-plan-cta:hover .plus-plan-arrow {
    transform: rotate(180deg) translateX(3px);
}

.plus-plan-cta-muted .plus-plan-arrow {
    opacity: 0.7;
}

@media (max-width: 1023px) {
    .plus-plan-grid,
    .plus-plan-grid-2,
    .plus-plan-grid-3,
    .plus-plan-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plus-plan-grid-1 {
        grid-template-columns: minmax(0, 380px);
    }
}

@media (max-width: 767px) {
    .plus-plans-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 22px;
    }

    .plus-plan-categories {
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .plus-plan-categories::-webkit-scrollbar {
        display: none;
    }

    .plus-plan-categories a {
        flex: 0 0 auto;
    }

    .plus-plan-card {
        padding: 22px;
    }

    .plus-plan-price strong {
        font-size: 36px;
    }
}

@media (max-width: 639px) {
    .plus-plan-grid,
    .plus-plan-grid-1,
    .plus-plan-grid-2,
    .plus-plan-grid-3,
    .plus-plan-grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.plus-product-show {
    border-radius: 22px !important;
    padding: 22px !important;
    background: linear-gradient(160deg, rgba(25, 22, 53, 0.86), rgba(11, 10, 26, 0.9)) !important;
}

.plus-product-show .plus-product-hero {
    border-radius: 16px;
    background: rgba(6, 5, 14, 0.4);
}

.plus-checkout-summary {
    border: 1px solid var(--plus-line-strong) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    background: linear-gradient(160deg, rgba(25, 22, 53, 0.92), rgba(11, 10, 26, 0.94)) !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

/* Auth */
.plus-auth-card {
    position: relative;
    max-width: 560px !important;
    margin-top: 20px !important;
    margin-bottom: 40px;
    padding: 34px 40px 32px !important;
    border: 1px solid var(--plus-line-strong) !important;
    border-radius: 24px !important;
    background: linear-gradient(165deg, rgba(25, 22, 53, 0.92), rgba(9, 8, 22, 0.94)) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.plus-auth-card::before {
    content: "";
    position: absolute;
    inset-inline: 20%;
    top: -80px;
    height: 140px;
    border-radius: 50%;
    background: rgba(86, 72, 245, 0.3);
    filter: blur(50px);
    pointer-events: none;
}

.plus-auth-card::after {
    content: "";
    position: absolute;
    inset-inline: 12%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(189, 184, 255, 0.55), transparent);
}

.plus-auth-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2px 0 26px !important;
}

.plus-auth-head img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(86, 72, 245, 0.38);
}

.plus-auth-head h1 {
    margin-top: 16px !important;
    color: var(--plus-paper);
    font-size: 26px !important;
    font-weight: 700;
}

.plus-auth-head p {
    margin: 6px 0 0;
    color: var(--plus-mist);
    font-size: 13px;
    text-align: center;
}

.plus-auth-card .form-checkbox {
    accent-color: var(--plus-indigo);
}

.plus-auth-foot {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--plus-line);
    color: var(--plus-mist) !important;
    font-size: 13px !important;
}

/* Footer */
.plus-footer {
    margin-top: auto;
    padding-top: 64px;
    border-top: 1px solid var(--plus-line);
    background: rgba(6, 5, 14, 0.6);
}

.plus-footer-inner {
    padding-bottom: 28px;
}

.plus-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
    gap: 42px;
    padding-bottom: 42px;
}

.plus-footer-brand p {
    max-width: 420px;
    margin: 18px 0;
    color: var(--plus-mist);
    font-size: 13px;
    line-height: 1.9;
}

.plus-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.plus-footer-badges span {
    padding: 5px 9px;
    border: 1px solid var(--plus-line);
    border-radius: 8px;
    color: rgba(189, 184, 255, 0.7);
    background: rgba(189, 184, 255, 0.04);
    font-size: 10px;
    font-weight: 600;
}

.plus-footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.plus-footer-col h3 {
    margin: 0 0 5px;
    color: var(--plus-paper);
    font-size: 13px;
    font-weight: 600;
}

.plus-footer-col a {
    width: fit-content;
    color: var(--plus-mist);
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.plus-footer-col a:hover {
    color: var(--plus-lav);
}

.plus-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--plus-line);
    color: rgba(156, 154, 192, 0.7);
    font-size: 11.5px;
}

.plus-footer-bottom b {
    color: var(--plus-lav);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .plus-hero-inner {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .plus-hero-panel {
        max-width: 620px;
    }

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

    .plus-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .plus-main {
        margin-top: 76px !important;
    }

    .plus-header,
    .plus-header > div > div {
        min-height: 64px;
    }

    .plus-brand-mark {
        width: 33px;
        height: 33px;
    }

    .plus-brand-word {
        font-size: 1rem;
    }

    .plus-hero {
        padding: 34px 0 48px;
    }

    .plus-hero-copy h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .plus-hero-lead {
        font-size: 15px;
    }

    .plus-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .plus-section-head > p {
        text-align: start;
    }

    .plus-trust-grid {
        grid-template-columns: 1fr;
    }

    .plus-trust-card {
        padding: 24px;
    }

    .plus-auth-card {
        padding: 26px 22px 24px !important;
        border-radius: 20px !important;
    }

    .plus-footer {
        padding-top: 44px;
    }

    .plus-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .plus-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plus-bg i,
    .plus-service-card,
    .plus-service-media img,
    .plus-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Storefront home (guests) ---------- */
.plus-intro {
    position: relative;
    padding: 72px 0 20px;
}

.plus-intro-inner {
    max-width: 46rem;
}

.plus-intro h1 {
    margin: 0 0 14px;
    color: var(--plus-paper);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.3;
}

.plus-intro p {
    max-width: 38em;
    margin: 0 0 26px;
    color: var(--plus-mist);
    font-size: 16px;
    line-height: 1.85;
}

.plus-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.plus-service-from {
    margin: 12px 0 18px;
    color: var(--plus-mist);
    font-size: 14px;
}

.plus-service-from strong {
    margin-inline: 4px;
    color: var(--plus-paper);
    font-size: 22px;
    font-weight: 700;
}

.plus-next {
    padding-top: 8px;
    padding-bottom: 72px;
}

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

.plus-next-grid a {
    display: block;
    padding: 22px;
    border: 1px solid var(--plus-line);
    border-radius: 16px;
    background: rgba(18, 16, 42, 0.5);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.plus-next-grid a:hover {
    border-color: var(--plus-line-strong);
    background: rgba(25, 22, 53, 0.62);
}

.plus-next-grid svg {
    color: var(--plus-lav);
}

.plus-next-grid b {
    display: block;
    margin: 12px 0 4px;
    color: var(--plus-paper);
    font-size: 16px;
    font-weight: 600;
}

.plus-next-grid span {
    color: var(--plus-mist);
    font-size: 13.5px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .plus-intro {
        padding-top: 48px;
    }

    .plus-next-grid {
        grid-template-columns: 1fr;
    }

    .plus-intro-actions .plus-btn {
        width: 100%;
    }
}

/* ---------- Compact footer (dropdown sections) ---------- */
footer.plus-footer {
    margin-top: auto;
    padding-block: 0;
    border-top: 1px solid var(--plus-line);
    background: rgba(6, 5, 14, 0.7);
}

.plus-fbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    min-height: 60px;
    padding-block: 10px;
}

.plus-fbrand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.plus-fbrand img {
    width: 28px;
    height: 28px;
}

.plus-fnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-inline-start: 8px;
}

.plus-fdrop {
    position: relative;
}

.plus-fdrop summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--plus-mist);
    font-size: 13.5px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.plus-fdrop summary::-webkit-details-marker {
    display: none;
}

.plus-fdrop summary:hover,
.plus-fdrop[open] summary {
    color: var(--plus-paper);
    background: rgba(189, 184, 255, 0.07);
}

.plus-fdrop summary svg {
    transition: transform 0.2s ease;
}

.plus-fdrop[open] summary svg {
    transform: rotate(180deg);
}

.plus-fpanel {
    position: absolute;
    inset-inline-start: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    display: grid;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--plus-line-strong);
    border-radius: 12px;
    background: #0d0b1c;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
}

.plus-fpanel a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--plus-mist);
    font-size: 13.5px;
    white-space: nowrap;
}

.plus-fpanel a:hover {
    color: var(--plus-paper);
    background: rgba(189, 184, 255, 0.08);
}

.plus-fcopy {
    margin: 0;
    margin-inline-start: auto;
    color: var(--plus-mist);
    font-size: 12.5px;
}

.plus-fcopy b {
    color: var(--plus-lav);
    font-weight: 600;
}

@media (max-width: 760px) {
    .plus-fbar {
        gap: 6px;
    }

    .plus-fbrand {
        order: 1;
    }

    .plus-fnav {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .plus-fcopy {
        order: 2;
        margin-inline-start: auto;
        font-size: 11.5px;
    }

    .plus-fdrop {
        border-top: 1px solid var(--plus-line);
    }

    .plus-fdrop summary {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 12px 4px;
        border-radius: 0;
    }

    .plus-fdrop summary:hover,
    .plus-fdrop[open] summary {
        background: transparent;
    }

    .plus-fpanel {
        position: static;
        min-width: 0;
        padding: 0 0 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* ---------- Split login page ---------- */
.plus-split {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow-y: auto;
    background:
        radial-gradient(900px 600px at 0% 0%, rgba(86, 72, 245, 0.55), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(123, 108, 255, 0.16), transparent 60%),
        #06050e;
}

.plus-split-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 52px;
    border-inline-end: 1px solid var(--plus-line);
    background-image:
        linear-gradient(rgba(189, 184, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 184, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
}

.plus-split-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--plus-paper);
    font-size: 18px;
    font-weight: 600;
    width: fit-content;
}

.plus-split-brand img {
    border-radius: 10px;
}

.plus-split-brand b {
    color: var(--plus-lav);
    font-weight: 400;
}

.plus-split-brand-mobile {
    display: none;
    margin-bottom: 28px;
}

.plus-split-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--plus-lav);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.plus-split-copy h2 {
    max-width: 11em;
    margin: 0 0 18px;
    color: var(--plus-paper);
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.plus-split-copy p {
    max-width: 30em;
    margin: 0 0 24px;
    color: var(--plus-mist);
    font-size: 16px;
    line-height: 1.85;
}

.plus-split-copy ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--plus-paper);
    font-size: 14px;
}

.plus-split-copy li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plus-split-copy li svg {
    color: var(--plus-mint);
}

.plus-split-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--plus-line-strong);
    border-radius: 14px;
    background: rgba(13, 11, 28, 0.7);
    transition: border-color 0.18s ease;
}

.plus-split-card:hover {
    border-color: rgba(123, 108, 255, 0.5);
}

.plus-split-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(124, 242, 182, 0.25);
    border-radius: 11px;
    color: var(--plus-mint);
    background: rgba(124, 242, 182, 0.08);
}

.plus-split-card b {
    display: block;
    color: var(--plus-paper);
    font-size: 14px;
    font-weight: 600;
}

.plus-split-card small {
    color: var(--plus-mist);
    font-size: 12px;
}

.plus-split-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.plus-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(420px, 100%);
}

.plus-login-form h1 {
    margin: 0;
    color: var(--plus-paper);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.plus-login-sub {
    margin: 0 0 8px;
    color: var(--plus-mist);
    font-size: 14px;
}

.plus-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.plus-login-row a {
    color: var(--plus-lav);
}

.plus-login-row a:hover {
    text-decoration: underline;
}

.plus-login-or {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--plus-mist);
    font-size: 12px;
}

.plus-login-or::before,
.plus-login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--plus-line);
}

.plus-login-oauth {
    display: grid;
    gap: 10px;
}

.plus-login-oauth a,
.plus-login-create {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    border: 1px solid var(--plus-line-strong);
    border-radius: 12px;
    color: var(--plus-paper);
    background: rgba(13, 11, 28, 0.6);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.plus-login-oauth a:hover,
.plus-login-create:hover {
    border-color: rgba(123, 108, 255, 0.5);
    background: rgba(25, 22, 53, 0.8);
}

.plus-login-legal {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 0;
    color: var(--plus-mist);
    font-size: 12px;
}

.plus-login-legal a:hover {
    color: var(--plus-paper);
}

/* phones and narrow windows: drop the marketing side, keep only the form */
@media (max-width: 900px) {
    .plus-split {
        grid-template-columns: 1fr;
    }

    .plus-split-hero {
        display: none;
    }

    .plus-split-brand-mobile {
        display: inline-flex;
    }

    .plus-split-form {
        justify-content: flex-start;
        padding: 36px 20px 40px;
    }
}

/* the split login page is full-screen: hide the site header and footer on it */
body:has(.plus-split) .plus-header,
body:has(.plus-split) footer.plus-footer,
body:has(.plus-split) .plus-bg {
    display: none !important;
}

body:has(.plus-split) .plus-main {
    margin-top: 0 !important;
}

/* keep the welcome panel on the left and the form on the right in Arabic too */
html[dir="rtl"] .plus-split {
    direction: ltr;
}

html[dir="rtl"] .plus-split-hero,
html[dir="rtl"] .plus-split-form {
    direction: rtl;
}

html[dir="rtl"] .plus-split-hero {
    border-inline-end: 0;
    border-right: 1px solid var(--plus-line);
}

/* Plus Host: category art beside the plans title (shown to everyone, signed in or not) */
.plus-plans-lead {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.plus-plans-art {
    flex: 0 0 auto;
    width: 210px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--plus-line);
    border-radius: 15px;
    aspect-ratio: 16 / 7;
}

.plus-plans-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .plus-plans-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .plus-plans-art {
        width: 100%;
        max-width: 340px;
    }
}

/* ---------- App shell: sticky top bar + right sidebar ---------- */
body.plus-app.ph-shell-body {
    --ph-shell-bg: #020817;
    --ph-shell-card: #020817;
    --ph-shell-card-soft: rgba(30, 41, 59, .5);
    --ph-shell-border: #1e293b;
    --ph-shell-text: #f8fafc;
    --ph-shell-muted: #94a3b8;
    --ph-shell-primary: #3b82f6;
    --ph-shell-primary-soft: rgba(59, 130, 246, .1);
    background: var(--ph-shell-bg) !important;
}

/* ---------- Reference-style page loading layer ---------- */
.plus-app .ph-page-loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    place-items: center;
    color: var(--ph-shell-text, #f8fafc);
    background: var(--ph-shell-bg, #020817);
}

.plus-app .ph-page-loading.is-visible {
    display: grid;
}

.plus-app .ph-page-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: min(100%, 360px);
    padding: 24px;
    text-align: center;
}

.plus-app .ph-page-loading-spinner {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--ph-shell-primary-soft, rgba(59, 130, 246, .1));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .2);
}

.plus-app .ph-page-loading-spinner::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(59, 130, 246, .25);
    border-top-color: var(--ph-shell-primary, #3b82f6);
    border-radius: 50%;
    animation: ph-page-spin .7s linear infinite;
}

.plus-app .ph-page-loading-text h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.plus-app .ph-page-loading-text p {
    margin: 0;
    color: var(--ph-shell-muted, #94a3b8);
    font-size: 14px;
    line-height: 1.7;
}

.plus-app .ph-page-loading-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 100001;
    display: none;
    height: 2px;
    overflow: hidden;
    background: rgba(59, 130, 246, .12);
}

.plus-app .ph-page-loading-bar.is-visible {
    display: block;
}

.plus-app .ph-page-loading-bar::after {
    content: "";
    display: block;
    width: 34%;
    height: 100%;
    border-radius: 999px;
    background: var(--ph-shell-primary, #3b82f6);
    animation: ph-page-progress 1.1s ease-in-out infinite;
}

@keyframes ph-page-spin {
    to { transform: rotate(360deg); }
}

@keyframes ph-page-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(390%); }
}

html.light .plus-app .ph-page-loading {
    color: #0f172a;
    background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
    .plus-app .ph-page-loading-spinner::after { animation-duration: 1.4s; }
    .plus-app .ph-page-loading-bar::after { animation: none; width: 100%; opacity: .6; }
}

body.plus-app.ph-shell-body::before,
body.plus-app.ph-shell-body .plus-bg {
    display: none !important;
}

.plus-app .plus-header.ph-shell-header {
    height: 65px !important;
    min-height: 65px !important;
    margin-top: 0 !important;
    padding-inline: 12px !important;
    border-bottom: 1px solid #1e293b !important;
    background: rgba(2, 8, 23, .7) !important;
    background: oklab(0.13627 -0.00681588 -0.0357581 / 0.7) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.plus-app .plus-header.ph-shell-header > div > div {
    min-height: 65px !important;
}

/* Dashboard header mirrors the reference: no cart / locale extras above the content. */
body.plus-app.ph-shell-body .ph-top-cart,
body.plus-app.ph-shell-body .ph-top-locale {
    display: none !important;
}

.ph-shell-promo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    color: var(--ph-shell-muted);
    transition: background .18s ease, color .18s ease;
}

.ph-shell-promo:hover { color: var(--ph-shell-text); background: rgba(148, 163, 184, .1); }

.ph-shell-top-sep {
    display: block;
    width: 1px;
    height: 24px;
    margin-inline: 4px;
    background: var(--ph-shell-border);
}

@media (max-width: 639px) {
    .ph-shell-top-sep { display: none; }
}

.ph-shell-title {
    margin: 0;
    color: var(--ph-shell-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}

@media (min-width: 640px) {
    .ph-shell-title {
        font-size: 18px;
    }
}

.ph-shell-icon-btn,
.ph-shell-header .ph-shell-icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    color: var(--ph-shell-muted);
    background: transparent;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.ph-shell-icon-btn:hover {
    color: var(--ph-shell-text);
    background: rgba(148, 163, 184, .1);
}

.ph-shell-header button[aria-label="Toggle Menu"] {
    color: var(--ph-shell-muted) !important;
}

.ph-shell-header button[aria-label="Toggle Menu"]:hover {
    color: var(--ph-shell-text) !important;
    background: rgba(148, 163, 184, .1) !important;
}

.plus-app .ph-shell-content {
    position: relative;
    z-index: 1;
}

.plus-app .ph-shell-main {
    margin-top: 65px !important;
}

.plus-app .ph-shell-sidebar {
    top: 65px !important;
    width: 244px !important;
    min-width: 244px !important;
    height: calc(100vh - 65px) !important;
    padding: 0 !important;
    /* Reference: the divider sits on the content-facing edge of the right sidebar
       (inline-end in RTL = physical left) and runs the full height of the shell. */
    border-inline-start: 0 !important;
    border-inline-end: 1px solid var(--ph-shell-border) !important;
    background: var(--ph-shell-card) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: width .25s ease, min-width .25s ease;
}

.ph-side-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 64px;
    flex: 0 0 64px;
    padding: 0 14px;
    /* Reference has no divider under the logo area. */
    border-bottom: 0;
}

.ph-side-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border-radius: 10px;
    color: var(--ph-shell-text) !important;
    text-decoration: none !important;
    outline: none;
}

.ph-side-brand-link:focus-visible,
.ph-side-collapse:focus-visible {
    outline: 2px solid var(--ph-shell-primary);
    outline-offset: 2px;
}

.ph-side-brand-mark {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: contain;
}

.ph-side-brand-name {
    overflow: hidden;
    color: var(--ph-shell-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ph-side-brand-name b {
    color: #93c5fd;
    font-weight: 700;
}

.ph-side-collapse {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--ph-shell-border);
    border-radius: 9px;
    color: var(--ph-shell-muted);
    background: var(--ph-shell-card);
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.ph-side-collapse:hover {
    color: var(--ph-shell-text);
    background: rgba(148, 163, 184, .1);
}

.ph-side-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 12px 8px;
    scrollbar-width: thin;
}

.ph-side-nav::-webkit-scrollbar {
    width: 5px;
}

.ph-side-nav::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(148, 163, 184, .2);
}

.ph-side-group + .ph-side-group {
    margin-top: 18px;
}

.ph-side-group-title {
    margin: 0 0 6px;
    padding: 2px 8px;
    color: rgba(148, 163, 184, .72);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
}

.ph-side-group-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plus-app .ph-shell-sidebar .ph-side-link,
.plus-app .ph-shell-slideover-panel .ph-side-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 5px 8px !important;
    border: 0;
    border-radius: 12px;
    color: var(--ph-shell-muted) !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    background: transparent !important;
    transition: color .16s ease, background .16s ease;
}

.plus-app .ph-shell-sidebar .ph-side-link:hover,
.plus-app .ph-shell-slideover-panel .ph-side-link:hover {
    color: var(--ph-shell-text) !important;
    background: rgba(148, 163, 184, .08) !important;
}

.plus-app .ph-shell-sidebar .ph-side-link.is-active,
.plus-app .ph-shell-slideover-panel .ph-side-link.is-active {
    color: var(--ph-shell-text) !important;
    font-weight: 700;
    background: var(--ph-shell-primary-soft) !important;
}

.ph-side-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    color: var(--ph-shell-muted);
    background: transparent;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.ph-side-link:hover .ph-side-icon {
    color: var(--ph-shell-text);
    background: rgba(148, 163, 184, .1);
}

.ph-side-link.is-active .ph-side-icon {
    color: #fff;
    background: var(--ph-shell-primary);
    box-shadow: 0 1px 2px rgba(2, 8, 23, .1);
}

.ph-side-icon svg {
    width: 16px;
    height: 16px;
}

.ph-side-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ph-shell-primary);
    box-shadow: 0 0 0 2px var(--ph-shell-card);
    animation: ph-side-dot-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ph-side-dot-ping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.75); }
}


.ph-side-footer {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-top: 1px solid var(--ph-shell-border);
}

.plus-app .ph-shell-sidebar .ph-side-cta,
.plus-app .ph-shell-slideover-panel .ph-side-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin: 0 0 4px;
    padding: 0 !important;
    border: 0;
    border-radius: 12px;
    color: #020817 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    background: var(--ph-shell-primary) !important;
    box-shadow: 0 1px 3px rgba(2, 8, 23, .1), 0 1px 2px rgba(2, 8, 23, .1);
    transition: opacity .16s ease;
}

.plus-app .ph-shell-sidebar .ph-side-cta:hover,
.plus-app .ph-shell-slideover-panel .ph-side-cta:hover {
    opacity: .9;
    color: #020817 !important;
}

.plus-app .ph-shell-sidebar .ph-side-cta svg,
.plus-app .ph-shell-slideover-panel .ph-side-cta svg {
    width: 17px !important;
    height: 17px !important;
}

.plus-app .ph-shell-sidebar .ph-side-minor,
.plus-app .ph-shell-slideover-panel .ph-side-minor {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 6px 12px !important;
    border-radius: 10px;
    color: var(--ph-shell-muted) !important;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color .16s ease, background .16s ease;
}

.plus-app .ph-shell-sidebar .ph-side-minor:hover,
.plus-app .ph-shell-slideover-panel .ph-side-minor:hover {
    color: var(--ph-shell-text) !important;
    background: rgba(148, 163, 184, .08) !important;
}

.ph-side-profile-wrap {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-top: 1px solid var(--ph-shell-border);
}

.ph-side-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--ph-shell-border);
    border-radius: 12px;
    background: rgba(148, 163, 184, .05);
}

.ph-side-profile-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--ph-shell-card);
}

.ph-side-profile-info {
    min-width: 0;
    flex: 1 1 auto;
}

.ph-side-profile-name {
    margin: 0 0 3px;
    overflow: hidden;
    color: var(--ph-shell-text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ph-side-email-toggle {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    color: var(--ph-shell-muted);
    background: transparent;
    cursor: pointer;
    text-align: right;
}

.ph-side-email-toggle span {
    display: block;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    filter: blur(4px);
    transition: filter .25s ease;
}

.ph-side-email-toggle:hover span,
.ph-side-email-toggle:focus-visible span {
    filter: none;
}

.ph-side-logout > div > button,
.ph-shell-header .ph-top-account .dropdown-menu button,
.ph-shell-header .ph-top-account [x-ref="dropdown"] button {
    padding: 0 !important;
}

.ph-side-logout button {
    display: grid !important;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px;
    color: var(--ph-shell-muted) !important;
    font-size: 0 !important;
    background: transparent !important;
    transition: color .16s ease, background .16s ease;
}

.ph-side-logout button:hover {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, .1) !important;
}

.ph-side-logout button::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ph-side-mobile-extras {
    padding: 10px 16px 4px;
    border-top: 1px solid var(--ph-shell-border);
}

/* Top bar controls */
.plus-app .plus-header.ph-shell-header .ph-top-cart > div > div > a,
.plus-app .plus-header.ph-shell-header .ph-top-cart > div > a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 12px;
    color: var(--ph-shell-muted) !important;
}

.plus-app .plus-header.ph-shell-header .ph-top-cart > div > div > a:hover {
    color: var(--ph-shell-text) !important;
    background: rgba(148, 163, 184, .1) !important;
}

.ph-shell-header .ph-top-locale button {
    padding: 6px 8px !important;
    border-radius: 10px;
    color: var(--ph-shell-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.ph-shell-header .ph-top-locale button:hover {
    color: var(--ph-shell-text) !important;
    background: rgba(148, 163, 184, .08) !important;
}

.ph-shell-header .ph-top-notif > div > div > button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 12px;
    color: var(--ph-shell-muted) !important;
}

.ph-shell-header .ph-top-notif > div > div > button:hover {
    color: var(--ph-shell-text) !important;
    background: rgba(148, 163, 184, .1) !important;
}

.ph-shell-header .ph-top-notif button > div.relative {
    width: 40px;
    height: 40px;
}

.ph-shell-header .ph-top-notif .bg-red-600 {
    top: 2px !important;
    inset-inline-end: 2px !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    background: #ef4444 !important;
}

.ph-shell-header .ph-top-account > div > button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 4px 6px 4px 8px !important;
    border-radius: 999px;
    color: var(--ph-shell-text) !important;
}

.ph-shell-header .ph-top-account > div > button:hover {
    background: rgba(148, 163, 184, .08) !important;
}

.ph-top-avatar-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ph-top-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--ph-shell-border);
}

.ph-top-avatar-name {
    display: block;
    max-width: 140px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ph-top-avatar-caret {
    color: var(--ph-shell-muted);
}

.ph-shell-slideover {
    position: fixed;
    inset-inline: 0;
    top: 64px;
    width: 100%;
    z-index: 99;
}

.ph-shell-slideover-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ph-shell-border);
    background: var(--ph-shell-card);
    box-shadow: 0 24px 60px rgba(2, 6, 23, .6);
    overflow-y: auto;
}

.ph-shell-mobile-profile-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
    color: var(--ph-shell-text);
    background: transparent;
    cursor: pointer;
}

.ph-shell-mobile-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--ph-shell-border);
}

.ph-shell-mobile-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.ph-shell-mobile-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.ph-shell-mobile-email {
    color: var(--ph-shell-muted);
    font-size: 12px;
    line-height: 1.2;
    word-break: break-all;
}

/* Collapsed sidebar */
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar {
    width: 76px !important;
    min-width: 76px !important;
}

html.ph-sidebar-collapsed .plus-app .ph-shell-content {
    margin-inline-start: 76px !important;
}

html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-label,
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-group-title,
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-brand-name,
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-profile-info {
    display: none !important;
}

html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-brand,
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-profile {
    justify-content: center;
}

html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-nav {
    padding-inline: 10px;
}

html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-link,
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-cta,
html.ph-sidebar-collapsed .plus-app .ph-shell-sidebar .ph-side-minor {
    justify-content: center;
    padding-inline: 0 !important;
}

@media (max-width: 767px) {
    .plus-app .ph-shell-main {
        margin-top: 65px !important;
    }

    .ph-top-avatar-name {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plus-app .ph-shell-sidebar,
    .ph-side-icon,
    .ph-side-link,
    .ph-side-cta {
        transition: none !important;
    }
}

/* ---------- Shell: clickable profile menu (notifications + light/dark) ---------- */
.ph-shell-user {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.ph-shell-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 999px;
    color: var(--ph-shell-text);
    background: transparent;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.ph-shell-user-btn:hover,
.ph-shell-user-btn[aria-expanded="true"] {
    background: rgba(148, 163, 184, .12);
}

.ph-shell-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.ph-shell-user-avatar {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0 0 2px var(--ph-shell-border);
    background: var(--ph-shell-card);
}

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

.ph-shell-user-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #34d399;
    border: 2px solid var(--ph-shell-card);
}

.ph-shell-user-caret {
    color: var(--ph-shell-muted);
}

.ph-shell-user-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 80;
    width: 256px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 80px);
    margin-top: 8px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--ph-shell-border);
    background: var(--ph-shell-card);
    color: var(--ph-shell-text);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    direction: rtl;
    padding: 6px;
}

.ph-shell-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.ph-shell-user-head > img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--ph-shell-border);
}

.ph-shell-user-head-info { min-width: 0; flex: 1 1 auto; }
.ph-shell-user-head-name { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.ph-shell-user-head-email {
    margin: 0;
    color: var(--ph-shell-muted);
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
}

.ph-shell-user-separator {
    height: 1px;
    margin: 4px -6px;
    background: var(--ph-shell-border);
}

.ph-shell-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    color: var(--ph-shell-text);
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ph-shell-user-item svg { color: var(--ph-shell-muted); flex: 0 0 16px; }
.ph-shell-user-item:hover { background: rgba(148, 163, 184, .12); }

.ph-shell-user-logout { padding: 0; }
.ph-shell-user-logout > div > button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 8px 8px 30px;
    border: 0;
    border-radius: 6px;
    color: #ef4444 !important;
    background: transparent !important;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
}

.ph-shell-user-logout > div > button::before {
    content: '';
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ph-shell-user-logout > div > button:hover { background: rgba(239, 68, 68, .1) !important; }

@media (max-width: 639px) {
    .ph-shell-user-name { display: none; }
    .ph-shell-user-menu { left: auto; right: 0; }
}

/* Light mode shell palette (same controls, white surface) */
html.light body.plus-app.ph-shell-body {
    --ph-shell-bg: #f8fafc;
    --ph-shell-card: #ffffff;
    --ph-shell-card-soft: #f1f5f9;
    --ph-shell-border: #e2e8f0;
    --ph-shell-text: #0f172a;
    --ph-shell-muted: #64748b;
}

html.light .plus-app .plus-header.ph-shell-header {
    background: rgba(255, 255, 255, .7) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html.light .plus-app .ph-shell-sidebar {
    border-inline-end-color: #e2e8f0 !important;
}

html.light .ph-shell-user-menu {
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

html.light .ph-side-profile-avatar,
html.light .ph-shell-user-avatar,
html.light .ph-shell-user-avatar img { box-shadow: 0 0 0 2px #cbd5e1; }

/* ---------- Hosting ("هوستك") page ---------- */
.ph-hosting-page { color: var(--ph-shell-text); }
.ph-hosting-page .ph-hosting-card {
    border: 1px solid var(--ph-shell-border);
    border-radius: 16px;
    background: var(--ph-shell-card);
}
.ph-hosting-page .ph-hosting-stat { padding: 20px; }
.ph-hosting-page .ph-hosting-label { color: var(--ph-shell-muted); font-size: 12px; }
.ph-hosting-page .ph-hosting-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.ph-hosting-page .ph-hosting-tabs button { border-radius: 10px; padding: 8px 14px; font-size: 13px; }
.ph-hosting-page .ph-hosting-tabs button.is-active { background: var(--ph-shell-text); color: var(--ph-shell-card); }
.ph-hosting-page .ph-hosting-empty { text-align: center; padding: 56px 20px; }
.ph-hosting-page .ph-hosting-empty-icon {
    display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 9999px; color: var(--ph-shell-text); background: var(--ph-shell-border);
}
.ph-hosting-page .ph-hosting-cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.ph-hosting-page .ph-hosting-title { color: var(--ph-shell-text); }
.ph-hosting-page .ph-hosting-subtitle { color: var(--ph-shell-muted); }

.ph-hosting-search input {
    border-color: var(--ph-shell-border) !important;
    color: var(--ph-shell-text) !important;
    background: var(--ph-shell-card) !important;
}
.ph-hosting-search input::placeholder { color: var(--ph-shell-muted); opacity: .8; }

.ph-hosting-page .ph-hosting-tag-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 8px;
    color: var(--ph-shell-muted); font-size: 13px; text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}
.ph-hosting-page .ph-hosting-tag-btn:hover { color: var(--ph-shell-text); background: rgba(148, 163, 184, .12); }

/* Shell pages start directly under the top bar, with nothing extra above them. */
body.plus-app.ph-shell-body .ph-shell-main > .container.mt-14 { margin-top: 0 !important; }

/* ---------- v35: reference-matched header controls ---------- */
/* The old site-wide footer repeats "لوحة المعلومات" under the shell; hide it there. */
body.plus-app.ph-shell-body .plus-footer { display: none !important; }

/* Swap the legacy filled Remix bell for the reference Lucide bell via a CSS mask.
   components/notifications.blade.php is intentionally left byte-identical. */
.ph-shell-notif button > div.relative > svg {
    width: 20px !important;
    height: 20px !important;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.268 21a2 2 0 0 0 3.464 0'/%3E%3Cpath d='M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.268 21a2 2 0 0 0 3.464 0'/%3E%3Cpath d='M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph-shell-notif button > div.relative > svg path { display: none; }

/* Gift, bell and profile follow the reference sizing: 40x40 / 40x40 / 44px pill. */
.ph-shell-promo { color: var(--ph-shell-muted) !important; }
.ph-shell-promo:hover { color: var(--ph-shell-text) !important; }
.ph-shell-top-sep { background: var(--ph-shell-border) !important; }

/* ---------- v36: sidebar sits at the very top like the reference ---------- */
/* The legacy `#main-aside` rule has ID specificity, so match it to override. */
@media (min-width: 768px) {
    .plus-app #main-aside.ph-shell-sidebar {
        top: 0 !important;
        height: 100vh !important;
        border-color: var(--ph-shell-border) !important;
        /* Divider must face the content (inline-end in RTL), not the screen edge. */
        border-inline-start: 0 !important;
        border-inline-end: 1px solid var(--ph-shell-border) !important;
        background: var(--ph-shell-card) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    /* Header and content start after the sidebar, so the brand is not pushed down. */
    .plus-app.ph-shell-body .plus-header.ph-shell-header {
        inset-inline-start: 244px !important;
        inset-inline-end: 0 !important;
        width: auto !important;
    }

    .plus-app.ph-shell-body .ph-shell-content {
        margin-inline-start: 244px !important;
    }
}

/* Reveal the account email on click, same as the reference dashboard. */
.ph-side-email-toggle.is-revealed span { filter: none !important; }

/* Keep every header control reliably clickable above the page content. */
.plus-app.ph-shell-body .plus-header.ph-shell-header button,
.plus-app.ph-shell-body .plus-header.ph-shell-header a {
    pointer-events: auto !important;
}
.plus-app.ph-shell-body .plus-header.ph-shell-header [x-ref="dropdown"] {
    z-index: 60 !important;
}

/* ---------- v38: exact reference header controls + promo dialog ---------- */
.plus-app.ph-shell-body .plus-header.ph-shell-header .plus-actions {
    gap: 4px !important;
}

.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user,
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user * {
    pointer-events: auto !important;
}

.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user {
    z-index: 90 !important;
}

/* Reference: name max-w-[140px], 44px rounded-full pill, 32px avatar ring. */
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-name {
    max-width: 140px !important;
    font-size: 14px !important;
}

/* Reference menu: 256px, 8px radius, #020817 surface, #1e293b border. */
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-menu {
    left: 0 !important;
    right: auto !important;
    width: 256px !important;
    margin-top: 4px !important;
    padding: 6px !important;
    border-radius: 8px !important;
}

html:not(.light) .plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-menu {
    background: #020817 !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-menu .ph-shell-user-item,
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-menu .ph-shell-user-logout > div > button {
    min-height: 40px;
    border-radius: 8px;
    font-size: 14px;
}

.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-promo {
    display: grid !important;
    place-items: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

.ph-promo-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ph-promo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
}

.ph-promo-dialog {
    position: relative;
    width: min(100%, 420px);
    padding: 24px;
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: #020817;
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

html.light .ph-promo-dialog {
    border-color: #e2e8f0;
    background: #fff;
    color: #0f172a;
}

.ph-promo-dialog h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.ph-promo-dialog p { margin: 0 0 20px; font-size: 13px; line-height: 1.7; color: #94a3b8; }
.ph-promo-dialog label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }

.ph-promo-dialog input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 14px;
}

html.light .ph-promo-dialog input {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.ph-promo-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.ph-promo-cancel,
.ph-promo-activate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ph-promo-cancel { border: 1px solid #1e293b; background: transparent; color: #94a3b8; }
.ph-promo-activate { background: #2563eb; color: #fff; }

.ph-promo-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- v41: pixel-matched reference shell header + updates ---------- */
/* Reference inner header: mx-auto max-w-[1280px] px-3 sm:px-5. */
.plus-app.ph-shell-body .plus-header.ph-shell-header > div > div {
    max-width: 1280px !important;
    margin-inline: auto !important;
    padding-inline: 20px !important;
}

/* The three-line mobile toggle must never appear on desktop shell pages. */
@media (min-width: 768px) {
    .plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-icon-btn { display: none !important; }
}

/* Reference bell has no red counter bubble. notifications.blade.php stays untouched. */
.ph-shell-notif .bg-red-600 { display: none !important; }

/* Reference separator: one 24px hairline between the bell and the profile. */
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-top-sep {
    display: block !important;
    width: 1px !important;
    height: 24px !important;
    margin-inline: 4px !important;
    background: #1e293b !important;
}

/* Active story tab uses the composited reference surface (muted/60 over #020817). */
.ph-db-update-tab.is-active { background: #131c2c !important; }
.ph-db-update-tab:not(.is-active):hover { background: #0d1526 !important; }

/* Hosting page: exact reference metrics (8px radii, #3b82f6 primary, 16px icons). */
.ph-hosting-page .ph-hosting-card { border-radius: 8px !important; }
.ph-hosting-page .ph-hosting-cta {
    height: 40px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    background: #3b82f6 !important;
    color: #020817 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    gap: 8px !important;
}
.ph-hosting-page .ph-hosting-cta:hover { background: #2563eb !important; color: #020817 !important; }
.ph-hosting-page .ph-hosting-cta svg { margin-right: 8px; }
.ph-hosting-page .ph-hosting-tag-btn {
    border-radius: 8px !important;
    font-size: 14px !important;
    gap: 8px !important;
}
.ph-hosting-page .ph-hosting-tag-btn svg { margin-left: 6px; }
.ph-hosting-page .ph-hosting-search input { border-radius: 8px !important; font-size: 14px !important; }
.ph-hosting-page .ph-hosting-empty { padding: 48px 20px !important; }
.ph-hosting-page .ph-hosting-empty-icon { border-radius: 9999px !important; background: var(--ph-shell-border) !important; color: var(--ph-shell-text) !important; }

/* ---------- v43: reference typography, solid shell, profile menu, settings ---------- */
:root {
    --plus-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
body.plus-app,
.plus-app h1, .plus-app h2, .plus-app h3, .plus-app h4, .plus-app h5, .plus-app h6 {
    font-family: var(--plus-font) !important;
}
body.plus-app.ph-shell-body {
    background: #020817 !important;
    background-attachment: fixed !important;
}
body.plus-app.ph-shell-body::before,
body.plus-app.ph-shell-body .plus-bg {
    display: none !important;
}
html, body.plus-app {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .08) transparent;
}
html::-webkit-scrollbar,
body.plus-app::-webkit-scrollbar,
.plus-app .ph-shell-content::-webkit-scrollbar,
.plus-app main::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-thumb,
body.plus-app::-webkit-scrollbar-thumb,
.plus-app .ph-shell-content::-webkit-scrollbar-thumb,
.plus-app main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .08);
    border-radius: 99px;
}
html::-webkit-scrollbar-track,
body.plus-app::-webkit-scrollbar-track,
.plus-app .ph-shell-content::-webkit-scrollbar-track,
.plus-app main::-webkit-scrollbar-track {
    background: transparent;
}

/* Header: reference x=20, 161px profile pill. */
.plus-app.ph-shell-body .plus-header.ph-shell-header {
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-name {
    max-width: 85px !important;
}
.plus-app.ph-shell-body .plus-header.ph-shell-header .ph-shell-user-btn {
    height: 44px !important;
}
/* Profile menu: CSS fallback keeps it usable even if Alpine boots late. */
.plus-app .ph-shell-user-menu { display: none !important; }
.plus-app .ph-shell-user.is-open .ph-shell-user-menu,
.plus-app .ph-shell-user:focus-within .ph-shell-user-menu { display: block !important; }

/* Sidebar: reference 13.5px links, 12px radius, quiet group titles. */
.plus-app .ph-shell-sidebar .ph-side-link {
    gap: 12px !important;
    border-radius: 12px !important;
    font-weight: 400 !important;
}
.plus-app .ph-shell-sidebar .ph-side-link.is-active { font-weight: 600 !important; }
.plus-app .ph-shell-sidebar .ph-side-group-title {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: rgba(148, 163, 184, .7) !important;
}
.plus-app .ph-shell-sidebar .ph-side-cta { border-radius: 12px !important; }

/* Settings layout: matches the reference settings page. */
.ph-settings-page { margin-top: 0 !important; padding-top: 32px !important; padding-bottom: 48px !important; }
.ph-settings-layout { display: flex; align-items: flex-start; gap: 24px; }
.ph-settings-nav {
    position: sticky;
    top: 80px;
    flex: 0 0 256px;
    width: 256px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #020817;
    padding: 16px;
}
.ph-settings-nav-list { display: flex; flex-direction: column; gap: 8px; }
.ph-settings-nav-sep { height: 1px; margin: 4px 0; background: #1e293b; }
.ph-settings-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}
.ph-settings-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ph-settings-icon svg { color: inherit; width: 16px; height: 16px; }
.ph-settings-tab:hover { background: rgba(148, 163, 184, .08); color: #f8fafc; }
.ph-settings-tab.is-active { background: rgba(59, 130, 246, .1); color: #f8fafc; font-weight: 600; }
.ph-settings-tab.is-active .ph-settings-icon {
    color: #fff;
    background: #3b82f6;
    box-shadow: 0 1px 2px rgba(2, 8, 23, .1);
}
.ph-settings-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ph-settings-card {
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #020817;
    box-shadow: 0 1px 3px rgba(2, 8, 23, .1), 0 1px 2px rgba(2, 8, 23, .1);
}
.ph-settings-card-head { padding: 24px 24px 0; }
.ph-settings-card-title { color: #f8fafc; font-size: 24px; font-weight: 600; line-height: 1.2; }
.ph-settings-card-desc { margin-top: 8px; color: #64748b; font-size: 14px; }
.ph-settings-card-body { padding: 24px; }
.ph-settings-card-body label { color: #cbd5e1; font-size: 14px; }
.ph-settings-card-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ph-settings-card-body select,
.ph-settings-card-body textarea {
    height: 40px;
    border: 1px solid #1e293b !important;
    border-radius: 6px !important;
    background: #020817 !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    padding: 0 12px !important;
}
.ph-settings-card-body input::placeholder { color: #64748b !important; }
.ph-settings-save-row { display: flex; justify-content: flex-end; margin-top: 24px; }
.ph-settings-card-body button.ph-settings-save {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px;
    margin: 0 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    background: #3b82f6 !important;
    background-image: none !important;
    color: #020817 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.ph-settings-card-body button.ph-settings-save:hover { background: #2563eb !important; }
.ph-settings-card-body button.ph-settings-save .ph-save-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    flex: 0 0 16px;
}
.ph-settings-fields { display: flex; flex-direction: column; gap: 16px; }
.ph-settings-properties { margin-top: 16px; }
.ph-settings-errors,
.ph-settings-notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, .35);
    border-radius: 6px;
    background: rgba(127, 29, 29, .18);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.7;
}
.ph-settings-errors strong { display: block; margin-bottom: 6px; color: #fee2e2; }
.ph-settings-errors ul { margin: 0; padding-inline-start: 18px; }
.ph-settings-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.ph-settings-notice a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline !important;
    white-space: nowrap;
}
.ph-settings-panel {
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #020817;
    padding: 20px;
}
.ph-settings-stack { display: flex; flex-direction: column; gap: 16px; }
.ph-settings-extra {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}
.ph-settings-extra-title { color: #f8fafc; font-size: 16px; font-weight: 600; }
.ph-settings-extra-desc { margin: 4px 0 12px; color: #64748b; font-size: 14px; }
.ph-settings-oauth-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-settings-oauth-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #1e293b;
    border-radius: 6px;
    color: #f8fafc;
    font-size: 14px;
    text-decoration: none !important;
}
.ph-settings-oauth-link:hover { background: #1e293b; }
@media (max-width: 1023px) {
    .ph-settings-layout { flex-direction: column; }
    .ph-settings-nav { position: static; width: 100%; flex-basis: auto; }
}

/* v50 - reference button/icon polish. */
.plus-app main button.bg-primary,
.plus-app main a.bg-primary {
    background: #3b82f6 !important;
    background-image: none !important;
    color: #020817 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}
.plus-app main button.bg-primary:hover,
.plus-app main a.bg-primary:hover {
    background: #2563eb !important;
    color: #020817 !important;
}
.plus-app .ph-db-btn {
    border-radius: 8px !important;
    box-shadow: none !important;
}
.plus-app .ph-db-btn-primary {
    background: #3b82f6 !important;
    color: #020817 !important;
    box-shadow: none !important;
}
.plus-app .ph-db-btn-ghost {
    background: #020817 !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

/* ---------- v51: reference checkout page + updates card polish ---------- */
.ph-db-update-tab {
    border-radius: 12px !important;
    border-right-color: #1e293b !important;
}
.ph-db-update-tab.is-active {
    border-right-color: #1e293b !important;
    background: #131c2c !important;
}
.ph-db-update-tab:not(.is-active):hover {
    background: #0d1526 !important;
}
.ph-db-pager-btn {
    border-radius: 8px !important;
}

/* Reference checkout-style recharge page. */
.ph-credit-page {
    --ph-credit-bg: #020817;
    --ph-credit-card: #0f172a;
    --ph-credit-line: #1e293b;
    --ph-credit-input: #1e293b;
    --ph-credit-input-line: #334155;
    --ph-credit-text: #f8fafc;
    --ph-credit-muted: #94a3b8;
    --ph-credit-primary: #3b82f6;
    --ph-credit-emerald: #059669;
    --ph-credit-amber: #ca8a04;
    min-height: 100vh;
    padding: 32px 20px 64px;
    background: var(--ph-credit-bg);
    color: var(--ph-credit-text);
}
html.light .ph-credit-page {
    --ph-credit-bg: #f8fafc;
    --ph-credit-card: #ffffff;
    --ph-credit-line: #e2e8f0;
    --ph-credit-input: #f1f5f9;
    --ph-credit-input-line: #cbd5e1;
    --ph-credit-text: #020617;
    --ph-credit-muted: #64748b;
}
.ph-credit-shell {
    max-width: 1280px;
    margin: 0 auto;
}
.ph-credit-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.ph-credit-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.ph-credit-step.is-active {
    color: #f8fafc;
}
.ph-credit-step-dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9999px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}
.ph-credit-step.is-active .ph-credit-step-dot {
    background: #3b82f6;
    color: #ffffff;
}
.ph-credit-step-line {
    display: block;
    width: 32px;
    height: 1px;
    flex: 0 0 32px;
    background: #334155;
}
.ph-credit-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, .35);
    border-radius: 12px;
    background: rgba(127, 29, 29, .18);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.7;
}
.ph-credit-notice a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline !important;
    white-space: nowrap;
}
.ph-credit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.ph-credit-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.ph-credit-card {
    padding: 20px;
    border: 1px solid var(--ph-credit-line);
    border-radius: 16px;
    background: var(--ph-credit-card);
}
.ph-credit-card-title {
    margin: 0 0 16px;
    color: var(--ph-credit-text);
    font-size: 14px;
    font-weight: 700;
}
.ph-credit-amount-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--ph-credit-line) !important;
    border-radius: 12px !important;
    background: var(--ph-credit-input) !important;
}
.ph-credit-amount-symbol {
    color: #3b82f6;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.ph-credit-amount-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
.ph-credit-amount-input::-webkit-inner-spin-button,
.ph-credit-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.ph-credit-amount-input::placeholder {
    color: #475569;
}
.ph-credit-currency-select {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 18px 0 0;
    border: 0 !important;
    border-inline-start: 1px solid var(--ph-credit-line) !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    color: #93c5fd !important;
    font-size: 12px !important;
    font-weight: 600;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
}
.ph-credit-error {
    margin: 10px 0 0;
    color: #fca5a5;
    font-size: 12px;
}
.ph-credit-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--ph-credit-line);
    border-radius: 12px;
    color: var(--ph-credit-muted);
    font-size: 13px;
    text-align: center;
}
.ph-credit-gateways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ph-credit-gateway {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 113px;
    padding: 14px;
    border: 2px solid #1e293b;
    border-radius: 12px;
    background: transparent;
    color: var(--ph-credit-text);
    cursor: pointer;
    text-align: center;
    transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.ph-credit-gateway:hover {
    border-color: #1e293b;
    background: #0d1524;
}
.ph-credit-gateway input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.ph-credit-gateway:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.ph-credit-gateway.is-selected,
.ph-credit-gateway:has(input:checked) {
    border-color: #1e293b;
    background: #08122e;
}
.ph-credit-gateway-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #94a3b8;
    transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
.ph-credit-gateway.is-selected .ph-credit-gateway-icon,
.ph-credit-gateway:has(input:checked) .ph-credit-gateway-icon {
    color: #3b82f6;
}
.ph-credit-gateway-icon svg {
    width: 20px;
    height: 20px;
}
.ph-credit-gateway-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.ph-credit-gateway.is-selected .ph-credit-gateway-name,
.ph-credit-gateway:has(input:checked) .ph-credit-gateway-name {
    color: #f8fafc;
}
.ph-credit-gateway-meta {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.35;
}
.ph-credit-summary {
    overflow: hidden;
    border: 1px solid var(--ph-credit-line);
    border-radius: 16px;
    background: var(--ph-credit-card);
}
.ph-credit-summary-accent {
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #facc15, #ca8a04);
}
.ph-credit-summary-body {
    padding: 20px;
}
.ph-credit-summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ph-credit-summary-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #facc15, #ca8a04);
    color: #ffffff;
}
.ph-credit-summary-icon svg {
    width: 20px;
    height: 20px;
}
.ph-credit-summary-head strong {
    display: block;
    color: var(--ph-credit-text);
    font-size: 14px;
    font-weight: 700;
}
.ph-credit-summary-head small {
    display: block;
    margin-top: 2px;
    color: var(--ph-credit-muted);
    font-size: 12px;
}
.ph-credit-balance-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--ph-credit-input-line);
    border-radius: 12px;
    background: var(--ph-credit-input);
}
.ph-credit-balance-box p {
    margin: 0 0 3px;
    color: var(--ph-credit-muted);
    font-size: 12px;
}
.ph-credit-balance-box b {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.ph-credit-current {
    color: var(--ph-credit-primary);
}
.ph-credit-after {
    padding-top: 12px;
    border-top: 1px solid var(--ph-credit-input-line);
}
.ph-credit-after b {
    color: var(--ph-credit-emerald);
    font-size: 18px;
}
.ph-credit-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
}
.ph-credit-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ph-credit-muted);
}
.ph-credit-total {
    padding-top: 12px;
    border-top: 1px solid var(--ph-credit-line);
    color: var(--ph-credit-text);
    font-size: 16px;
    font-weight: 700;
}
.ph-credit-total span:last-child {
    color: var(--ph-credit-amber);
}
.ph-credit-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin-top: 16px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: var(--ph-credit-primary) !important;
    background-image: none !important;
    color: #020817 !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ph-credit-pay:hover {
    background: #2563eb !important;
}
.ph-credit-pay:disabled {
    opacity: .55;
    cursor: not-allowed;
}
@media (min-width: 640px) {
    .ph-credit-gateways {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .ph-credit-gateways {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1023px) {
    .ph-credit-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .ph-credit-page {
        padding: 24px 12px 48px;
    }
    .ph-credit-gateways {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ph-credit-step-label {
        display: none;
    }
}

