@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
    --bg: #071022;
    --surface: #0e1a30;
    --surface-soft: #142541;
    --text: #e9f0ff;
    --muted: #a9b8d6;
    --accent: #36c6a8;
    --accent-strong: #2ca98f;
    --line: #213454;
    --warn: #f59e0b;
    --danger: #f87171;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: radial-gradient(circle at 10% -10%, #1b3158 0, var(--bg) 55%);
    color: var(--text);
}

body.is-sidebar-open {
    overflow: hidden;
}

input,
select,
textarea {
    width: 100%;
    background: linear-gradient(180deg, rgba(20, 37, 65, 0.92), rgba(18, 34, 58, 0.92));
    color: var(--text);
    border-color: rgba(130, 157, 199, 0.24);
    border-radius: 12px;
    border-width: 1px;
    min-height: 44px;
    padding: 11px 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .12s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(54, 198, 168, 0.95);
    box-shadow: 0 0 0 4px rgba(54, 198, 168, 0.18), 0 10px 20px rgba(4, 12, 27, 0.22);
    background: linear-gradient(180deg, rgba(25, 50, 86, 0.95), rgba(24, 45, 76, 0.95));
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

/* Map existing utility classes to Viyapara palette */
.bg-slate-100 {
    background: transparent !important;
}

.bg-white {
    background-color: var(--surface) !important;
}

.bg-slate-900 {
    background-color: var(--bg) !important;
}

.bg-emerald-600 {
    background-color: var(--accent) !important;
    color: #03231c !important;
}

.bg-emerald-600:hover,
.hover\:bg-emerald-700:hover {
    background-color: var(--accent-strong) !important;
}

.bg-amber-600 {
    background-color: var(--warn) !important;
    color: #1f1300 !important;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--line);
}

.text-slate-900 {
    color: var(--text) !important;
}

.text-slate-700,
.text-slate-600,
.text-slate-500 {
    color: var(--muted) !important;
}

.hover\:text-emerald-300:hover {
    color: var(--accent) !important;
}

.border-slate-300,
.border-slate-200 {
    border-color: var(--line) !important;
}

.border-b {
    border-color: var(--line) !important;
}

.text-emerald-700 {
    color: var(--accent) !important;
}

.text-rose-700 {
    color: var(--danger) !important;
}

.shadow {
    box-shadow: 0 18px 34px rgba(2, 9, 22, 0.34) !important;
}

header.bg-slate-900 {
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.nav-gradient {
    position: relative;
    background: linear-gradient(120deg, #061226, #0a1b3b, #0b274e, #08192e) !important;
    background-size: 220% 220% !important;
    animation: navGradientFlow 16s ease infinite;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 34px;
    width: auto;
    max-width: 220px;
    filter: brightness(0) invert(1);
    display: block;
}

@keyframes navGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-gradient {
        animation: none;
    }
}

[data-form-status] {
    min-height: 1.25rem;
}

.login-body {
    background: #f3f5f5;
    color: #10233f;
}

/* Login split-card */
.auth-login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 2rem;
    overflow-y: auto;
}

.auth-login-shell {
    width: 100%;
    padding-inline: 3vh;
}

.auth-login-card {
    width: min(980px, 100%);
    margin-inline: auto;
    height: auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: 42fr 58fr;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(16, 34, 62, 0.15);
    box-shadow: 0 28px 58px rgba(5, 18, 33, 0.18);
    background: #ffffff;
}

.auth-login-card--register {
    height: auto;
    min-height: 560px;
}

.auth-login-brand {
    position: relative;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(180deg, #0d6f72 0%, #14858b 48%, #1aa49a 100%);
    color: #ecfffb;
}

.auth-brand-top {
    position: relative;
    z-index: 2;
}

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

.auth-brand-logo {
    width: clamp(150px, 15vw, 210px);
    height: auto;
    filter: brightness(0) invert(1);
}

.auth-brand-body {
    position: relative;
    z-index: 2;
}

.auth-brand-title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.auth-brand-copy {
    margin: 0;
    max-width: 32ch;
    color: rgba(240, 255, 252, 0.9);
    line-height: 1.52;
    font-size: 0.95rem;
}

.auth-brand-pill {
    margin-top: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 0.62rem 1rem;
    background: rgba(9, 53, 61, 0.18);
    color: #f8fffe;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    width: fit-content;
}

.auth-accent-shape {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.auth-accent-shape-1 {
    width: 220px;
    height: 220px;
    right: -85px;
    top: -70px;
}

.auth-accent-shape-2 {
    width: 170px;
    height: 170px;
    right: -60px;
    bottom: 95px;
}

.auth-accent-shape-3 {
    width: 140px;
    height: 140px;
    left: -40px;
    bottom: -42px;
}

.auth-login-form {
    padding: 2.15rem 2.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #112240;
    background: #ffffff;
}

.auth-login-card--register .auth-login-form {
    justify-content: flex-start;
}

.auth-form-title {
    margin: 0 0 0.3rem;
    color: #10233f;
    font-size: 1.95rem;
    line-height: 1.2;
    font-weight: 700;
}

.auth-form-helper {
    margin: 0 0 1.1rem;
    color: #556987;
    font-size: 0.93rem;
}

.auth-verified {
    margin: 0 0 0.95rem;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.68rem 0.76rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.auth-verified--success {
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.auth-verified--error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.auth-verified--warning {
    border-color: #fcd34d;
    color: #78350f;
    background: #fffbeb;
}

.auth-login-form-grid {
    display: grid;
    gap: 0.7rem;
}

.auth-login-form-grid--register {
    gap: 0.58rem;
}

.auth-form-label {
    margin-top: 0.2rem;
    color: #304563;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap svg {
    position: absolute;
    left: 0.84rem;
    top: 50%;
    width: 1.05rem;
    height: 1.05rem;
    transform: translateY(-50%);
    stroke: #4f688b;
    fill: none;
    stroke-width: 1.9;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #c7d3e5;
    min-height: 46px;
    padding: 0.72rem 0.85rem 0.72rem 2.58rem;
    color: #0f223f;
    background: #f9fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-input-wrap input::placeholder {
    color: #8aa0bf;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: #36c6a8;
    box-shadow: 0 0 0 4px rgba(54, 198, 168, 0.16);
    background: #ffffff;
    transform: none;
}

.auth-input-wrap input.auth-field-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.auth-country-autocomplete {
    position: relative;
}

.auth-country-listbox {
    position: absolute;
    top: calc(100% + 0.38rem);
    left: 0;
    right: 0;
    z-index: 30;
    border: 1px solid #c6d5ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(16, 34, 62, 0.18);
    max-height: 228px;
    overflow-y: auto;
    padding: 0.2rem;
}

.auth-country-option {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #133055;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    text-align: left;
    padding: 0.56rem 0.62rem;
    font-size: 0.87rem;
}

.auth-country-option:hover {
    background: #eff6ff;
}

.auth-country-option.is-active {
    background: #e5f5f0;
    color: #0d4f4d;
}

.auth-country-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 198, 168, 0.24);
}

.auth-country-option-code {
    color: #6d83a3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.auth-input-wrap--password input {
    padding-right: 5.1rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.56rem;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #d4deec;
    border-radius: 999px;
    min-height: 32px;
    padding: 0.15rem 0.62rem;
    background: #ffffff;
    color: #23486d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 198, 168, 0.2);
    border-color: #36c6a8;
}

.auth-form-meta {
    margin-top: 0.3rem;
    display: flex;
    justify-content: flex-end;
}

.auth-forgot-link {
    color: #1f5a90;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-submit {
    margin-top: 0.58rem;
    border: 1px solid #14395e;
    border-radius: 999px;
    width: 100%;
    min-height: 47px;
    padding: 0.72rem 1rem;
    background: linear-gradient(135deg, #0f2e52 0%, #1a4b78 100%);
    color: #f3fbff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #0d2a4a 0%, #17446e 100%);
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(54, 198, 168, 0.22);
}

.auth-submit-spinner {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    display: none;
}

.auth-inline-status {
    margin: 0.15rem 0 0;
    min-height: 1.3rem;
    font-size: 0.84rem;
}

.auth-switch-row {
    margin-top: 0.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.84rem;
    color: #5f7593;
}

.auth-switch-link {
    color: #1f5a90;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

.auth-switch-link:focus-visible {
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(54, 198, 168, 0.2);
}

.auth-policy-row {
    margin-top: 0.05rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.auth-consent-section {
    margin-top: 0.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.auth-consent-content {
    flex: 1 1 260px;
    min-width: 220px;
}

.auth-consent-section .auth-policy-row {
    margin-top: 0.32rem;
}

.auth-inline-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1f5a90;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-inline-link:focus-visible {
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(54, 198, 168, 0.2);
}

.auth-consent-check {
    margin-top: 0.15rem;
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #4f6788;
    font-size: 0.82rem;
}

.auth-consent-check input {
    margin-top: 0.1rem;
    width: 1rem;
    min-height: 1rem;
    min-width: 1rem;
    border-radius: 4px;
    border: 1px solid #b4c8e1;
    padding: 0;
    accent-color: #0f5ca9;
    box-shadow: none;
}

.auth-recaptcha {
    margin-top: 0.15rem;
    display: flex;
    justify-content: flex-start;
}

.auth-recaptcha--consent {
    margin-top: 0.04rem;
    flex: 0 0 auto;
}

.auth-recaptcha .g-recaptcha {
    transform-origin: left top;
}

.auth-secondary-button {
    margin-top: 0.18rem;
    width: 100%;
    border: 1px solid #c5d5e8;
    border-radius: 999px;
    min-height: 44px;
    padding: 0.64rem 1rem;
    background: #f4f8ff;
    color: #163f66;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-secondary-button:hover {
    background: #e8f1ff;
}

.auth-secondary-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(54, 198, 168, 0.2);
}

.auth-payhere-strip {
    margin-top: 0.45rem;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    padding: 0.64rem 0.7rem;
    background: linear-gradient(180deg, #f9fcff 0%, #f4f8fe 100%);
    display: grid;
    gap: 0.45rem;
    align-items: start;
    justify-items: start;
}

.auth-payhere-strip p {
    margin: 0;
    color: #5e7694;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-payhere-logos {
    display: grid;
    width: 100%;
}

.payhere-banner {
    width: min(280px, 100%);
    height: auto;
    border-radius: 8px;
    border: 1px solid #d7e3f1;
    background: #ffffff;
    padding: 0.12rem;
    object-fit: contain;
}

.payhere-banner--dark {
    display: none;
}

.auth-reset-retry {
    margin-top: 0.2rem;
    border: 1px solid #f7d9a5;
    border-radius: 12px;
    padding: 0.7rem;
    background: #fff8e9;
    color: #7e5515;
}

.auth-reset-retry p {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
}

.auth-reset-retry .auth-secondary-button {
    margin-top: 0.35rem;
}

.auth-policy-dialog {
    width: min(540px, calc(100vw - 28px));
    border: 0;
    border-radius: 14px;
    padding: 0;
    background: transparent;
}

.auth-policy-dialog::backdrop {
    background: rgba(5, 12, 23, 0.62);
}

.auth-policy-dialog-card {
    border: 1px solid #d2deee;
    border-radius: 14px;
    background: #ffffff;
    color: #132b4a;
    padding: 1rem;
    box-shadow: 0 20px 42px rgba(16, 34, 62, 0.22);
}

.auth-policy-dialog-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.06rem;
    font-weight: 700;
}

.auth-policy-dialog-card p {
    margin: 0 0 0.6rem;
    color: #4b6484;
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-policy-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
}

.auth-login-form-grid.is-loading .auth-submit-spinner {
    display: inline-block;
    animation: authSpin .65s linear infinite;
}

.auth-login-form-grid.is-loading .auth-submit {
    opacity: 0.86;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .auth-login-card {
        min-height: 520px;
    }
}

@media (max-width: 860px) {
    .auth-login-shell {
        padding-inline: 1.5vh;
    }

    .auth-login-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .auth-login-brand {
        min-height: 230px;
        padding: 1.45rem;
    }

    .auth-login-form {
        padding: 1.45rem 1.2rem;
    }

    .auth-brand-pill {
        margin-top: 0.95rem;
    }

    .auth-payhere-strip {
        padding: 0.6rem;
    }
}

@media (max-height: 760px) {
    .auth-login-main {
        align-items: flex-start;
    }

    .auth-login-card {
        height: auto;
        min-height: auto;
    }
}

@media (prefers-color-scheme: dark) {
    .payhere-banner--light {
        display: none;
    }

    .payhere-banner--dark {
        display: block;
    }
}

/* WordPress-style portal shell */
.wp-shell {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #081225 0%, #0b1730 100%);
    color: var(--text);
}

.wp-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.wp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f8fafc;
    font-weight: 700;
}

.wp-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(8, 24, 49, 0.55);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.wp-sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e5edf9;
    display: block;
}

.wp-topbar__search {
    display: flex;
    gap: 8px;
}

.wp-topbar__search input {
    min-width: 220px;
    background: rgba(6, 18, 38, 0.7);
    border-color: rgba(130, 157, 199, 0.28);
}

.wp-topbar__search button,
.wp-logout-btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    min-height: 44px;
    line-height: 1;
}

.wp-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-notify {
    position: relative;
}

.wp-notify__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f8fafc;
    background: #dc2626;
}

.wp-notify__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, 85vw);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    z-index: 50;
}

.wp-notify__menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e6edf7;
    color: #10243f;
}

.wp-notify__mark-all {
    border: 0;
    background: transparent;
    color: #0e5aa6;
    font-weight: 600;
    cursor: pointer;
}

.wp-notify__list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: min(420px, 62vh);
    overflow: auto;
}

.wp-notify__item {
    border-bottom: 1px solid #eef3fb;
}

.wp-notify__link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #10243f;
}

.wp-notify__item.is-unread .wp-notify__link {
    background: #f4f9ff;
}

.wp-notify__title {
    display: block;
    font-weight: 700;
}

.wp-notify__body {
    display: block;
    margin-top: 4px;
    color: #4d6486;
    font-size: 0.84rem;
}

.wp-notify__meta {
    display: block;
    margin-top: 4px;
    color: #6c7f9e;
    font-size: 0.75rem;
}

.wp-notify__empty {
    padding: 12px;
    color: #4d6486;
    font-size: 0.86rem;
}

.wp-notify__footer-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #0e5aa6;
    font-weight: 700;
    border-top: 1px solid #e6edf7;
}

.wp-email-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(420px, calc(100vw - 24px));
    border: 1px solid rgba(149, 179, 220, 0.45);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
    z-index: 45;
}

.wp-email-toast__content {
    padding: 12px;
    color: #10243f;
}

.wp-email-toast__content p {
    margin: 6px 0 0;
    color: #4d6486;
    font-size: 0.86rem;
}

.wp-email-toast__actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-email-toast__status {
    margin: 8px 0 0;
    min-height: 20px;
    font-size: 0.82rem;
}

.wp-user-menu {
    color: #dbeafe;
    text-decoration: none;
    font-size: 0.875rem;
}

.wp-main {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: calc(100vh - 64px);
}

.wp-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(10, 23, 48, 0.8);
    padding: 14px 10px;
    backdrop-filter: blur(4px);
}

.wp-sidebar__mobile-top {
    display: none;
}

.wp-sidebar-backdrop {
    display: none;
}

.wp-sidebar__nav {
    display: grid;
    gap: 2px;
}

.wp-sidebar__nav a {
    display: block;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid transparent;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.wp-sidebar__nav a:hover,
.wp-sidebar__nav a.is-active {
    background: rgba(52, 198, 168, 0.14);
    color: #e6fffb;
}

.wp-sidebar__group-label {
    margin: 10px 8px 2px;
    color: #9db2d6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wp-sidebar__external::after {
    content: " \2197";
    font-size: 0.72rem;
    opacity: 0.8;
}

.wp-content {
    padding: 18px;
}

.wp-page {
    display: grid;
    gap: 14px;
}

.wp-page__title {
    margin: 0;
    font-size: 1.5rem;
    color: #f8fafc;
}

.wp-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wp-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wp-grid {
    display: grid;
    gap: 14px;
}

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

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

.wp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.wp-kpi-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #10203a;
    padding: 12px;
}

.wp-kpi-card h3 {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: #b7c8e6;
    font-weight: 600;
}

.wp-kpi-value {
    margin: 0;
    font-size: 1.2rem;
    color: #f8fafc;
    font-weight: 700;
}

.wp-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(16, 32, 58, 0.96), rgba(13, 28, 51, 0.96));
    box-shadow: 0 18px 32px rgba(1, 8, 20, 0.24);
}

.wp-card__header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
}

.wp-card__title {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
}

.wp-card__subtitle {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #9db2d6;
}

.wp-card__body {
    padding: 14px;
}

.wp-list {
    margin: 0;
    padding-left: 18px;
}

.wp-list li {
    margin: 6px 0;
}

.wp-table-wrap {
    overflow-x: auto;
}

.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wp-table th,
.wp-table td {
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
}

.wp-table th {
    color: #b7c8e6;
    font-weight: 600;
}

.wp-table td {
    color: #e5edf9;
}

.wp-table tbody tr:hover {
    background: rgba(19, 40, 72, 0.42);
}

.wp-pagination {
    margin: 10px 0 0;
    color: #9db2d6;
    font-size: 0.82rem;
}

.wp-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(16, 32, 58, 0.94), rgba(13, 27, 48, 0.94));
    align-items: end;
}

.wp-filters label {
    display: grid;
    gap: 6px;
    font-size: 0.8rem;
    color: #9db2d6;
    letter-spacing: 0.01em;
}

.wp-filters input,
.wp-filters select {
    width: 100%;
}

.wp-filters button,
.wp-btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    background: #16345b;
    color: #f8fafc;
    text-decoration: none;
    font-size: 0.9rem;
    min-height: 44px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.wp-btn:hover,
.wp-filters button:hover,
.wp-topbar__search button:hover,
.wp-logout-btn:hover {
    background: #1b406f;
    box-shadow: 0 8px 18px rgba(3, 11, 24, 0.3);
}

.wp-btn:active,
.wp-filters button:active,
.wp-topbar__search button:active,
.wp-logout-btn:active {
    transform: translateY(1px);
}

.wp-btn--subtle {
    background: rgba(255, 255, 255, 0.08);
}

.wp-btn--subtle:hover {
    background: rgba(255, 255, 255, 0.14);
}

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

.wp-bulk-actions input,
.wp-bulk-actions select {
    max-width: 220px;
    border-radius: 4px;
    border: 1px solid var(--line);
    padding: 8px;
}

.wp-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-form-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    color: #b7c8e6;
}

.wp-plan-picker {
    display: grid;
    gap: 8px;
}

.wp-plan-picker__label {
    color: #b7c8e6;
    font-size: 0.82rem;
    font-weight: 600;
}

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

.wp-plan-card {
    border: 1px solid rgba(130, 157, 199, 0.32);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22, 41, 74, 0.94), rgba(14, 30, 54, 0.94));
    color: #dbeafe;
    text-align: left;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .14s ease;
}

.wp-plan-card:hover {
    border-color: rgba(54, 198, 168, 0.7);
    transform: translateY(-1px);
}

.wp-plan-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 198, 168, 0.24);
    border-color: rgba(54, 198, 168, 0.9);
}

.wp-plan-card.is-selected {
    border-color: rgba(54, 198, 168, 0.95);
    background: linear-gradient(180deg, rgba(18, 67, 78, 0.96), rgba(14, 50, 60, 0.96));
    box-shadow: 0 10px 20px rgba(3, 14, 28, 0.3);
}

.wp-plan-card__name {
    font-size: 0.87rem;
    font-weight: 700;
    color: #f8fcff;
}

.wp-plan-card__price {
    font-size: 0.84rem;
    font-weight: 700;
    color: #9af4de;
}

.wp-plan-card__value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #9af4de;
}

.wp-plan-card__meta {
    font-size: 0.76rem;
    color: #9eb3d6;
    line-height: 1.35;
}

.wp-plan-card--static {
    cursor: default;
}

.wp-plan-card--static:hover {
    transform: none;
}

.wp-plan-card--link {
    min-height: 84px;
}

.wp-plan-native-select {
    display: none !important;
}

.wp-inline-form {
    display: inline-flex;
}

.wp-kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.wp-kv-grid > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.wp-kv-grid > div span {
    color: #9db2d6;
    font-size: 0.76rem;
}

.wp-kv-grid > div strong {
    color: #e5edf9;
    font-size: 0.92rem;
}

.wp-note {
    margin: 12px 0 0;
    color: #d5e3f9;
    font-size: 0.88rem;
}

.wp-span-2 {
    grid-column: span 2;
}

.wp-notice {
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-left-color: #60a5fa;
    border-radius: 6px;
    background: #10203a;
    padding: 10px 12px;
}

.wp-notice--success {
    border-left-color: #34d399;
}

.wp-notice--warning {
    border-left-color: #f59e0b;
}

.wp-notice--error {
    border-left-color: #f87171;
}

.wp-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.wp-badge--success {
    color: #a7f3d0;
    border-color: rgba(52, 211, 153, 0.45);
}

.wp-badge--warning {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.45);
}

.wp-badge--danger {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.45);
}

.wp-badge--query {
    color: #bfdbfe;
    border-color: rgba(125, 211, 252, 0.45);
}

.wp-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 12px 0;
}

.wp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-tab {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    color: #b7c8e6;
    text-decoration: none;
    font-size: 0.84rem;
}

.wp-tab.is-active,
.wp-tab:hover {
    color: #f8fafc;
    background: rgba(52, 198, 168, 0.15);
}

@media (max-width: 1200px) {
    .wp-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .wp-sidebar-toggle {
        display: inline-flex;
    }

    .wp-main {
        grid-template-columns: 1fr;
    }

    .wp-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 16, 0.62);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
        z-index: 38;
    }

    body.is-sidebar-open .wp-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .wp-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        padding: 12px 10px 16px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        background: #0b1a33;
        transform: translateX(-105%);
        transition: transform .24s ease;
        z-index: 39;
        overflow-y: auto;
    }

    body.is-sidebar-open .wp-sidebar {
        transform: translateX(0);
    }

    .wp-sidebar__mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 6px 4px 10px;
        border-bottom: 1px solid var(--line);
        color: #dbeafe;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .wp-sidebar-close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.06);
        color: #f8fafc;
        line-height: 1;
        font-size: 1.2rem;
    }

    .wp-grid--2,
    .wp-grid--3,
    .wp-form-grid {
        grid-template-columns: 1fr;
    }
    .wp-span-2 {
        grid-column: auto;
    }
    .wp-topbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px;
    }

    .wp-topbar__left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wp-topbar__search {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .wp-topbar__search input {
        min-width: 0;
    }

    .wp-topbar__right {
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .wp-content {
        padding: 12px;
    }

    .wp-filters {
        grid-template-columns: 1fr;
    }

    .wp-filters button {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .wp-kpi-grid {
        grid-template-columns: 1fr;
    }

    .wp-table {
        font-size: 0.84rem;
    }

    .wp-table th,
    .wp-table td {
        padding: 9px 10px;
    }
}

/* Hybrid theme overrides for authenticated portal (admin/officer/client) */
.wp-shell--hybrid {
    --wp-shell-bg: #081a33;
    --wp-shell-bg-soft: #0d2242;
    --wp-shell-border: rgba(149, 179, 220, 0.2);
    --wp-shell-text: #e8f0fd;
    --wp-surface: #ffffff;
    --wp-surface-soft: #f6f9ff;
    --wp-surface-muted: #eef4fc;
    --wp-text: #122743;
    --wp-text-soft: #4d6486;
    --wp-brand: #0e5aa6;
    --wp-brand-strong: #0b4884;
    --wp-brand-accent: #17a98c;
    --wp-focus: rgba(23, 169, 140, 0.26);
    background: linear-gradient(180deg, var(--wp-shell-bg) 0%, var(--wp-shell-bg-soft) 100%);
}

.wp-shell--hybrid .wp-topbar {
    grid-template-columns: minmax(220px, 260px) minmax(260px, 1fr) auto;
    gap: 14px;
    padding: 10px 14px;
    border-bottom-color: var(--wp-shell-border);
}

.wp-shell--hybrid .wp-brand {
    color: #f8fbff;
    font-weight: 800;
}

.wp-shell--hybrid .wp-topbar__search {
    align-items: center;
}

.wp-shell--hybrid .wp-topbar__search input {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(7, 23, 46, 0.9);
    color: #dce9ff;
    border-color: rgba(149, 179, 220, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wp-shell--hybrid .wp-topbar__search input::placeholder {
    color: rgba(196, 213, 239, 0.84);
}

.wp-shell--hybrid .wp-topbar__search input:focus {
    border-color: rgba(90, 175, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(72, 153, 255, 0.2);
    background: rgba(7, 23, 46, 0.98);
}

.wp-shell--hybrid .wp-topbar__search button,
.wp-shell--hybrid .wp-logout-btn,
.wp-shell--hybrid .wp-topbar__notify {
    min-height: 42px;
    border-radius: 11px;
    padding: 10px 13px;
    border-color: rgba(149, 179, 220, 0.3);
    background: rgba(11, 35, 68, 0.74);
    color: #e8f0fd;
    font-size: 0.84rem;
    font-weight: 600;
}

.wp-shell--hybrid .wp-topbar__search button:hover,
.wp-shell--hybrid .wp-logout-btn:hover,
.wp-shell--hybrid .wp-topbar__notify:hover {
    background: rgba(14, 48, 91, 0.86);
}

.wp-shell--hybrid .wp-notify__menu {
    border-color: rgba(149, 179, 220, 0.28);
}

.wp-shell--hybrid .wp-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(149, 179, 220, 0.24);
    background: rgba(9, 31, 60, 0.58);
    padding: 6px 10px;
}

.wp-shell--hybrid .wp-user-role {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #def2ff;
    background: rgba(23, 169, 140, 0.22);
}

.wp-shell--hybrid .wp-user-menu {
    color: #eef4ff;
    font-size: 0.8rem;
    line-height: 1;
}

.wp-shell--hybrid .wp-main {
    grid-template-columns: 248px 1fr;
    min-height: calc(100vh - 63px);
}

.wp-shell--hybrid .wp-sidebar {
    padding: 14px 11px;
    border-right-color: var(--wp-shell-border);
    background: linear-gradient(180deg, rgba(10, 29, 58, 0.88), rgba(7, 23, 46, 0.88));
}

.wp-shell--hybrid .wp-sidebar__nav {
    gap: 5px;
}

.wp-shell--hybrid .wp-sidebar__nav a {
    border-radius: 12px;
    padding: 11px 12px;
    color: #c6d8f4;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 600;
}

.wp-shell--hybrid .wp-sidebar__nav a:hover,
.wp-shell--hybrid .wp-sidebar__nav a.is-active {
    color: #f4fbff;
    border-color: rgba(94, 168, 246, 0.4);
    background: linear-gradient(135deg, rgba(14, 90, 166, 0.36), rgba(23, 169, 140, 0.3));
}

.wp-shell--hybrid .wp-sidebar__group-label {
    color: #93b0d6;
}

.wp-shell--hybrid .wp-content {
    background: linear-gradient(180deg, #f4f8ff 0%, #edf3fb 100%);
    color: var(--wp-text);
    padding: clamp(12px, 2.4vw, 24px);
}

.wp-shell--hybrid .wp-page {
    gap: 16px;
}

.wp-shell--hybrid .wp-page__title {
    margin: 0;
    color: #10243f;
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    font-weight: 800;
}

.wp-shell--hybrid .wp-grid {
    gap: 16px;
}

.wp-shell--hybrid .wp-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 12px;
}

.wp-shell--hybrid .wp-kpi-card {
    border: 1px solid #d8e5f6;
    border-radius: 14px;
    padding: 13px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 10px 26px rgba(18, 39, 67, 0.08);
}

.wp-shell--hybrid .wp-kpi-card h3 {
    margin: 0 0 5px;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #5a7292;
    font-weight: 700;
}

.wp-shell--hybrid .wp-kpi-value {
    margin: 0;
    color: #10345f;
    font-size: 1.28rem;
    font-weight: 800;
}

.wp-shell--hybrid .wp-card {
    border: 1px solid #d8e5f6;
    border-radius: 16px;
    background: var(--wp-surface);
    box-shadow: 0 14px 34px rgba(18, 39, 67, 0.09);
    color: var(--wp-text);
}

.wp-shell--hybrid .wp-card__header {
    border-bottom-color: #e3ecf9;
    padding: 13px 15px;
}

.wp-shell--hybrid .wp-card__title {
    color: #0f2c51;
    font-size: 1rem;
    font-weight: 700;
}

.wp-shell--hybrid .wp-card__subtitle {
    color: #607998;
}

.wp-shell--hybrid .wp-card__body {
    padding: 15px;
}

.wp-shell--hybrid .wp-card__actions {
    color: #3e5f86;
    font-size: 0.82rem;
    font-weight: 700;
}

.wp-shell--hybrid .wp-list {
    color: #173556;
}

.wp-shell--hybrid .wp-list li {
    margin: 7px 0;
}

.wp-shell--hybrid .wp-actions-row {
    gap: 10px;
}

.wp-shell--hybrid .wp-filters {
    border: 1px solid #d8e5f6;
    border-radius: 14px;
    background: var(--wp-surface-soft);
    padding: 13px;
    gap: 11px;
}

.wp-shell--hybrid .wp-filters label {
    color: #4f6889;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wp-shell--hybrid input:not([type="checkbox"]):not([type="radio"]),
.wp-shell--hybrid select,
.wp-shell--hybrid textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d9ec;
    border-radius: 12px;
    background: #ffffff;
    color: #10243f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    padding: 10px 12px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .1s ease;
}

.wp-shell--hybrid input:not([type="checkbox"]):not([type="radio"])::placeholder,
.wp-shell--hybrid textarea::placeholder {
    color: #87a0bf;
}

.wp-shell--hybrid input:not([type="checkbox"]):not([type="radio"]):focus,
.wp-shell--hybrid select:focus,
.wp-shell--hybrid textarea:focus {
    outline: none;
    border-color: var(--wp-brand);
    box-shadow: 0 0 0 4px var(--wp-focus);
    background: #ffffff;
    transform: none;
}

.wp-shell--hybrid input[type="checkbox"],
.wp-shell--hybrid input[type="radio"] {
    accent-color: var(--wp-brand);
}

.wp-shell--hybrid textarea {
    min-height: 110px;
}

.wp-shell--hybrid .wp-form-grid {
    gap: 12px;
}

.wp-shell--hybrid .wp-form-grid label {
    font-size: 0.82rem;
    color: #536c8d;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.wp-shell--hybrid .wp-form-grid > button[type="submit"],
.wp-shell--hybrid .wp-form-grid > [data-form-status] {
    grid-column: 1 / -1;
}

.wp-shell--hybrid .wp-btn,
.wp-shell--hybrid .wp-filters button,
.wp-shell--hybrid .wp-bulk-actions button {
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid #c9dbef;
    background: linear-gradient(135deg, var(--wp-brand) 0%, var(--wp-brand-strong) 100%);
    color: #f3f8ff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 7px 16px rgba(14, 90, 166, 0.2);
}

.wp-shell--hybrid .wp-btn:hover,
.wp-shell--hybrid .wp-filters button:hover,
.wp-shell--hybrid .wp-bulk-actions button:hover {
    background: linear-gradient(135deg, #0b4f92 0%, #083f75 100%);
    box-shadow: 0 10px 20px rgba(14, 90, 166, 0.24);
}

.wp-shell--hybrid .wp-btn:active,
.wp-shell--hybrid .wp-filters button:active,
.wp-shell--hybrid .wp-bulk-actions button:active {
    transform: translateY(1px);
}

.wp-shell--hybrid .wp-table-wrap {
    border: 1px solid #d9e6f6;
    border-radius: 12px;
    background: #ffffff;
}

.wp-shell--hybrid .wp-table {
    min-width: 640px;
    font-size: 0.88rem;
    color: #132c4a;
}

.wp-shell--hybrid .wp-table th,
.wp-shell--hybrid .wp-table td {
    border-bottom-color: #e6eef9;
    padding: 10px 12px;
    vertical-align: middle;
}

.wp-shell--hybrid .wp-table th {
    color: #5a7392;
    background: #f6f9ff;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wp-shell--hybrid .wp-table td {
    color: #173656;
}

.wp-shell--hybrid .wp-table tbody tr:hover {
    background: #f3f8ff;
}

.wp-shell--hybrid .wp-table a {
    color: #0e5aa6;
    font-weight: 600;
    text-decoration: none;
}

.wp-shell--hybrid .wp-table a:hover {
    color: #0a477f;
    text-decoration: underline;
}

.wp-shell--hybrid .wp-pagination {
    margin: 12px 0 0;
    color: #5e7696;
}

.wp-shell--hybrid .wp-bulk-actions {
    gap: 9px;
}

.wp-shell--hybrid .wp-bulk-actions select,
.wp-shell--hybrid .wp-bulk-actions input {
    max-width: none;
    min-width: 170px;
}

.wp-shell--hybrid .wp-notice {
    border: 1px solid #d4e2f4;
    border-left-width: 4px;
    border-radius: 12px;
    background: #f7faff;
    color: #15365a;
}

.wp-shell--hybrid .wp-notice p {
    margin: 0;
}

.wp-shell--hybrid .wp-notice--success {
    border-left-color: #26a77f;
}

.wp-shell--hybrid .wp-notice--warning {
    border-left-color: #c98512;
}

.wp-shell--hybrid .wp-notice--error {
    border-left-color: #da5f65;
}

.wp-shell--hybrid .wp-badge {
    border-radius: 999px;
    border: 1px solid #d4e2f4;
    background: #f4f8ff;
    color: #2a4b75;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.wp-shell--hybrid .wp-badge--success {
    border-color: #8edbc6;
    background: #ecfcf5;
    color: #0e7458;
}

.wp-shell--hybrid .wp-badge--warning {
    border-color: #f3cb8b;
    background: #fff8ea;
    color: #91611b;
}

.wp-shell--hybrid .wp-badge--danger {
    border-color: #f3b5bd;
    background: #fff2f4;
    color: #a13b4d;
}

.wp-shell--hybrid .wp-tab {
    border-color: #d4e3f6;
    border-radius: 10px;
    padding: 8px 11px;
    background: #f6f9ff;
    color: #496387;
    font-weight: 600;
}

.wp-shell--hybrid .wp-tab.is-active,
.wp-shell--hybrid .wp-tab:hover {
    color: #0f3d6f;
    background: #e8f2ff;
    border-color: #bbd4f3;
}

.wp-shell--hybrid [data-form-status] {
    margin-top: 6px;
    min-height: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.wp-shell--hybrid form.is-loading {
    pointer-events: none;
    opacity: 0.92;
}

.wp-shell--hybrid form.is-loading button[type="submit"] {
    position: relative;
    opacity: 0.8;
}

.wp-shell--hybrid form.is-loading button[type="submit"]::after {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid rgba(243, 248, 255, 0.35);
    border-top-color: #f3f8ff;
    border-radius: 999px;
    margin-left: 0.48rem;
    animation: authSpin .65s linear infinite;
}

.wp-partner-footer {
    border-top: 1px solid rgba(149, 179, 220, 0.22);
    background: rgba(7, 23, 46, 0.92);
    padding: 10px 14px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wp-partner-footer p {
    margin: 0;
    color: #d3e2fb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.wp-partner-footer__logos {
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    min-width: 180px;
}

@media (max-width: 1200px) {
    .wp-shell--hybrid .wp-topbar {
        grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    }
}

@media (max-width: 980px) {
    .wp-shell--hybrid .wp-topbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px;
    }

    .wp-shell--hybrid .wp-topbar__left {
        justify-content: space-between;
    }

    .wp-shell--hybrid .wp-topbar__search {
        grid-template-columns: 1fr auto;
    }

    .wp-shell--hybrid .wp-topbar__right {
        justify-content: space-between;
        gap: 8px;
    }

    .wp-shell--hybrid .wp-sidebar {
        width: min(82vw, 320px);
        border-right-color: rgba(149, 179, 220, 0.28);
        background: linear-gradient(180deg, #0a2243, #081a33);
    }

    .wp-shell--hybrid .wp-content {
        padding: 12px;
    }

    .wp-shell--hybrid .wp-filters {
        grid-template-columns: 1fr;
    }

    .wp-shell--hybrid .wp-filters button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .auth-consent-section {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-consent-content {
        min-width: 100%;
    }

    .auth-recaptcha--consent {
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }

    .wp-shell--hybrid .wp-page__title {
        font-size: 1.35rem;
    }

    .wp-shell--hybrid .wp-card__header,
    .wp-shell--hybrid .wp-card__body {
        padding: 12px;
    }

    .wp-shell--hybrid .wp-table th,
    .wp-shell--hybrid .wp-table td {
        padding: 9px 10px;
    }

    .wp-shell--hybrid .wp-user-chip {
        width: 100%;
        justify-content: space-between;
    }

    .wp-partner-footer {
        padding: 10px 12px 14px;
    }
}
