:root {
    --bg: #060816;
    --bg-soft: rgba(16, 24, 48, 0.78);
    --panel: rgba(11, 18, 38, 0.86);
    --panel-strong: #101933;
    --panel-elevated: #151f3f;
    --border: rgba(126, 154, 255, 0.16);
    --border-strong: rgba(126, 154, 255, 0.26);
    --text: #ecf3ff;
    --text-muted: #96a7cf;
    --accent: #5f8cff;
    --accent-2: #6de2ff;
    --success: #53d7ac;
    --danger: #ff708a;
    --shadow: 0 24px 80px rgba(5, 10, 24, 0.45);
    --shadow-soft: 0 16px 40px rgba(3, 7, 20, 0.25);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --sidebar-width: 290px;
    --content-width: 1440px;
}

html[data-theme-active="light"] {
    --bg: #eef3fb;
    --bg-soft: rgba(255, 255, 255, 0.9);
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --panel-elevated: #f6f8fc;
    --border: rgba(27, 43, 91, 0.1);
    --border-strong: rgba(27, 43, 91, 0.16);
    --text: #14203b;
    --text-muted: #5f6f95;
    --shadow: 0 24px 80px rgba(93, 109, 149, 0.18);
    --shadow-soft: 0 16px 40px rgba(93, 109, 149, 0.12);
}

html,
body {
    min-height: 100%;
}

body.app-body {
    margin: 0;
    font-family: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(95, 140, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(109, 226, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #050814 0%, #07101f 38%, #091425 100%);
    position: relative;
}

html[data-theme-active="light"] body.app-body {
    background:
        radial-gradient(circle at top left, rgba(95, 140, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(109, 226, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #f4f8ff 0%, #edf2fb 44%, #e6edf8 100%);
}

h1,
h2,
h3,
h4,
.navbar-brand,
.app-brand__text,
.public-brand__text,
.landing-copy__title,
.app-header__title {
    font-family: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
    letter-spacing: normal;
}

a {
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}

.app-aurora {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.app-aurora__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.6;
}

.app-aurora__orb--primary {
    width: 32rem;
    height: 32rem;
    top: -10rem;
    left: -8rem;
    background: rgba(95, 140, 255, 0.26);
}

.app-aurora__orb--secondary {
    width: 24rem;
    height: 24rem;
    right: -5rem;
    top: 8rem;
    background: rgba(109, 226, 255, 0.2);
}

.app-aurora__grid {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.06;
}

.app-body > *:not(.app-aurora) {
    position: relative;
    z-index: 1;
}

.btn,
.public-nav__link,
.app-nav-link,
.app-account-link,
.public-language-switch__button {
    border-radius: 999px;
}

.btn {
    font-weight: 700;
    border: 1px solid transparent;
    padding: 13px 22px;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #071121;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #071121;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(95, 140, 255, 0.32);
}

.btn-default,
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn-default:hover,
.btn-default:focus,
.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.badge {
    background: transparent;
    color: var(--text);
    font-size: 1.4rem;
    padding: 0;
}

.well,
.content-card,
.landing-auth-card,
.order-note-card,
.order-result-followup,
.landing-highlight-card,
.landing-step-card {
    background: linear-gradient(180deg, rgba(15, 25, 49, 0.92) 0%, rgba(9, 16, 34, 0.92) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.well {
    padding: 20px;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 16px 18px;
}

.alert-danger {
    background: rgba(255, 112, 138, 0.12);
    border-color: rgba(255, 112, 138, 0.25);
}

.alert-success {
    background: rgba(83, 215, 172, 0.12);
    border-color: rgba(83, 215, 172, 0.24);
}

.form-control,
.input-group .form-control,
select.form-control,
textarea.form-control,
.panel-body {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 18px;
    box-shadow: none;
}

.form-control {
    min-height: 52px;
    padding: 14px 18px;
}

.panel-body {
    padding: 18px;
}

.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: rgba(109, 226, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 140, 255, 0.12);
}

.control-label,
label {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.help-block,
small,
.text-muted,
.forgot-password,
.landing-auth-card__switch,
.pull-right-middle {
    color: var(--text-muted);
}

.forgot-password {
    position: static;
    display: inline-flex;
    margin-top: 10px;
}

.table {
    color: var(--text);
    margin-bottom: 0;
}

.table > thead > tr > th,
.table > tbody > tr > td {
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table > thead > tr > th {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    padding-top: 0;
    padding-bottom: 18px;
}

.table > tbody > tr > td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.pagination > li > a,
.pagination > li > span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    margin: 0 6px;
    border-radius: 999px;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #071121;
}

.nav-pills,
.nav.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.nav-pills > li,
.nav.nav-pills > li {
    float: none;
}

.nav-pills > li > a,
.nav.nav-pills > li > a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-muted);
    padding: 11px 16px;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus,
.nav.nav-pills > li.active > a,
.nav.nav-pills > li.active > a:hover,
.nav.nav-pills > li.active > a:focus {
    background: rgba(95, 140, 255, 0.18);
    border-color: rgba(109, 226, 255, 0.24);
    color: var(--text);
}

.dropdown-menu {
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    background: rgba(10, 16, 32, 0.96);
    box-shadow: var(--shadow-soft);
}

.dropdown-menu > li > a,
.dropdown-item {
    color: var(--text-muted);
    border-radius: 12px;
    padding: 10px 14px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.input-group-btn > .btn {
    min-height: 52px;
}

.frontend-hidden {
    display: none !important;
}

.frontend-empty {
    opacity: 0.7;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    padding: 10px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
}

.app-sidebar__inner {
    height: 100%;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 17, 35, 0.96) 0%, rgba(8, 14, 28, 0.96) 100%);
    border-radius: 24px;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.app-brand,
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--text);
}

.app-brand img,
.public-brand img {
    max-height: 42px;
    width: auto;
}

.app-brand__mark,
.public-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(95, 140, 255, 0.24), rgba(109, 226, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.8rem;
}

.app-brand__text,
.public-brand__text {
    font-size: 1.6rem;
}

.app-sidebar__section-label {
    margin: 20px 8px 10px;
    color: var(--text-muted);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.app-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-nav-link,
.app-account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    color: var(--text-muted);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.app-nav-link:hover,
.app-account-link:hover,
.app-nav-link.is-active,
.app-account-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.app-nav-link.is-active {
    background: linear-gradient(135deg, rgba(95, 140, 255, 0.18), rgba(109, 226, 255, 0.08));
    border-color: rgba(109, 226, 255, 0.24);
}

.app-nav-link__icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: var(--accent-2);
}

.app-sidebar__footer {
    margin-top: auto;
    padding-top: 14px;
    display: grid;
    gap: 10px;
}

.app-header__chip-label,
.app-header__eyebrow,
.landing-copy__eyebrow,
.landing-auth-card__badge,
.order-note-card__header span {
    display: inline-flex;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.app-account-links {
    display: grid;
    gap: 8px;
}

.app-main-shell {
    width: 100%;
    margin-left: var(--sidebar-width);
    padding: 14px 14px 20px;
}

.app-body-rtl .app-sidebar {
    left: auto;
    right: 0;
}

.app-body-rtl .app-main-shell {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

.app-header {
    max-width: var(--content-width);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.app-header__title-group,
.app-header__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-header__title {
    margin: 4px 0 0;
    font-size: 3rem;
    line-height: 1;
}

.app-header__chip {
    border: 1px solid var(--border);
    background: rgba(10, 16, 32, 0.78);
    border-radius: 16px;
    min-height: 42px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    min-width: 124px;
}

.app-header__control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon-button {
    min-width: 108px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.app-icon-button__label {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 800;
}

.app-icon-button__value {
    font-weight: 700;
    color: var(--text);
}

.app-control-menu {
    min-width: 180px;
}

.app-control-menu > li > a,
.app-control-menu__action {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 12px;
    padding: 10px 14px;
}

.app-control-menu > li > a:hover,
.app-control-menu__action:hover,
.app-control-menu__action:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.app-account-panel {
    position: relative;
}

.app-account-toggle {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 16px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.app-account-toggle__identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-account-toggle__avatar {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(95, 140, 255, 0.2), rgba(109, 226, 255, 0.16));
    font-weight: 800;
}

.app-account-toggle__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-account-toggle__text small {
    color: var(--text-muted);
}

.app-account-toggle__caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
}

.app-account-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    margin-top: 0;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-strong);
    box-shadow: var(--shadow-soft);
    z-index: 20;
}

.app-account-panel.is-open .app-account-menu {
    display: grid;
}

.app-account-panel.is-open .app-account-toggle__caret {
    transform: rotate(45deg);
    margin-top: 4px;
}

.app-header__chip strong {
    font-size: 1.4rem;
}

.app-header__chip--accent {
    background: linear-gradient(135deg, rgba(95, 140, 255, 0.2), rgba(109, 226, 255, 0.1));
}

.app-theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    position: relative;
}

.app-theme-toggle__icon {
    position: absolute;
    font-size: 1.7rem;
    line-height: 1;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-theme-toggle__icon--sun {
    opacity: 0;
    transform: scale(0.8) rotate(-20deg);
}

.app-theme-toggle__icon--moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.app-theme-toggle.is-light .app-theme-toggle__icon--sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.app-theme-toggle.is-light .app-theme-toggle__icon--moon {
    opacity: 0;
    transform: scale(0.8) rotate(20deg);
}

html[data-theme-active="light"] .well,
html[data-theme-active="light"] .content-card,
html[data-theme-active="light"] .landing-auth-card,
html[data-theme-active="light"] .order-note-card,
html[data-theme-active="light"] .landing-copy,
html[data-theme-active="light"] .landing-section,
html[data-theme-active="light"] .app-sidebar__inner,
html[data-theme-active="light"] .app-header__chip,
html[data-theme-active="light"] .app-icon-button,
html[data-theme-active="light"] .app-account-toggle,
html[data-theme-active="light"] .app-account-menu,
html[data-theme-active="light"] .public-header__inner,
html[data-theme-active="light"] .dropdown-menu,
html[data-theme-active="light"] .modal-content {
    background: #ffffff;
    color: var(--text);
}

html[data-theme-active="light"] .form-control,
html[data-theme-active="light"] .input-group .form-control,
html[data-theme-active="light"] select.form-control,
html[data-theme-active="light"] textarea.form-control,
html[data-theme-active="light"] .panel-body,
html[data-theme-active="light"] .nav-pills > li > a,
html[data-theme-active="light"] .nav.nav-pills > li > a,
html[data-theme-active="light"] .search-dropdown .input-wrapper button,
html[data-theme-active="light"] .input-group-btn .btn,
html[data-theme-active="light"] .table tbody tr:hover td {
    background: #f5f8fe;
    color: var(--text);
}

html[data-theme-active="light"] .btn-default,
html[data-theme-active="light"] .btn-ghost,
html[data-theme-active="light"] .public-nav__link,
html[data-theme-active="light"] .public-language-switch__button,
html[data-theme-active="light"] .app-nav-link,
html[data-theme-active="light"] .app-account-link,
html[data-theme-active="light"] .app-theme-toggle {
    background: #f5f8fe;
    color: var(--text-muted);
}

html[data-theme-active="light"] .app-nav-link.is-active,
html[data-theme-active="light"] .app-account-link.is-active,
html[data-theme-active="light"] .public-nav__link.is-active {
    background: rgba(95, 140, 255, 0.14);
    color: var(--text);
}

.well,
.content-card,
.landing-auth-card,
.order-note-card,
.app-sidebar__inner,
.public-header__inner,
.landing-copy,
.landing-section,
.dropdown-menu,
.form-control,
select.form-control,
textarea.form-control,
.app-icon-button,
.app-account-toggle,
.app-account-menu,
.app-header__chip,
.public-nav__link,
.public-language-switch__button,
.nav-pills > li > a,
.nav.nav-pills > li > a,
.modal-content,
.app-theme-toggle {
    border-color: var(--border);
    border-radius: 16px;
}

.app-main-content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.app-main-content > .container,
.app-main-content > .container-fluid {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.app-shell__overlay,
.public-nav-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(2, 6, 18, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.app-mobile-toggle,
.public-nav-toggle {
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
}

.app-mobile-toggle span,
.public-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 10px 10px 0;
}

.public-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 15, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 8px 12px;
    box-shadow: var(--shadow-soft);
}

.public-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-nav {
    margin-left: auto;
}

.public-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.public-nav__link,
.public-language-switch__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    color: var(--text-muted);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.public-nav__link:hover,
.public-nav__link.is-active,
.public-language-switch__button:hover,
.public-language-switch.open > .public-language-switch__button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.public-main {
    padding: 12px 10px 24px;
}

.landing-hero,
.landing-section {
    max-width: 1280px;
    margin: 0 auto 12px;
}

.landing-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 12px;
    align-items: start;
}

.landing-copy {
    padding: 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 15, 31, 0.82) 0%, rgba(9, 17, 34, 0.78) 100%);
    box-shadow: var(--shadow);
}

.landing-copy__title {
    font-size: 4.2rem;
    line-height: 0.94;
    margin: 12px 0 12px;
    max-width: 10ch;
}

.landing-copy__text,
.landing-auth-card__intro p,
.landing-step-card p,
.landing-highlight-card span,
.landing-section__intro p,
.order-note-list,
.order-result-followup p {
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1.75;
}

.landing-copy__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-hero {
    min-width: 180px;
}

.landing-highlight-grid,
.landing-step-grid,
.landing-pill-grid {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

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

.landing-highlight-card,
.landing-step-card {
    padding: 22px;
}

.landing-highlight-card strong,
.landing-step-card h3,
.landing-auth-card__intro h2,
.landing-section__intro h2,
.order-note-card__header h3,
.order-result-followup h3 {
    display: block;
    margin: 10px 0 10px;
    font-size: 2.2rem;
}

.landing-auth-card {
    padding: 18px;
    position: sticky;
    top: 104px;
}

.landing-auth-card__intro {
    margin-bottom: 14px;
}

.landing-auth-card__badge {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(109, 226, 255, 0.24);
    background: rgba(109, 226, 255, 0.08);
}

.landing-auth-card .form-inline-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.landing-auth-card__switch,
.social-signin-block {
    display: inline-flex;
    margin-top: 10px;
}

.landing-section {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(8, 14, 28, 0.62);
}

.landing-section--muted {
    background: rgba(9, 15, 31, 0.82);
}

.landing-section__intro {
    max-width: 760px;
    margin-bottom: 22px;
}

.landing-pill-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.landing-pill-grid span {
    display: inline-flex;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 700;
}

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

.landing-step-card__index {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(95, 140, 255, 0.14);
    border: 1px solid rgba(95, 140, 255, 0.22);
    font-weight: 700;
    color: var(--accent-2);
}

.landing-section--content .content-card {
    padding: 28px;
}

.order-page-shell {
    padding-top: 8px;
}

.order-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 12px;
    align-items: start;
}

.order-form-surface,
.order-note-card,
.order-result-followup {
    overflow: hidden;
}

.order-form-surface .form-group + .form-group,
.order-form-surface #fields > .form-group,
.order-form-surface #fields > div {
    margin-top: 12px;
}

.order-note-card {
    margin-bottom: 12px;
}

.order-note-card__header {
    margin-bottom: 14px;
}

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

.order-note-list li + li {
    margin-top: 10px;
}

.order-result-followup {
    margin-top: 18px;
}

.service-description__th,
.service-description {
    max-width: 360px;
}

.well-float,
.order-form-surface,
.order-note-card,
.order-result-followup,
.modal-content {
    box-shadow: var(--shadow-soft);
}

.search-dropdown .input-wrapper button,
.input-group-btn .btn {
    background: transparent;
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.08);
}

.table tbody tr:first-child td {
    border-top: 0;
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.width-40,
.service-name {
    word-break: break-word;
}

.modal-content {
    background: linear-gradient(180deg, rgba(10, 16, 32, 0.98) 0%, rgba(11, 18, 34, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.close {
    opacity: 0.72;
    color: var(--text);
}

.close:hover,
.close:focus {
    opacity: 1;
    color: var(--text);
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .landing-hero__content,
    .order-page-layout {
        grid-template-columns: 1fr;
    }

    .landing-auth-card {
        position: static;
    }

    .landing-highlight-grid,
    .landing-step-grid {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        transform: translateX(calc(-100% - 30px));
        transition: transform 0.24s ease;
    }

    .app-main-shell {
        margin-left: 0;
        margin-right: 0;
    }

    .app-mobile-toggle {
        display: inline-flex;
    }

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

    body.sidebar-open .app-shell__overlay {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 991px) {
    .public-nav-toggle {
        display: inline-flex;
    }

    .public-nav {
        position: fixed;
        top: 92px;
        right: 18px;
        left: 18px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 35;
    }

    .public-nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(8, 14, 28, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        box-shadow: var(--shadow-soft);
    }

    .public-nav__link {
        width: 100%;
        justify-content: flex-start;
    }

    body.public-nav-open {
        overflow: hidden;
    }

    body.public-nav-open .public-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    body.public-nav-open .public-nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .app-header,
    .public-header__inner {
        gap: 14px;
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
    }

.app-header__meta {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .public-main,
    .app-main-shell,
    .public-header,
    .app-sidebar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-sidebar {
        width: 92vw;
        max-width: 310px;
    }

    .public-header__inner,
    .landing-copy,
    .landing-auth-card,
    .landing-section,
    .well {
        border-radius: 24px;
    }

    .landing-copy,
    .landing-section,
    .landing-auth-card,
    .well {
        padding: 16px;
    }

    .landing-copy__title {
        font-size: 2.8rem;
    }

    .landing-copy__actions {
        flex-direction: column;
    }

    .btn,
    .btn-hero,
    .btn-ghost,
    .btn-block-sm {
        width: 100%;
    }

    .landing-auth-card .form-inline-auth {
        flex-direction: column;
        align-items: stretch;
    }

    .app-header__meta {
        flex-direction: column;
    }

    .app-header__control-group {
        width: 100%;
    }

    .app-icon-button {
        min-width: 0;
        width: 100%;
    }

    .app-header__chip {
        width: 100%;
    }

    .nav-pills,
    .nav.nav-pills {
        flex-direction: column;
    }

    .nav-pills > li.search,
    .nav.nav-pills > li.search {
        width: 100%;
    }

    .nav-pills > li.search .input-group,
    .nav.nav-pills > li.search .input-group {
        width: 100%;
    }
}
