:root {
    --brand-blue: #0170b9;
    --brand-blue-strong: #0b79ff;
    --brand-red: #e21438;
    --text-main: #4b4f58;
    --text-muted: #6b7280;
    --bg-app: #f2f5f7;
    --surface: #ffffff;
    --shadow-soft: 0 20px 60px rgba(1, 112, 185, 0.12);
    --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --sidebar-width: 272px;
    --sidebar-collapsed-width: 82px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    color: var(--text-main);
    background: var(--bg-app);
}

body.is-sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.is-hidden {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--brand-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-logo {
    width: min(360px, 100%);
    margin-bottom: 1.5rem;
}

.login-brand-logo {
    width: min(320px, 92%);
    margin-top: -0.75rem;
}

.brand-logo--small {
    width: 172px;
}

.brand-logo[src$="logo_LK.png"] {
    width: min(120px, 100%);
}

.login-brand-logo[src$="logo_LK.png"] {
    width: min(110px, 34%);
}

.brand-logo--small[src$="logo_LK.png"] {
    width: 58px;
}

.public-page__logo[src$="logo_LK.png"] {
    width: min(110px, 34vw);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.9rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-weight: 700;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-strong));
    box-shadow: 0 14px 28px rgba(1, 112, 185, 0.22);
}

.button--ghost {
    color: var(--brand-blue);
    border-color: rgba(1, 112, 185, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.button--danger {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), #f14461);
}

.button--full {
    width: 100%;
}

.button--compact {
    min-height: 32px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.notice {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    background: rgba(1, 112, 185, 0.08);
    color: var(--brand-blue);
}

.notice--error {
    background: rgba(226, 20, 56, 0.1);
    color: #b91c1c;
}

.notice--success {
    background: rgba(42, 143, 42, 0.12);
    color: #1f6a1f;
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(11, 121, 255, 0.12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(226, 20, 56, 0.10), transparent 28%),
        var(--bg-app);
}

.login-body--home {
    background: var(--bg-app);
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px);
    min-height: 100vh;
}

.login-layout--home {
    grid-template-areas:
        "brand-top form"
        "brand-copy form";
    grid-template-rows: auto 1fr;
}

.login-layout--single {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-brand-top {
    grid-area: brand-top;
    padding: 2rem 2rem 0;
}

.login-brand-top__content {
    max-width: 760px;
    margin: 0 auto;
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
}

.login-brand-panel--content {
    grid-area: brand-copy;
    padding-top: 0.5rem;
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.login-layout--home .login-brand-panel::before,
.login-layout--home .login-brand-panel::after {
    display: none;
}

.login-brand-panel::before {
    top: -140px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: rgba(1, 112, 185, 0.12);
}

.login-brand-panel::after {
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    background: rgba(226, 20, 56, 0.10);
}

.login-brand-panel__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.login-brand-panel__content--copy {
    min-height: auto;
    justify-content: flex-start;
}

.brand-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 1.5rem 0 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
    font-size: 0.92rem;
    font-weight: 700;
}

.login-brand-panel h1 {
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.08;
}

.login-brand-panel p {
    max-width: 640px;
    margin: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.login-brand-features {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.stat-card,
.panel,
.login-card,
.order-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
}

.info-card strong {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.info-card span {
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.login-form-panel {
    grid-area: form;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-panel--single {
    padding: 0;
}

.login-card {
    width: 100%;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.login-card__header {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-card__eyebrow {
    margin-bottom: 0;
    text-align: center;
}

.login-card__header h2 {
    margin: 0 0 0.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
}

.login-card__header p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.form-group.is-dimmed {
    opacity: 0.65;
}

.form-group label {
    font-weight: 700;
}

.login-email-label {
    font-weight: 400;
    text-align: center;
}

.form-group small {
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

.form-group input {
    min-height: 54px;
    padding: 0 1rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(1, 112, 185, 0.5);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

.modal-dialog {
    width: min(100%, 560px);
    padding: 1.4rem;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.modal-dialog--narrow {
    width: min(100%, 520px);
}

.modal-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-dialog__header h2 {
    margin: 0 0 0.45rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.modal-dialog__header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.modal-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(1, 112, 185, 0.08);
    color: var(--brand-blue);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.balance-topup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.balance-topup-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
}

.submission-redirect-modal {
    z-index: 95;
}

.submission-redirect-modal__dialog {
    padding: 1.55rem;
}

.submission-redirect-modal__content {
    display: grid;
    gap: 1.25rem;
}

.submission-redirect-modal__status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0;
}

.submission-redirect-modal__spinner {
    width: 2.25rem;
    height: 2.25rem;
}

.submission-redirect-modal__status h2 {
    margin: 0 0 0.35rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
}

.submission-redirect-modal__status p {
    margin: 0 0 0.55rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.submission-redirect-modal__status strong {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
}

@media (max-width: 640px) {
    .modal-backdrop {
        padding: 1rem;
        align-items: flex-end;
    }

    .modal-dialog {
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .balance-topup-form__actions {
        flex-direction: column-reverse;
    }

    .balance-topup-form__actions .button {
        width: 100%;
    }

    .submission-redirect-modal__status {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.login-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.4rem;
}

.login-actions .button {
    flex: 1;
}

.login-consent {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.login-consent a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-page__main {
    flex: 1 0 auto;
    padding: 2rem 1.25rem;
}

.public-page__container {
    width: min(100%, 960px);
    margin: 0 auto;
}

.public-page__container--wide {
    width: min(100%, 1240px);
}

.public-page__header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.public-page__logo {
    width: min(320px, 76vw);
}

.public-page__intro {
    margin-bottom: 1.5rem;
}

.public-simple-page {
    padding: 1.5rem;
}

.legal-document {
    display: grid;
    gap: 0.75rem;
}

.legal-document p {
    margin: 0;
    line-height: 1.65;
}

.public-footer {
    flex-shrink: 0;
    padding: 1.4rem 1rem 2rem;
    border-top: 1px solid rgba(75, 79, 88, 0.1);
    background: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.public-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.public-footer__links a,
.public-footer__meta a {
    color: var(--brand-blue);
}

.public-footer__brand {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.public-footer__meta p {
    margin: 0;
    color: rgba(107, 114, 128, 0.72);
    font-size: 10px;
    line-height: 1.45;
}

.app-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(1, 112, 185, 0.10), transparent 28%),
        var(--bg-app);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    min-height: 100vh;
    padding: 1.5rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 252, 0.98));
    border-right: 1px solid rgba(1, 112, 185, 0.08);
}

.sidebar__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar__bottom {
    position: sticky;
    bottom: 0;
    padding-top: 1rem;
    background: linear-gradient(180deg, rgba(245, 249, 252, 0), rgba(245, 249, 252, 0.98) 24%, rgba(245, 249, 252, 0.98) 100%);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-group {
    display: block;
}

.sidebar-group[open] .sidebar-group__summary {
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
}

.sidebar-group__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
}

.sidebar-group__summary::-webkit-details-marker {
    display: none;
}

.sidebar-group__summary::after {
    content: "▾";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
}

.sidebar-group[open] .sidebar-group__summary::after {
    content: "▴";
}

.sidebar-group__links {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding-left: 0.75rem;
}

.sidebar-group__summary {
    justify-content: flex-start;
    gap: 0.28rem;
}

.sidebar-group__summary::after {
    content: "\25BE";
    width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.08rem;
    font-size: 1.18rem;
    flex: 0 0 auto;
    transform: translateY(1px);
}

.sidebar-group[open] .sidebar-group__summary::after {
    content: "\25B4";
}

.sidebar__link {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    color: var(--text-main);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar__link--spaced {
    margin-top: 0.85rem;
}

.sidebar__link:hover,
.sidebar__link.is-active {
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
}

.sidebar__link--sub {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar__profile {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(1, 112, 185, 0.05);
}

.sidebar__actions {
    display: grid;
    gap: 0.6rem;
}

.sidebar__profile-label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.sidebar__profile strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.98rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.balance-preview {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(1, 112, 185, 0.12);
}

.balance-preview__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.balance-preview__item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.balance-preview__item strong {
    font-size: 0.96rem;
}

.app-main {
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header--between {
    justify-content: space-between;
}

.admin-view-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(1, 112, 185, 0.08);
}

.admin-view-banner strong,
.admin-view-banner span {
    display: block;
}

.admin-view-banner span {
    margin-top: 0.25rem;
    color: var(--text-muted);
}

.page-header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header h1,
.panel__header h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.mobile-menu-button,
.sidebar-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(1, 112, 185, 0.08);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mobile-menu-button {
    display: none;
}

.mobile-menu-button:hover,
.sidebar-toggle-button:hover {
    background: rgba(1, 112, 185, 0.14);
}

.mobile-menu-button span,
.sidebar-toggle-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: var(--brand-blue);
}

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-md);
}

.stat-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.stat-card strong {
    display: block;
    margin-top: 0.45rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
}

.panel {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
}

.subscriptions-page .panel + .panel {
    margin-top: 1.5rem;
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.panel__header--stacked {
    align-items: stretch;
    flex-direction: column;
}

.panel__description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.search-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.search-form__field {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
}

.search-form__label {
    font-size: 0.9rem;
    font-weight: 700;
}

.search-form__field--select {
    flex: 0 1 220px;
}

.search-form input,
.search-form select {
    min-height: 52px;
    padding: 0 1rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: rgba(1, 112, 185, 0.5);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.search-form__actions {
    display: flex;
    gap: 0.75rem;
}

.new-order-button {
    white-space: nowrap;
    background: linear-gradient(135deg, #129724, #20b343);
    box-shadow: 0 14px 28px rgba(18, 151, 36, 0.22);
}

.page-title-mobile {
    display: none;
}

.new-order-button:hover,
.new-order-button:focus-visible {
    background: linear-gradient(135deg, #0f8420, #1aa13b);
    box-shadow: 0 16px 30px rgba(18, 151, 36, 0.28);
}

.new-order-search {
    align-items: end;
}

.new-order-search.is-loading .button--primary {
    opacity: 0.92;
    pointer-events: none;
}

.new-order-search.is-loading .button--primary::after {
    content: "";
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lk-spin 0.75s linear infinite;
}

@keyframes lk-spin {
    to {
        transform: rotate(360deg);
    }
}

.new-order-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 20px;
    color: var(--brand-blue);
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.09), rgba(255, 255, 255, 0.94));
}

.new-order-loading[hidden] {
    display: none;
}

.new-order-loading strong,
.new-order-loading span {
    display: block;
}

.new-order-loading span {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.new-order-loading__spinner {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(1, 112, 185, 0.18);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: lk-spin 0.8s linear infinite;
}

.address-suggest-field {
    position: relative;
}

.address-suggest-list {
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 0.45rem);
    z-index: 20;
    overflow: hidden;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.address-suggest-option {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(75, 79, 88, 0.08);
    color: var(--text-main);
    background: transparent;
    text-align: left;
    font: inherit;
    line-height: 1.45;
    cursor: pointer;
}

.address-suggest-option:last-child {
    border-bottom: 0;
}

.address-suggest-option:hover,
.address-suggest-option:focus {
    outline: none;
    background: rgba(1, 112, 185, 0.08);
}

.form-required-mark {
    color: #ff4d4f;
    font-style: normal;
    font-weight: 800;
}

.new-order-message {
    margin-bottom: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    color: var(--brand-blue);
    font-weight: 700;
    background: rgba(1, 112, 185, 0.08);
}

.new-order-message--error {
    color: #c91f3b;
    background: rgba(237, 22, 69, 0.08);
}

.new-order-results {
    margin-top: 1.2rem;
}

.new-order-results__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.new-order-results h3 {
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.new-order-results__header h3 {
    margin-bottom: 0;
}

.new-order-filters {
    display: flex;
    align-items: end;
    gap: 0.75rem;
}

.new-order-filters label {
    display: grid;
    gap: 0.35rem;
}

.new-order-filters span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.new-order-filters select {
    min-height: 42px;
    padding: 0 0.9rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
}

.new-order-results__grid {
    display: grid;
    gap: 0.9rem;
}

.new-order-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(1, 112, 185, 0.06), rgba(255, 255, 255, 0.92));
}

.new-order-result.is-hidden {
    display: none;
}

.new-order-result--inactive {
    border-color: rgba(237, 22, 69, 0.18);
    background: linear-gradient(180deg, rgba(237, 22, 69, 0.10), rgba(255, 255, 255, 0.96));
}

.new-order-result .button--primary:hover,
.new-order-result .button--primary:focus-visible {
    background: linear-gradient(135deg, #129724, #20b343);
    box-shadow: 0 14px 28px rgba(18, 151, 36, 0.22);
}

.new-order-result__content {
    display: grid;
    align-items: center;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.22fr) minmax(180px, 0.28fr);
    flex: 1;
}

.new-order-result__main {
    display: grid;
    gap: 0.35rem;
}

.new-order-result__cadnum,
.selected-object span,
.new-order-result__status,
.new-order-result__type {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.new-order-result strong {
    line-height: 1.5;
}

.new-order-result__type {
    justify-self: start;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.10);
}

.new-order-result__status--actual {
    color: #167c35;
}

.new-order-result__status--inactive {
    color: #d41436;
}

.selected-object {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    padding: 1.2rem;
    border-radius: 18px;
    background: rgba(1, 112, 185, 0.07);
}

.selected-object strong {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.selected-object__cadnum {
    color: var(--brand-blue);
    font-weight: 800;
}

.selected-object__type {
    color: var(--text-muted);
    font-weight: 700;
}

.order-tariff-form {
    display: grid;
    gap: 1.6rem;
}

.order-tariff-section {
    display: grid;
    gap: 1rem;
}

.order-tariff-section h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.order-tariff-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-tariff-card {
    position: relative;
    display: flex;
    gap: 1rem;
    min-height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(1, 112, 185, 0.07), rgba(255, 255, 255, 0.96));
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.order-tariff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(1, 112, 185, 0.12);
}

.order-tariff-card input,
.order-addon input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.order-tariff-card.is-selected {
    border-color: rgba(18, 151, 36, 0.46);
    box-shadow: 0 20px 45px rgba(18, 151, 36, 0.12);
}

.order-tariff-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.order-tariff-card__check {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 0.1rem;
    border: 2px solid rgba(1, 112, 185, 0.28);
    border-radius: 8px;
    background: #ffffff;
}

.order-tariff-card.is-selected .order-tariff-card__check {
    border-color: #129724;
    background: #129724;
    box-shadow: inset 0 0 0 5px #ffffff;
}

.order-tariff-card__body {
    display: grid;
    gap: 0.6rem;
    min-width: 0;
    align-content: start;
    height: 100%;
}

.order-tariff-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.8rem;
}

.order-tariff-card__top strong {
    font-family: "Montserrat", sans-serif;
    font-size: 1.12rem;
    line-height: 1.25;
}

.order-tariff-card__top b,
.order-addon__price {
    flex-shrink: 0;
    color: var(--brand-blue);
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
}

.order-tariff-card__description {
    color: var(--text-muted);
    line-height: 1.55;
    min-height: 3.4rem;
}

.order-tariff-expandable {
    gap: 0.7rem;
}

.order-tariff-expandable__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-blue);
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.order-tariff-expandable__toggle:hover {
    color: #0b5da5;
}

.order-tariff-expandable__icon {
    position: relative;
    width: 0.7rem;
    height: 0.7rem;
    flex: 0 0 0.7rem;
}

.order-tariff-expandable__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.order-tariff-expandable__toggle[aria-expanded="true"] .order-tariff-expandable__icon::before {
    transform: rotate(-135deg) translateY(-1px);
}

.order-tariff-expandable__content {
    display: grid;
    gap: 0.65rem;
}

.order-tariff-expandable__content[hidden] {
    display: none !important;
}

.order-addon-list {
    display: grid;
    gap: 0.75rem;
}

.order-tariff-section[hidden],
.order-addon[hidden],
.order-owner-section[hidden],
.order-owners[hidden],
.order-owner-extra[hidden],
.order-tariff-actions[hidden] {
    display: none !important;
}

.order-addon {
    position: relative;
    display: grid;
    align-items: center;
    gap: 0.85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(116, 89, 214, 0.18);
    border-radius: 18px;
    background: rgba(244, 240, 255, 0.78);
    cursor: pointer;
}

.order-addon__switch {
    position: relative;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: rgba(75, 79, 88, 0.20);
    transition: background 0.2s ease;
}

.order-addon__switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.order-addon.is-selected .order-addon__switch {
    background: #129724;
}

.order-addon.is-selected .order-addon__switch::after {
    transform: translateX(24px);
}

.order-addon__title {
    font-weight: 800;
}

.order-addon__price {
    color: var(--brand-blue);
    font-weight: 800;
    white-space: nowrap;
}

.order-tariff-actions {
    display: flex;
    justify-content: flex-end;
}

.order-owner-section {
    display: grid;
    gap: 1rem;
}

.order-owner-toggle {
    position: relative;
    display: grid;
    align-items: center;
    gap: 0.85rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(116, 89, 214, 0.18);
    border-radius: 18px;
    background: rgba(244, 240, 255, 0.78);
    cursor: pointer;
}

.order-owner-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.order-owner-toggle input:checked + .order-addon__switch {
    background: #129724;
}

.order-owner-toggle input:checked + .order-addon__switch::after {
    transform: translateX(24px);
}

.order-owner-toggle__content {
    display: grid;
    gap: 0.25rem;
}

.order-owner-toggle__content strong,
.order-owner-card legend {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
}

.order-owner-toggle__content small,
.order-owner-footer span {
    color: var(--text-muted);
    font-weight: 700;
}

.order-owners {
    display: grid;
    gap: 1rem;
}

.order-owner-list {
    display: grid;
    gap: 1rem;
}

.order-owner-card {
    position: relative;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.2rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
}

.order-owner-card legend {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0;
    color: var(--text-main);
}

.order-owner-card legend b {
    color: var(--brand-blue);
    white-space: nowrap;
}

.order-owner-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-owner-extra {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-owner-card label {
    display: grid;
    gap: 0.45rem;
    color: var(--text-muted);
    font-weight: 700;
}

.order-owner-card label > span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.order-owner-card input {
    min-height: 48px;
    padding: 0 0.9rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 14px;
    background: #ffffff;
    font: inherit;
}

.order-owner-card input:focus {
    outline: none;
    border-color: rgba(1, 112, 185, 0.5);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.order-owner-region-field .address-suggest-list {
    max-height: 320px;
    overflow-y: auto;
}

.person-order-region-field {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
}

.person-order-region-field label {
    display: grid;
    gap: 0.45rem;
    color: var(--text-muted);
    font-weight: 700;
}

.person-order-region-field label > span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.person-order-region-field [data-region-suggest-input] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0 0.9rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 14px;
    background: #ffffff;
    font: inherit;
}

.person-order-region-field [data-region-suggest-input]:focus {
    outline: none;
    border-color: rgba(1, 112, 185, 0.5);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.person-order-region-field .address-suggest-list {
    max-height: 320px;
    overflow-y: auto;
}

.order-owner-extra-toggle,
.order-owner-remove {
    justify-self: start;
    padding: 0;
    border: 0;
    color: var(--brand-blue);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.order-owner-remove {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}

.order-owner-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.owner-addon-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.owner-addon-caption {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-weight: 700;
}

.owner-addon-request-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.owner-addon-request-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
}

.owner-addon-request-card__top,
.owner-addon-request-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.owner-addon-request-card__title {
    display: grid;
    gap: 0.25rem;
}

.owner-addon-request-card__title strong {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.owner-addon-request-card__title span,
.owner-addon-request-card__meta,
.owner-addon-request-card__id,
.owner-addon-request-card__text,
.owner-addon-form__intro,
.owner-addon-empty {
    color: var(--text-muted);
    font-weight: 700;
}

.owner-addon-request-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.owner-addon-request-card__link {
    color: var(--brand-blue);
    font-weight: 800;
    text-decoration: none;
}

.owner-addon-request-card__link:hover {
    text-decoration: underline;
}

.owner-addon-request-card__text {
    margin: 0;
}

.owner-addon-empty {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px dashed rgba(1, 112, 185, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.owner-addon-form {
    display: grid;
    gap: 1rem;
}

.owner-addon-form__intro {
    margin: 0;
}

.owner-addon-form__footer {
    flex-wrap: wrap;
}

.owner-addon-form__footer .button--primary {
    margin-left: auto;
}

.owner-addon-note {
    margin-top: 1rem;
}

.owner-addon-activation {
    margin-top: 1rem;
}

.property-correction-note {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.property-correction-note strong {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
}

.property-correction-note p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.property-correction-search {
    margin-top: 0.35rem;
}

.panel.detail-panel.detail-panel--property-correction {
    position: relative;
    overflow: visible;
    z-index: 2;
}

.detail-panel--property-correction .detail-card {
    overflow: visible;
}

.property-correction-search .address-suggest-list {
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
}

.property-correction-results {
    margin-top: 1.4rem;
}

.property-correction-confirm__list {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.property-correction-confirm__list div {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(1, 112, 185, 0.05), rgba(255, 255, 255, 0.94));
}

.property-correction-confirm__list dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.property-correction-confirm__list dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
}

.page-header__description {
    margin: 0.45rem 0 0;
    max-width: 820px;
    color: var(--text-muted);
    line-height: 1.6;
}

.home-page {
    display: grid;
    gap: 1.5rem;
}

.home-services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 320px;
    padding: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(1, 112, 185, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
    box-shadow: var(--shadow-card);
}

.home-service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-service-card h2 {
    margin: 0;
    max-width: 340px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.7rem, 2vw, 2.4rem);
    line-height: 1.15;
}

.home-service-card p {
    margin: 1.2rem 0 0;
    max-width: 470px;
    color: var(--text-main);
    font-size: 1.04rem;
    line-height: 1.6;
}

.home-service-card__icon {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    color: #111827;
}

.home-service-card__icon svg {
    width: 100%;
    height: 100%;
}

.home-service-card__footer {
    margin-top: auto;
}

.home-service-card__footer .button {
    min-width: 220px;
}

.home-panel {
    padding: 1.5rem;
}

.home-panel .panel__header {
    margin-bottom: 1rem;
}

.home-panel h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.35rem, 1.8vw, 1.9rem);
}

.home-faq-list {
    display: grid;
    gap: 0.9rem;
}

.home-faq-item {
    border: 1px solid rgba(1, 112, 185, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

.home-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--brand-blue);
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.home-faq-item[open] summary::after {
    content: '−';
}

.home-faq-item__answer {
    padding: 0 1.2rem 1.15rem;
}

.home-faq-item__answer p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-contacts {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-contact-card {
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem 1.3rem;
    border: 1px solid rgba(1, 112, 185, 0.10);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(1, 112, 185, 0.06), rgba(255, 255, 255, 0.95));
}

.home-contact-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.home-contact-card a,
.home-contact-card strong {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.5;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100vh;
    padding: 1.5rem;
    border-right: 1px solid rgba(75, 79, 88, 0.08);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
}

.admin-sidebar__top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-sidebar__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.admin-sidebar__brand-text {
    min-width: 0;
}

.admin-sidebar__brand strong {
    display: block;
    margin-top: 0.2rem;
    font-family: "Montserrat", sans-serif;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 1rem;
    border-radius: 16px;
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-sidebar__link span {
    white-space: nowrap;
}

.admin-sidebar__link:hover {
    background: rgba(1, 112, 185, 0.08);
    color: var(--brand-blue);
    transform: translateX(2px);
}

.admin-sidebar__link.is-active {
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.1);
}

.admin-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.admin-sidebar__meta {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(1, 112, 185, 0.08);
}

.admin-sidebar__meta span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-sidebar__meta strong {
    display: block;
    margin-top: 0.25rem;
    word-break: break-word;
}

.admin-page {
    max-width: none;
    padding: 1.5rem;
}

body.is-sidebar-collapsed .admin-shell {
    grid-template-columns: 88px minmax(0, 1fr);
}

body.is-sidebar-collapsed .admin-sidebar__topbar {
    flex-direction: column;
    align-items: center;
}

body.is-sidebar-collapsed .admin-sidebar__brand-text,
body.is-sidebar-collapsed .admin-sidebar__link span,
body.is-sidebar-collapsed .admin-sidebar__meta,
body.is-sidebar-collapsed .admin-sidebar .button--full {
    display: none;
}

body.is-sidebar-collapsed .admin-sidebar__brand {
    justify-content: center;
}

body.is-sidebar-collapsed .admin-sidebar__link {
    justify-content: center;
    padding: 0;
}

body.is-sidebar-collapsed .admin-sidebar__footer {
    align-items: center;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.admin-selected-client {
    display: inline-flex;
    align-items: center;
    margin-top: 0.9rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
    font-weight: 700;
}

.admin-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header__meta {
    text-align: right;
}

.admin-header__meta span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-header__meta strong {
    display: block;
    margin-top: 0.2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 1rem;
    margin-top: 1rem;
}

.admin-page .panel + .panel {
    margin-top: 1rem;
}

.admin-balance-cards {
    display: grid;
    gap: 0.8rem;
}

.admin-balance-cards--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-balance-cards--analytics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form select,
.admin-form input {
    min-height: 52px;
    padding: 0 1rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 14px;
    background: #ffffff;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.orders-table-wrap {
    overflow: visible;
}

.orders-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 18px;
    border: 1px solid rgba(75, 79, 88, 0.08);
    background: #ffffff;
}

.orders-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(75, 79, 88, 0.08);
    text-align: left;
    vertical-align: middle;
}

.orders-table th {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(242, 245, 247, 0.85);
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
}

.table-sort-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
    font-size: 0.82rem;
    line-height: 1;
}

.order-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.order-link:hover {
    color: var(--brand-blue-strong);
}

.order-link__icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.order-link-group {
    display: inline-grid;
    gap: 0.18rem;
}

.order-link-addon {
    color: #7b61c8;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.download-links--compact {
    align-items: center;
    justify-content: center;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.download-link:hover {
    color: var(--brand-blue-strong);
    background: rgba(1, 112, 185, 0.13);
    transform: translateY(-1px);
}

.download-link--expired {
    color: var(--text-muted);
    background: rgba(75, 79, 88, 0.08);
    cursor: help;
}

.download-link--expired:hover {
    color: var(--text-muted);
    background: rgba(75, 79, 88, 0.12);
    transform: none;
}

.download-link--icon {
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0.3rem;
    border-radius: 10px;
}

.download-link__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.download-link__icon--image {
    object-fit: contain;
}

.download-link__text {
    display: inline-block;
}

.download-link__meta {
    display: grid;
    gap: 0.18rem;
}

.download-link__hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 500;
}

.address-cell {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.address-cell .address-reveal {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: var(--status-color, var(--brand-blue));
    background: var(--status-bg, rgba(1, 112, 185, 0.12));
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge--warning {
    color: #9a3412;
    background: rgba(249, 115, 22, 0.14);
}

.orders-table__row--warning td {
    background: rgba(249, 115, 22, 0.08);
}

.balance-stale-hold {
    display: grid;
    gap: 0.3rem;
}

.balance-stale-hold__meta,
.balance-stale-hold__empty {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.address-reveal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.address-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.address-trigger:hover {
    background: rgba(1, 112, 185, 0.14);
    transform: translateY(-1px);
}

.address-icon {
    width: 14px;
    height: 14px;
}

.address-popover {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    z-index: 80;
    display: none;
    width: min(320px, 32vw);
    max-width: min(280px, calc(100vw - 24px));
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    transform: translateY(-50%);
    white-space: normal;
    overflow: visible;
    pointer-events: none;
}

.address-reveal.is-left .address-popover {
    left: auto;
    right: calc(100% + 10px);
}

.address-reveal:hover .address-popover,
.address-reveal.is-open .address-popover {
    display: block;
}

.order-cards {
    display: none;
    gap: 1rem;
}

.order-card {
    padding: 1.2rem;
    border-radius: 20px;
}

.order-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.order-card__label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.order-card__grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.order-card__grid div {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(242, 245, 247, 0.65);
}

.order-card__grid dt {
    margin: 0 0 0.3rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.order-card__grid dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

.person-order-warning {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 100%;
}

.person-order-warning--compact {
    display: flex;
    max-width: 420px;
}

.person-order-warning__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.96), rgba(11, 121, 255, 0.9));
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(1, 112, 185, 0.16);
}

.person-order-warning__content {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.person-order-warning__content strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
}

.person-order-warning__content span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;
    word-break: break-word;
}

.back-link {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--brand-blue);
    font-weight: 700;
}

.stat-card__compact {
    font-size: 1.15rem;
    line-height: 1.4;
}

.detail-layout {
    display: grid;
    gap: 1rem;
}

.detail-panel {
    overflow: hidden;
}

.detail-rows {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

.detail-row--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-row--three {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}

.detail-row--single {
    grid-template-columns: minmax(0, 1fr);
}

.detail-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
    padding: 1rem 1.1rem;
    height: 100%;
    border-radius: 18px;
    background: rgba(242, 245, 247, 0.72);
}

.detail-card--files {
    min-height: 100%;
}

.detail-card--files > .detail-card__label {
    margin-bottom: 0.9rem;
    color: var(--text-main);
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}

.detail-card--files .download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.detail-card--files .download-link {
    width: min(360px, calc(50% - 0.4rem));
    min-height: 74px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(1, 112, 185, 0.10);
    border-radius: 18px;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(1, 112, 185, 0.08), rgba(1, 112, 185, 0.05));
}

.person-order-addon-box,
.person-order-addon-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.person-order-addon-box {
    border: 1px solid rgba(1, 112, 185, 0.12);
    background: rgba(1, 112, 185, 0.06);
}

.person-order-addon-status--processing {
    border: 1px solid rgba(1, 112, 185, 0.12);
    background: rgba(1, 112, 185, 0.08);
}

.person-order-addon-status--error {
    border: 1px solid rgba(226, 20, 56, 0.16);
    background: rgba(226, 20, 56, 0.08);
}

.person-order-addon-box__content,
.person-order-addon-status {
    min-width: 0;
}

.person-order-addon-box__content strong,
.person-order-addon-status strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-main);
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.person-order-addon-box__content p,
.person-order-addon-status p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.person-order-addon-box__button {
    flex-shrink: 0;
    min-width: 240px;
}

.detail-card--report-data {
    padding: 1.2rem;
}

.report-data-block {
    display: grid;
    gap: 1rem;
}

.report-data-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.report-data-header h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
}

.report-data-header__meta {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.report-data-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-data-grid--single {
    grid-template-columns: 1fr;
}

.report-data-item,
.report-data-card {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(1, 112, 185, 0.10);
}

.report-data-item--success,
.report-data-card--success {
    background: rgba(47, 133, 90, 0.10);
    border-color: rgba(47, 133, 90, 0.22);
}

.report-data-item--danger,
.report-data-card--danger {
    background: rgba(229, 62, 62, 0.10);
    border-color: rgba(229, 62, 62, 0.22);
}

.report-data-item__label,
.report-data-card__title {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.report-data-item strong,
.report-data-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.55;
    word-break: break-word;
}

.report-data-item--old-number {
    display: grid;
    gap: 0.2rem;
}

.report-data-old-number__type {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.report-data-section {
    display: grid;
    gap: 0.75rem;
}

.report-data-section h4 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.98rem;
    text-align: center;
}

.report-data-cards {
    display: grid;
    gap: 0.85rem;
}

.report-data-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.5rem;
}

.report-data-list li {
    line-height: 1.55;
}

.report-data-raw {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(1, 112, 185, 0.10);
}

.report-data-raw pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Roboto Mono", "Consolas", monospace;
    font-size: 0.88rem;
    line-height: 1.55;
}

.detail-card--files .download-link:hover {
    background: linear-gradient(180deg, rgba(1, 112, 185, 0.14), rgba(1, 112, 185, 0.08));
}

.detail-card--files .download-link--expired {
    border-color: rgba(75, 79, 88, 0.08);
    background: linear-gradient(180deg, rgba(75, 79, 88, 0.07), rgba(75, 79, 88, 0.04));
}

.detail-card--files .download-link--expired:hover {
    background: linear-gradient(180deg, rgba(75, 79, 88, 0.10), rgba(75, 79, 88, 0.06));
}

.detail-card--files .download-link__icon {
    width: 28px;
    height: 28px;
}

.detail-card--files .download-link__text {
    font-size: 1rem;
    line-height: 1.4;
}

.detail-card__hint {
    margin: 0.9rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.detail-card--wide {
    grid-column: 1 / -1;
}

.detail-card__label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.detail-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.55;
    word-break: break-word;
}

.detail-card__status {
    display: grid;
    gap: 0.6rem;
}

.detail-card__status p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.detail-timeline,
.detail-list {
    display: grid;
    gap: 0.9rem;
}

.detail-timeline__item,
.detail-list__item {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(242, 245, 247, 0.72);
}

.detail-timeline__meta,
.detail-list__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.detail-timeline__meta span,
.detail-list__meta span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.detail-timeline__item p,
.detail-list__item p {
    margin: 0;
    line-height: 1.65;
    color: var(--text-main);
}

.detail-empty {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(242, 245, 247, 0.72);
    color: var(--text-muted);
}

.order-card__grid dd .address-popover {
    width: min(250px, 60vw);
}

.order-card__address-text {
    display: inline-block;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.empty-state {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    background: rgba(242, 245, 247, 0.78);
}

.empty-state strong {
    display: block;
    margin-bottom: 0.6rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.empty-state__actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.empty-state--compact {
    padding: 1.25rem;
}

.admin-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-docs-card {
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(245, 249, 252, 0.95);
    border: 1px solid rgba(1, 112, 185, 0.08);
}

.admin-docs-card h3 {
    margin: 0 0 0.9rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
}

.admin-docs-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-main);
}

.admin-docs-list li + li {
    margin-top: 0.6rem;
}

.admin-code-block {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.admin-code-block code {
    font-family: Consolas, "Courier New", monospace;
}

.admin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(1, 112, 185, 0.08);
    color: var(--brand-blue);
    font-weight: 700;
}

@media (max-width: 900px) {
    .admin-docs-grid {
        grid-template-columns: 1fr;
    }
}

.tariffs-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tariffs-grid--physical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tariff-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid rgba(1, 112, 185, 0.10);
    border-radius: 22px;
    background: rgba(242, 245, 247, 0.65);
}

.tariff-card--additional {
    border-color: rgba(116, 89, 214, 0.14);
    background: rgba(244, 240, 255, 0.78);
}

.tariff-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tariff-card__top > div {
    min-width: 0;
    flex: 1 1 auto;
}

.tariff-card h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
    line-height: 1.25;
}

.tariff-card__price {
    flex-shrink: 0;
    color: var(--brand-blue);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.12rem, 1rem + 0.7vw, 1.35rem);
    line-height: 1.2;
    white-space: nowrap;
}

.tariff-card__description {
    margin: 0;
    color: var(--text-main);
    line-height: 1.65;
}

.tariff-card__section {
    display: grid;
    gap: 0.65rem;
}

.tariff-feature-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tariff-feature-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tariff-feature-list--compact {
    gap: 0.65rem;
}

.tariff-feature-list--compact .tariff-feature-list__item {
    font-size: 0.96rem;
    line-height: 1.45;
}

.tariff-feature-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-main);
    line-height: 1.55;
}

.tariff-feature-list__text {
    display: inline;
}

.tariff-nowrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.tariff-feature-list__item--bordered {
    padding-bottom: 0.55rem;
    border-bottom: 1px dotted #cbcbcb;
}

.tariff-feature-list__icon {
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: #129724;
    font-size: 1rem;
}

.tariff-feature-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: help;
    vertical-align: middle;
    outline: none;
}

.tariff-feature-tooltip::before,
.tariff-feature-tooltip::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
    z-index: 30;
}

.tariff-feature-tooltip::before {
    content: "";
    bottom: calc(100% + 2px);
    transform: translate(-50%, 4px);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.tariff-feature-tooltip::after {
    content: attr(aria-label);
    bottom: calc(100% + 12px);
    transform: translate(-50%, 4px);
    width: max-content;
    max-width: min(320px, calc(100vw - 2rem));
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    color: #ffffff;
    background: #1f2937;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
}

@media (hover: hover) {
    .tariff-feature-tooltip:hover::before,
    .tariff-feature-tooltip:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

.tariff-feature-tooltip:focus-visible::before,
.tariff-feature-tooltip:focus-visible::after,
.tariff-feature-tooltip.is-open::before,
.tariff-feature-tooltip.is-open::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.tariff-feature-tooltip img {
    display: block;
    width: 12px;
    height: 12px;
}

.tariff-card__label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.tariff-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tariff-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
}

.tariff-card__note {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: var(--text-main);
    background: rgba(1, 112, 185, 0.07);
    line-height: 1.6;
    margin-top: auto;
}

.tariff-card__note--highlight {
    background: rgba(116, 89, 214, 0.10);
}

.tariff-card__screen-addon {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(116, 89, 214, 0.16);
    border-radius: 16px;
    color: #4d3aa5;
    background: rgba(116, 89, 214, 0.12);
    line-height: 1.55;
}

.tariff-card__screen-addon-price {
    white-space: nowrap;
    color: var(--brand-blue);
    font-weight: 800;
}

.tariffs-section--spaced {
    margin-top: 1.5rem;
}

.tariffs-footnotes {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tariffs-footnotes p {
    margin: 0;
}

.tariffs-page-note {
    margin: 1.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.35rem;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text-main);
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pagination__link:hover {
    color: var(--brand-blue);
    border-color: rgba(1, 112, 185, 0.28);
    transform: translateY(-1px);
}

.pagination__link.is-active {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-strong));
    border-color: transparent;
    color: #ffffff;
}

.pagination__link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
}

.app-overlay {
    display: none;
}

@media (max-width: 1180px) {
    .login-brand-features,
    .stats-grid,
    .order-tariff-grid,
    .order-owner-grid,
    .tariffs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tariffs-grid--physical {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-analysis-filter-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .login-brand-panel__content--copy {
        align-items: center;
        text-align: center;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 50;
        width: min(88vw, 320px);
        min-width: min(88vw, 320px);
        height: 100vh;
        border-right: 1px solid rgba(75, 79, 88, 0.08);
        border-bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar__nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .admin-sidebar__topbar {
        align-items: center;
    }

    .admin-sidebar__link {
        min-width: 0;
        justify-content: flex-start;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-layout--home {
        grid-template-areas:
            "brand-top"
            "form"
            "brand-copy";
        grid-template-rows: auto auto auto;
    }

    .login-layout--single {
        padding: 1rem;
    }

    .login-form-panel {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .login-brand-panel {
        padding-bottom: 1rem;
    }

    .login-brand-top {
        padding: 1rem 1rem 0;
    }

    .login-brand-top__content {
        display: flex;
        justify-content: center;
    }

    .login-brand-logo {
        width: min(260px, 78vw);
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form__field,
    .search-form__field--select,
    .search-form__actions {
        width: 100%;
        flex: none;
    }

    .search-form__actions {
        flex-direction: column;
    }

    .new-order-result {
        align-items: stretch;
        flex-direction: column;
    }

    .new-order-results__header,
    .new-order-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .new-order-result__content {
        grid-template-columns: 1fr;
    }

    .new-order-result .button {
        width: 100%;
    }

    .sidebar {
        justify-content: flex-start;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .app-overlay {
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(15, 23, 42, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .app-overlay.is-visible {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .sidebar-toggle-button {
        display: none;
    }

    .sidebar__top {
        gap: 1.25rem;
    }

    .sidebar__bottom {
        position: static;
        margin-top: 1rem;
        padding-top: 0;
        background: none;
    }

    .page-header {
        align-items: flex-start;
    }

    .new-order-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
        overflow: hidden;
        border-radius: 14px;
        font-size: 0;
        line-height: 1;
        box-shadow: 0 12px 24px rgba(18, 151, 36, 0.22);
    }

    .new-order-button::before {
        content: "+";
        position: absolute;
        top: 50%;
        left: 50%;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1;
        transform: translate(-50%, -52%);
    }

    .page-title-desktop {
        display: none;
    }

    .page-title-mobile {
        display: inline;
    }

    .admin-view-banner,
    .admin-header,
    .admin-header__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header__meta {
        text-align: left;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-balance-cards--wide {
        grid-template-columns: 1fr;
    }

    .admin-balance-cards--analytics {
        grid-template-columns: 1fr;
    }

    .orders-table-wrap {
        display: none;
    }

    .order-cards {
        display: grid;
    }

    .admin-page .orders-table-wrap {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .home-services-grid,
    .home-contacts {
        grid-template-columns: 1fr;
    }

    .home-service-card__top {
        flex-direction: column;
    }

    .home-service-card__icon {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 720px) {
    .login-brand-panel,
    .login-form-panel,
    .app-main {
        padding: 1rem;
    }

    .login-card,
    .panel,
    .order-card {
        border-radius: 18px;
    }

    .login-brand-features,
    .order-card__grid,
    .detail-rows,
    .detail-row,
    .detail-grid,
    .report-data-grid,
    .order-tariff-grid,
    .order-owner-grid,
    .tariffs-grid,
    .home-services-grid,
    .home-contacts {
        grid-template-columns: 1fr;
    }

    .order-owner-extra {
        grid-template-columns: 1fr;
    }

    .admin-balance-cards--analytics {
        grid-template-columns: 1fr;
    }

    .order-owner-extra > label {
        min-width: 0;
    }

    .stats-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-card {
        padding: 0.9rem 0.85rem;
    }

    .stat-card span {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .stat-card strong {
        margin-top: 0.3rem;
        font-size: 1.35rem;
        line-height: 1.05;
    }

    .home-service-card {
        min-height: 0;
        padding: 1.25rem;
        border-radius: 22px;
    }

    .home-service-card h2 {
        max-width: none;
        font-size: 1.65rem;
    }

    .home-service-card p {
        font-size: 1rem;
    }

    .home-service-card__footer .button {
        width: 100%;
        min-width: 0;
    }

    .home-faq-item summary {
        align-items: flex-start;
    }

    .home-contact-card a,
    .home-contact-card strong {
        font-size: 1.02rem;
    }

    .panel--orders-mobile-full {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }

    .panel--orders-mobile-full > .panel__header,
    .panel--orders-mobile-full > .empty-state,
    .panel--orders-mobile-full > .pagination {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .panel--orders-mobile-full .order-cards {
        gap: 0;
    }

    .panel--orders-mobile-full .order-card {
        margin-bottom: 0.75rem;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(75, 79, 88, 0.12);
        border-radius: 0;
        box-shadow: 0 12px 24px rgba(12, 31, 58, 0.06);
    }

    .panel--orders-mobile-full .order-card:last-child {
        margin-bottom: 0;
    }

    .balance-operations-panel--mobile-full {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }

    .balance-operations-panel--mobile-full > .panel__header,
    .balance-operations-panel--mobile-full > .empty-state {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .balance-operations-panel--mobile-full .order-cards {
        gap: 0;
    }

    .balance-operations-panel--mobile-full .order-card {
        margin-bottom: 0.75rem;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(75, 79, 88, 0.12);
        border-radius: 0;
        box-shadow: 0 12px 24px rgba(12, 31, 58, 0.06);
    }

    .balance-operations-panel--mobile-full .order-card:last-child {
        margin-bottom: 0;
    }

    .detail-panel--mobile-full {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .tariffs-section--mobile-full {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }

    .tariffs-section--mobile-full > .panel__header,
    .tariffs-section--mobile-full > .tariffs-footnotes,
    .tariffs-section--mobile-full > .tariffs-page-note {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tariffs-section--mobile-full .tariffs-grid {
        gap: 0.75rem;
    }

    .tariffs-section--mobile-full .tariff-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .order-owner-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-addon-request-card__top,
    .owner-addon-request-card__footer {
        flex-direction: column;
    }

    .owner-addon-request-card__meta {
        flex-direction: column;
        gap: 0.45rem;
    }

    .owner-addon-form__footer .button--primary {
        width: 100%;
        margin-left: 0;
    }

    .detail-card--files .download-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .detail-card--files .download-link {
        width: 100%;
    }

    .person-order-addon-box,
    .person-order-addon-status {
        align-items: stretch;
        flex-direction: column;
    }

    .person-order-addon-box__button {
        width: 100%;
        min-width: 0;
    }

    .order-tariff-card__top,
    .order-tariff-card__description,
    .order-tariff-expandable__toggle {
        min-height: 0;
    }

    .tariff-feature-columns {
        grid-template-columns: 1fr;
    }

    .detail-timeline__meta,
    .detail-list__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .login-actions {
        flex-direction: column;
    }

    .public-page__main {
        padding: 1rem;
    }

    .public-simple-page {
        padding: 1.15rem;
    }

    .public-footer {
        padding-bottom: 1.5rem;
    }

    .sidebar {
        width: min(88vw, 320px);
        min-width: min(88vw, 320px);
    }

    .admin-page {
        padding: 1rem;
    }
}

@media (min-width: 981px) {
    body.is-sidebar-collapsed .sidebar {
        width: var(--sidebar-collapsed-width);
        min-width: var(--sidebar-collapsed-width);
    }

    body.is-sidebar-collapsed .app-main {
        margin-left: var(--sidebar-collapsed-width);
    }

    body.is-sidebar-collapsed .sidebar__brand,
    body.is-sidebar-collapsed .sidebar__nav,
    body.is-sidebar-collapsed .sidebar__bottom {
        display: none;
    }

    body.is-sidebar-collapsed .sidebar__top {
        gap: 0;
    }

    body.is-sidebar-collapsed .sidebar__topbar {
        justify-content: center;
    }
}

@media (min-width: 981px) and (max-height: 900px) {
    .sidebar {
        justify-content: flex-start;
        padding: 1rem 0.95rem;
    }

    .sidebar .brand-logo--small {
        width: 152px;
    }

    .sidebar .brand-logo--small[src$="logo_LK.png"] {
        width: 52px;
    }

    .sidebar__top {
        gap: 1.15rem;
    }

    .sidebar__nav {
        gap: 0.22rem;
    }

    .sidebar__link {
        padding: 0.76rem 0.85rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .sidebar__link--sub {
        padding-top: 0.58rem;
        padding-bottom: 0.58rem;
        font-size: 0.9rem;
    }

    .sidebar-group__links {
        gap: 0.2rem;
        margin-top: 0.2rem;
        padding-left: 0.55rem;
    }

    .sidebar-group__summary {
        gap: 0.2rem;
    }

    .sidebar-group__summary::after {
        width: 1rem;
        height: 1rem;
        font-size: 1.02rem;
    }

    .sidebar-toggle-button {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .sidebar-toggle-button span {
        width: 18px;
    }

    .sidebar__bottom {
        position: static;
        margin-top: auto;
        padding-top: 0.8rem;
        background: none;
    }

    .sidebar__profile {
        margin-bottom: 0.75rem;
        padding: 0.82rem 0.88rem;
        border-radius: 14px;
    }

    .sidebar__profile-label {
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
    }

    .sidebar__profile strong {
        font-size: 0.93rem;
        line-height: 1.28;
    }

    .balance-preview {
        gap: 0.5rem;
        margin-top: 0.72rem;
        padding-top: 0.72rem;
    }

    .balance-preview__item span {
        font-size: 0.84rem;
    }

    .balance-preview__item strong {
        font-size: 0.9rem;
    }

    .sidebar__actions {
        gap: 0.45rem;
    }

    .sidebar__actions .button--compact {
        min-height: 30px;
        padding: 0.42rem 0.85rem;
        font-size: 0.86rem;
        border-radius: 11px;
    }
}

@media (min-width: 981px) and (max-height: 820px) {
    .sidebar {
        padding: 0.85rem 0.8rem;
    }

    .sidebar .brand-logo--small {
        width: 138px;
    }

    .sidebar .brand-logo--small[src$="logo_LK.png"] {
        width: 46px;
    }

    .sidebar__top {
        gap: 0.9rem;
    }

    .sidebar__link {
        padding: 0.68rem 0.78rem;
        font-size: 0.9rem;
    }

    .sidebar__link--sub {
        padding-top: 0.52rem;
        padding-bottom: 0.52rem;
        font-size: 0.85rem;
    }

    .sidebar__profile {
        margin-bottom: 0.6rem;
        padding: 0.72rem 0.78rem;
    }

    .sidebar__profile-label {
        font-size: 0.76rem;
    }

    .sidebar__profile strong {
        font-size: 0.89rem;
    }

    .balance-preview {
        gap: 0.4rem;
        margin-top: 0.62rem;
        padding-top: 0.62rem;
    }

    .balance-preview__item span {
        font-size: 0.79rem;
    }

    .balance-preview__item strong {
        font-size: 0.86rem;
    }

    .sidebar__actions .button--compact {
        min-height: 28px;
        padding: 0.36rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 10px;
    }
}

.deal-analysis-page .page-header {
    margin-bottom: 1.25rem;
}

.deal-analysis-page .sidebar {
    z-index: 700;
}

.deal-analysis-page .sidebar-toggle-button {
    position: relative;
    z-index: 710;
}

.deal-analysis-page .app-main {
    position: relative;
    z-index: 1;
}

.deal-analysis-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.deal-analysis-stepper__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.deal-analysis-stepper__item.is-complete:hover {
    border-color: rgba(1, 112, 185, 0.28);
    box-shadow: 0 16px 32px rgba(1, 112, 185, 0.10);
    transform: translateY(-1px);
}

.deal-analysis-stepper__item.is-active {
    border-color: rgba(1, 112, 185, 0.28);
    box-shadow: 0 18px 36px rgba(1, 112, 185, 0.12);
}

.deal-analysis-stepper__item.is-disabled {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
}

.deal-analysis-stepper__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(1, 112, 185, 0.10);
    color: var(--brand-blue-strong);
    flex-shrink: 0;
    font-size: 0.92rem;
}

.deal-analysis-stepper__item.is-active .deal-analysis-stepper__number {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-strong));
    color: #ffffff;
}

.deal-analysis-stepper__item.is-disabled .deal-analysis-stepper__number {
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
}

.deal-analysis-summary__caption {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.deal-analysis-summary__caption strong {
    color: var(--text-main);
}

.deal-analysis-summary + .deal-analysis-panel {
    margin-top: 1.25rem;
}

.deal-analysis-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deal-analysis-panel .panel__header--stacked {
    gap: 1.5rem;
}

.deal-analysis-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(1, 112, 185, 0.08);
}

.deal-analysis-tab {
    min-height: 44px;
    padding: 0.65rem 1.05rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.deal-analysis-tab.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-strong));
    box-shadow: 0 12px 24px rgba(1, 112, 185, 0.22);
}

.deal-analysis-filter-grid {
    display: grid;
    width: 100%;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deal-analysis-filter-grid > .search-form__field:first-child {
    grid-column: 1 / -1;
}

.deal-analysis-range-field {
    display: grid;
    gap: 0.55rem;
}

.deal-analysis-range-field__inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.deal-analysis-range-field__inputs input {
    min-width: 0;
    min-height: 52px;
    padding: 0 1rem;
    border: 1px solid rgba(75, 79, 88, 0.15);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deal-analysis-range-field__inputs input:focus {
    outline: none;
    border-color: rgba(1, 112, 185, 0.5);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.deal-analysis-range-field__dash {
    color: var(--text-muted);
    font-weight: 700;
}

.deal-analysis-filter-groups {
    display: grid;
    width: 100%;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    padding: 1.1rem 1rem 1.25rem;
    border-radius: 20px;
    background: rgba(148, 163, 184, 0.16);
}

.deal-analysis-filter-group {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.deal-analysis-filter-group legend {
    padding: 0;
    color: var(--text-main);
    font-weight: 700;
}

.deal-analysis-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.deal-analysis-filter-group--dropdown {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.deal-analysis-filter-group--dropdown legend {
    width: 100%;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.deal-analysis-filter-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    min-height: 56px;
    width: 100%;
    padding: 0 1rem;
    border: 1px solid rgba(1, 112, 185, 0.18);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deal-analysis-filter-group__toggle:hover,
.deal-analysis-filter-group__toggle[aria-expanded="true"] {
    border-color: rgba(1, 112, 185, 0.34);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.deal-analysis-filter-group__summary {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-analysis-filter-group__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    width: 1.25rem;
    height: 1.25rem;
    line-height: 0;
    transform: translateY(1px);
}

.deal-analysis-filter-group__chevron svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.deal-analysis-filter-group--dropdown .deal-analysis-chip-list {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0.3rem;
    max-height: 280px;
    min-width: 0;
    overflow: auto;
    overflow-x: hidden;
    padding: 0.55rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.deal-analysis-filter-group--dropdown .deal-analysis-chip-list[hidden] {
    display: none;
}

.deal-analysis-chip {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 2.6rem 0.75rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
}

.deal-analysis-chip:hover {
    background: rgba(1, 112, 185, 0.08);
}

.deal-analysis-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.deal-analysis-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.deal-analysis-filter-group--dropdown .deal-analysis-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.85rem;
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid rgba(1, 112, 185, 0.22);
    border-radius: 999px;
    transform: translateY(-50%);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.deal-analysis-filter-group--dropdown .deal-analysis-chip.is-selected {
    background: rgba(1, 112, 185, 0.12);
    color: var(--brand-blue);
}

.deal-analysis-filter-group--dropdown .deal-analysis-chip.is-selected::after {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.12);
}

.deal-analysis-pane {
    display: none;
}

.deal-analysis-pane.is-active {
    display: block;
}

.deal-analysis-results-head {
    margin-bottom: 1rem;
}

.deal-analysis-results-head h2 {
    margin: 0;
}

.deal-analysis-table th,
.deal-analysis-table td {
    vertical-align: top;
}

.deal-analysis-location-cell strong,
.deal-analysis-location strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-main);
    font-weight: 700;
}

.deal-analysis-location-cell span,
.deal-analysis-location span,
.deal-analysis-cards small {
    color: var(--text-muted);
    line-height: 1.45;
}

.deal-analysis-badge,
.deal-analysis-doc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
}

.deal-analysis-badge {
    color: var(--brand-blue);
    background: rgba(1, 112, 185, 0.08);
}

.deal-analysis-doc {
    color: #147a36;
    background: rgba(20, 122, 54, 0.1);
}

.deal-analysis-price {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.deal-analysis-price strong {
    color: var(--text-main);
}

.deal-analysis-price span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.deal-analysis-map__hint {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.deal-analysis-map-card {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
}

.deal-analysis-map-note {
    margin: 0 0 1rem;
    color: #c81e1e;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.deal-analysis-location-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 18px;
    background: rgba(1, 112, 185, 0.05);
}

.deal-analysis-location-prompt[hidden] {
    display: none !important;
}

.deal-analysis-location-prompt__content {
    display: grid;
    gap: 0.25rem;
}

.deal-analysis-location-prompt__content strong {
    color: var(--text-main);
    font-size: 0.98rem;
}

.deal-analysis-location-prompt__content span {
    color: var(--text-muted);
    line-height: 1.45;
}

.deal-analysis-location-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.deal-analysis-map {
    width: 100%;
    height: 560px;
}

.deal-analysis-map-search {
    position: absolute;
    top: 18px;
    left: 72px;
    z-index: 450;
    display: grid;
    grid-template-columns: minmax(280px, 360px) auto;
    gap: 0.75rem;
    align-items: end;
    max-width: min(620px, calc(100% - 320px));
}

.deal-analysis-map-search__dialog {
    display: contents;
}

.deal-analysis-map-search__close {
    display: none;
}

.deal-analysis-map-search__field {
    display: grid;
    gap: 0.45rem;
}

.deal-analysis-map-search__label {
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}

.deal-analysis-map-search__field input {
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(12, 31, 58, 0.08);
}

.deal-analysis-map-search__field input:focus {
    outline: none;
    border-color: rgba(1, 112, 185, 0.48);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
}

.deal-analysis-map-search__button {
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(12, 31, 58, 0.08);
    font-size: 1.85rem;
    line-height: 1;
}

.deal-analysis-map-search .address-suggest-list {
    top: calc(100% + 0.35rem);
    box-shadow: 0 18px 40px rgba(12, 31, 58, 0.14);
}

.deal-analysis-mobile-search {
    display: none;
}

.deal-analysis-mobile-search[hidden] {
    display: none !important;
}

.deal-analysis-map-toolbar {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 450;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: min(220px, calc(100% - 36px));
}

.deal-analysis-map-toolbar__button--search {
    display: none;
}

.deal-analysis-map-toolbar__button {
    min-height: 48px;
}

.deal-analysis-map-toolbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    text-align: center;
    line-height: 1;
}

.deal-analysis-map-toolbar__label {
    display: inline-block;
}

.deal-analysis-map-card:fullscreen,
.deal-analysis-map-card:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    border: 0;
}

.deal-analysis-map-card:fullscreen .deal-analysis-map,
.deal-analysis-map-card:-webkit-full-screen .deal-analysis-map {
    height: 100vh;
}

.deal-analysis-map-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(12, 31, 58, 0.12);
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
}

.deal-analysis-map-status__text {
    min-width: 0;
}

.deal-analysis-map-status .button {
    flex-shrink: 0;
    min-width: 140px;
}

.deal-analysis-selection-summary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(1, 112, 185, 0.12);
    border-radius: 18px;
    background: rgba(1, 112, 185, 0.04);
}

.deal-analysis-selection-summary__content {
    text-align: center;
}

.deal-analysis-selection-summary__label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.deal-analysis-selection-summary strong {
    color: var(--brand-blue-strong);
    font-size: 1.6rem;
    font-weight: 800;
}

.deal-analysis-selection-summary__hint {
    max-width: 540px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: right;
}

.deal-analysis-form {
    width: 100%;
}

.deal-analysis-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.deal-analysis-step-actions--results {
    margin-bottom: 1.5rem;
}

.deal-analysis-map .leaflet-control-layers {
    border: 1px solid rgba(1, 112, 185, 0.14);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(12, 31, 58, 0.12);
}

.deal-analysis-map .leaflet-control-layers-expanded {
    padding: 0.8rem 0.95rem;
    min-width: 220px;
}

.deal-analysis-map .leaflet-control-layers-base label,
.deal-analysis-map .leaflet-control-layers-overlays label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.deal-analysis-map-card__loading,
.deal-analysis-map-empty {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.deal-analysis-map-empty[hidden],
.deal-analysis-map-card__loading[hidden] {
    display: none;
}

.deal-analysis-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(1, 112, 185, 0.12);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: deal-analysis-spin 0.9s linear infinite;
}

.deal-analysis-popup {
    min-width: 220px;
}

.deal-analysis-popup strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-main);
    font-size: 1rem;
}

.deal-analysis-popup > span {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.deal-analysis-popup dl {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.deal-analysis-popup dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.deal-analysis-popup dt,
.deal-analysis-popup dd {
    margin: 0;
}

.deal-analysis-popup dt {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.deal-analysis-popup dd {
    color: var(--text-main);
    font-weight: 700;
}

.deal-analysis-submit-modal {
    z-index: 96;
}

.deal-analysis-submit-modal__dialog {
    padding: 1.55rem;
}

.deal-analysis-submit-modal__content {
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.deal-analysis-submit-modal__spinner {
    width: 2.4rem;
    height: 2.4rem;
}

.deal-analysis-submit-modal__content h2 {
    margin: 0 0 0.45rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
}

.deal-analysis-submit-modal__content p {
    margin: 0;
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.6;
}

.deal-analysis-form.is-submitting .deal-analysis-step-actions .button {
    pointer-events: none;
    opacity: 0.72;
}

@keyframes deal-analysis-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .deal-analysis-stepper {
        grid-template-columns: 1fr;
    }

    .deal-analysis-filter-grid,
    .deal-analysis-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .deal-analysis-selection-summary {
        flex-direction: column;
        align-items: center;
    }

    .deal-analysis-selection-summary__hint {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .deal-analysis-stepper {
        display: none;
    }

    .deal-analysis-filter-grid,
    .deal-analysis-stats-grid,
    .deal-analysis-filter-groups {
        grid-template-columns: 1fr;
    }

    .deal-analysis-range-field__inputs {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.55rem;
    }

    .deal-analysis-chip-list {
        gap: 0.55rem;
    }

    .deal-analysis-chip {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
    }

    .deal-analysis-filter-group--dropdown .deal-analysis-chip-list {
        max-height: 240px;
    }

    .deal-analysis-map-card,
    .deal-analysis-map {
        min-height: calc(100dvh - 86px);
        height: calc(100dvh - 86px);
    }

    .deal-analysis-page--map-step .app-main,
    .deal-analysis-page--filters-step .app-main,
    .deal-analysis-page--results-step .app-main {
        padding: 0;
    }

    .deal-analysis-page--map-step .page-header,
    .deal-analysis-page--filters-step .page-header,
    .deal-analysis-page--results-step .page-header {
        padding: 1rem 1rem 0;
        margin-bottom: 0.85rem;
    }

    .deal-analysis-page--map-step .deal-analysis-panel {
        padding: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        background: transparent;
        box-shadow: none;
    }

    .deal-analysis-page--map-step .panel__header--stacked {
        gap: 0;
    }

    .deal-analysis-page--map-step .notice {
        margin: 0 1rem 1rem;
    }

    .deal-analysis-map-note {
        margin: 0 1rem 1rem;
        font-size: 0.94rem;
    }

    .deal-analysis-location-prompt {
        flex-direction: column;
        align-items: stretch;
        margin: 0 1rem 1rem;
        padding: 0.9rem 1rem;
    }

    .deal-analysis-location-prompt__actions {
        justify-content: stretch;
    }

    .deal-analysis-location-prompt__actions .button {
        width: 100%;
    }

    .deal-analysis-page--map-step .deal-analysis-map-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .deal-analysis-page--filters-step .deal-analysis-panel,
    .deal-analysis-page--results-step .deal-analysis-summary,
    .deal-analysis-page--results-step .deal-analysis-panel {
        padding: 1rem;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .deal-analysis-page--results-step .deal-analysis-summary,
    .deal-analysis-page--results-step .deal-analysis-panel {
        margin-bottom: 0.85rem;
    }

    .deal-analysis-map-search--desktop {
        display: none !important;
    }

    .deal-analysis-mobile-search {
        position: fixed;
        inset: 0;
        z-index: 1600;
        display: none;
        padding: 1rem;
        pointer-events: none;
    }

    .deal-analysis-mobile-search.is-open {
        display: block;
        pointer-events: auto;
    }

    .deal-analysis-mobile-search__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(12, 31, 58, 0.28);
        backdrop-filter: blur(6px);
    }

    .deal-analysis-mobile-search__dialog {
        position: relative;
        z-index: 1;
        width: min(100%, 480px);
        max-height: calc(100dvh - 2rem);
        margin: 0 auto;
        padding: 1rem;
        border: 1px solid rgba(1, 112, 185, 0.14);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.99);
        box-shadow: 0 24px 60px rgba(12, 31, 58, 0.22);
        overflow: auto;
    }

    .deal-analysis-mobile-search__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .deal-analysis-mobile-search__header strong {
        color: var(--text-main);
        font-family: "Montserrat", sans-serif;
        font-size: 1rem;
        font-weight: 800;
    }

    .deal-analysis-mobile-search__field {
        display: block;
    }

    .deal-analysis-mobile-search__field input {
        display: block;
        width: 100%;
        min-height: 50px;
        padding: 0 1rem;
        border: 1px solid rgba(1, 112, 185, 0.14);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: none;
    }

    .deal-analysis-mobile-search__field input:focus {
        outline: none;
        border-color: rgba(1, 112, 185, 0.48);
        box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.08);
    }

    .deal-analysis-mobile-search__submit,
    .deal-analysis-mobile-search__close {
        min-height: 48px;
    }

    .deal-analysis-mobile-search__close {
        min-width: 48px;
        padding: 0;
        font-size: 1.8rem;
        line-height: 1;
    }

    .deal-analysis-mobile-search__submit {
        width: 100%;
        margin-top: 0.85rem;
    }

    .deal-analysis-map-toolbar {
        top: 12px;
        right: 12px;
        left: auto;
        width: auto;
        gap: 0.5rem;
    }

    .deal-analysis-map-toolbar__button--search {
        display: inline-flex;
    }

    .deal-analysis-map-toolbar__button {
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 14px;
    }

    .deal-analysis-map-toolbar__icon {
        width: 1.25rem;
        font-size: 1.1rem;
    }

    .deal-analysis-map-toolbar__label {
        display: none;
    }

    .deal-analysis-mobile-search .address-suggest-list {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-height: min(50vh, 340px);
        overflow: auto;
        margin-top: 0.75rem;
        box-shadow: none;
    }

    .deal-analysis-map-status {
        left: 12px;
        right: 12px;
        bottom: 12px;
        align-items: stretch;
        flex-direction: column;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .deal-analysis-map-status .button {
        width: 100%;
        min-width: 0;
    }

    .deal-analysis-page--filters-step .deal-analysis-selection-summary__content {
        width: 100%;
        text-align: center;
    }

    .deal-analysis-page--results-step .panel__header--between {
        align-items: flex-start;
        flex-direction: column;
    }

    .deal-analysis-page--results-step .deal-analysis-summary__caption {
        white-space: normal;
    }
}
