:root {
    /* BulkMedya-style light theme (default) */
  	--bg-white: #ffffff;
    --bg: #f8f8f8;
    --bg-soft: #f0f4fb;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --panel-elevated: #edf2fa;
    --panel-muted: rgba(19, 31, 55, 0.04);
  	--button-active-shadow: 0 2px 4px 0 #0000000a,0 1px 2px 0 #0000000f,0 0 1px 0 #0000000f;
    --border: rgba(17, 24, 39, 0.08);
    --border-strong: rgba(17, 24, 39, 0.14);
    --text: #141b2d;
    --text-muted: rgba(46, 58, 84, 0.72);
    --accent: #2f6bff;
    --accent-2: #1d4ed8;
    --accent-rgb: 47, 107, 255;
    --accent-soft-bg: rgba(var(--accent-rgb), 0.1);
    --accent-soft-bg-strong: rgba(var(--accent-rgb), 0.14);
    --accent-soft-border: rgba(var(--accent-rgb), 0.24);
    --accent-soft-border-strong: rgba(var(--accent-rgb), 0.3);
    --accent-soft-gradient: linear-gradient(135deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.12));
    --accent-soft-gradient-strong: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.16));
    --accent-soft-text: #eff6ff;
    --btn-primary-bg: #0a0d12;
    --btn-primary-bg-hover: #111827;
    --btn-primary-text: #ffffff;
    --surface-gradient-light: #ffffff; /* linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 253, 0.98) 100%); */
    --surface-muted-light: rgba(15, 23, 42, 0.03);
    /* --surface-muted-light-strong: rgba(15, 23, 42, 0.07);*/
    --surface-muted-light-strong: rgba(255, 255, 255, 1);
    --public-surface-gradient: var(--surface-gradient-light);
    --public-section-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 253, 0.96) 100%);
    --public-hero-gradient: radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.24) 0%, rgba(96, 165, 250, 0) 34%), radial-gradient(circle at 82% 20%, rgba(125, 211, 252, 0.18) 0%, rgba(125, 211, 252, 0) 28%), linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(245, 248, 253, 0.42) 100%);
    --public-surface-muted: rgba(15, 23, 42, 0.05);
    --public-surface-muted-strong: rgba(15, 23, 42, 0.09);
    --success: #198754;
    --danger: #dc3545;
    --ring: 0 0 0 1px rgba(0, 0, 0, 0.07);
    --ring-focus: 0 0 0 2px rgba(0, 0, 0, 0.15);
    --shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 0 0 1px rgba(0, 0, 0, 0.07);
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --sidebar-width: 256px;
    --content-width: 1440px;
    --font: "Inter", "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme-active="dark"],
[data-theme-active="dark"] {
    --bg: #101217;
    --bg-soft: #0b0d12;
    --panel: #141924;
    --panel-strong: #171d2a;
    --panel-elevated: #1d2432;
    --panel-muted: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-muted: rgba(231, 236, 244, 0.68);
    --accent: #69a5ff;
    --accent-2: #94bfff;
    --accent-rgb: 105, 165, 255;
    --btn-primary-bg: #f4f7fb;
    --btn-primary-bg-hover: #ffffff;
    --btn-primary-text: #111827;
    --public-surface-gradient: linear-gradient(180deg, rgba(19, 24, 35, 0.98) 0%, rgba(13, 17, 25, 0.98) 100%);
    --public-section-gradient: linear-gradient(180deg, rgba(17, 22, 33, 0.94) 0%, rgba(12, 16, 24, 0.96) 100%);
    --public-hero-gradient: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.24) 0%, rgba(96, 165, 250, 0) 34%), radial-gradient(circle at 82% 18%, rgba(125, 211, 252, 0.18) 0%, rgba(125, 211, 252, 0) 28%), linear-gradient(180deg, rgba(16, 21, 31, 0.22) 0%, rgba(16, 21, 31, 0.02) 100%);
    --public-surface-muted: rgba(255, 255, 255, 0.04);
    --public-surface-muted-strong: rgba(255, 255, 255, 0.08);
    --ring: 0 0 0 1px rgba(255, 255, 255, 0.1);
    --ring-focus: 0 0 0 2px rgba(59, 130, 246, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

body.app-body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    position: relative;
}

html[data-theme-active="dark"] body.app-body {
    background: var(--bg);
}

h1,
h2,
h3,
h4,
.navbar-brand,
.app-brand__text,
.public-brand__text,
.landing-copy__title,
.app-header__title {
    font-family: var(--font);
    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 {
    display: none !important;
}

.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;
}

.btn,
.public-nav__link,
.app-nav-link,
.app-account-link,
.public-language-switch__button {
    border-radius: var(--radius-lg);
}

.btn {
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    box-shadow: var(--ring);
    border-radius: var(--radius-lg);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn-primary {
    background: var(--btn-primary-bg);
    border-color: transparent;
    color: var(--btn-primary-text);
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--btn-primary-bg-hover);
    color: var(--btn-primary-text);
    box-shadow: none;
    transform: none;
}

.landing-copy__actions .btn-primary,
.landing-auth-card .btn-primary {
    border-radius: 999px;
    box-shadow: none;
}

.btn-default,
.btn-ghost {
    background: var(--panel);
    border: none;
    box-shadow: var(--ring);
    color: var(--text);
}

.btn-default:hover,
.btn-default:focus,
.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--panel-elevated);
    box-shadow: var(--ring);
    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 {
    background: var(--panel);

    border-radius: var(--radius-lg);
    box-shadow: var(--button-active-shadow);
}

.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: var(--panel);
    border: none;
    box-shadow: var(--ring);
    color: var(--text);
    border-radius: var(--radius-lg);
}

.form-control {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font);
}

.panel-body {
    padding: 16px;
}

.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border: none;
    box-shadow: var(--ring-focus);
    outline: none;
}

.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;
    font-size: 0.8rem;
    margin-top: 10px;
}

.forgot-password:hover {
    color: var(--accent);
}

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

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

.table > thead > tr > th {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    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;
}

html[data-theme-active="light"] .pagination > li > a,
html[data-theme-active="light"] .pagination > li > span {
    background: var(--surface-muted-light);
    border-color: var(--border);
}

.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;
}

html[data-theme-active="light"] .nav-pills > li > a,
html[data-theme-active="light"] .nav.nav-pills > li > a {
    background: var(--surface-muted-light);
    border-color: var(--border);
}

.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);
}

html[data-theme-active="light"] .nav-pills > li.active > a,
html[data-theme-active="light"] .nav-pills > li.active > a:hover,
html[data-theme-active="light"] .nav-pills > li.active > a:focus,
html[data-theme-active="light"] .nav.nav-pills > li.active > a,
html[data-theme-active="light"] .nav.nav-pills > li.active > a:hover,
html[data-theme-active="light"] .nav.nav-pills > li.active > a:focus {
    background: var(--accent-soft-bg);
    border-color: var(--accent-soft-border);
    color: var(--text);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    min-width: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
    margin-top: 8px; /* Slight offset since it doesn't have top: calc(100% + 10px) inherently overridden */
}

.open > .dropdown-menu,
.show > .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.18s ease forwards;
}

.dropdown-menu-right {
    right: 0 !important;
    left: auto !important;
}

.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,
.dropdown-menu > li.active > a,
.dropdown-menu > li.active > a:hover,
.dropdown-menu > li.active > a:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

html[data-theme-active="light"] .dropdown-menu > li > a:hover,
html[data-theme-active="light"] .dropdown-menu > li > a:focus,
html[data-theme-active="light"] .dropdown-item:hover,
html[data-theme-active="light"] .dropdown-item:focus,
html[data-theme-active="light"] .dropdown-menu > li.active > a,
html[data-theme-active="light"] .dropdown-menu > li.active > a:hover,
html[data-theme-active="light"] .dropdown-menu > li.active > a:focus {
    background: var(--surface-muted-light-strong);
    color: var(--text);
}

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

.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: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

.app-sidebar__inner {
    height: 100%;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-brand {
width: 100%;
}
.app-brand,
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

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

.app-brand__mark,
.public-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.app-brand__text,
.public-brand__text {
    font-size: 16px;
    font-weight: 600;
}

.app-sidebar__section-label {
    display: none;
}

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

.app-nav-link,
.app-account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: var(--text-muted);
    border: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s, color 0.15s;
}

.app-nav-link:hover,
.app-account-link:hover {
    color: var(--text);
    background: var(--panel-muted);
    border: 0;
    transform: none;
}

.app-nav-link.is-active,
.app-account-link.is-active {
    color: var(--text);
    background: var(--surface-muted-light-strong);
    border: 0;
    border-left: 3px solid var(--text);
    padding-left: 9px;
    transform: none;
 	box-shadow: var(--button-active-shadow);
}

.app-nav-link__icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: inherit;
    opacity: 0.75;
    font-size: 16px;
}

.app-sidebar__footer {
    margin-top: auto;
    padding: 8px;
    border-top: 1px solid var(--border);
}

.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: 0;
  position: relative;
}

.app-main-shell__topbar {
    display: flex;    padding-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    right: 0;
    padding: 16px 20px;
    margin-left: var(--sidebar-width);
}

.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 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

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

.app-header__title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-muted);
}

.app-header__title .app-header__stat-value {
    color: var(--accent);
    font-weight: 600;
}

.app-header__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 4px;
}

.app-header__chip-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    text-transform: none;
}

.app-header__chip-value {
    font-weight: 600;
    color: var(--accent);
}

.app-header__search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.app-header__search {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px 8px 36px;
    color: var(--text);
    font-size: 13px;
    min-width: 240px;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.app-header__search:focus {
    box-shadow: var(--ring-focus);
    border-color: var(--accent);
}

.app-header__search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 13px;
}

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

.app-icon-button {
    min-width: auto;
    min-height: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: var(--button-active-shadow);
    color: var(--text-muted);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 999px;
    transition: background 0.15s;

}

.app-icon-button:hover {
    background: var(--panel-muted);
    color: var(--text);
}

.app-icon-button__label,
.app-icon-button__value {
    display: none;
}

.app-control-menu {
    min-width: 120px;
    right: 0 !important;
    left: auto !important;
}

.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;
    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);
}

/* Dark mode overrides */
html[data-theme-active="dark"] .well,
html[data-theme-active="dark"] .content-card,
html[data-theme-active="dark"] .order-note-card,
html[data-theme-active="dark"] .public-header__inner,
html[data-theme-active="dark"] .dropdown-menu,
html[data-theme-active="dark"] .modal-content {
    background: #1c1c1c;
    color: var(--text);
}

html[data-theme-active="dark"] .landing-copy {
    background: var(--public-hero-gradient);
    color: var(--text);
}

html[data-theme-active="dark"] .landing-auth-card {
    background: var(--public-surface-gradient);
    color: var(--text);
}

html[data-theme-active="dark"] .landing-section,
html[data-theme-active="dark"] .auth-shell__panel {
    background: var(--public-section-gradient);
    color: var(--text);
}

html[data-theme-active="dark"] .auth-card {
    background: var(--public-surface-gradient);
    color: var(--text);
}

html[data-theme-active="dark"] .landing-section--muted {
    background: var(--public-surface-gradient);
}

html[data-theme-active="dark"] .app-header__search,
html[data-theme-active="dark"] .app-account-toggle,
html[data-theme-active="dark"] .app-account-menu,
html[data-theme-active="dark"] .form-control,
html[data-theme-active="dark"] .input-group .form-control,
html[data-theme-active="dark"] select.form-control,
html[data-theme-active="dark"] textarea.form-control,
html[data-theme-active="dark"] .panel-body {
    background: #1c1c1c;
    color: var(--text);
}

html[data-theme-active="dark"] .app-sidebar {
    background: #141414;
    border-right-color: var(--border);
}

html[data-theme-active="dark"] .app-nav-link.is-active,
html[data-theme-active="dark"] .app-account-link.is-active {
    border-left-color: rgba(255, 255, 255, 0.8);
}

html[data-theme-active="dark"] .app-account-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.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-radius: var(--radius-lg);
}

.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;
}

.public-header__inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 15, 30, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0px 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 var(--space-4);
}

.landing-hero {
    position: relative;
    padding: var(--space-7) 0 0;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: min(520px, 90%);
    border-radius: 32px;
    background: var(--public-hero-gradient);
    pointer-events: none;
}

.landing-hero__content,
.auth-shell__layout {
    display: grid;
    gap: var(--space-4);
    align-items: start;
}

.landing-hero__content {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
}

.landing-copy {
    min-height: 100%;
    padding: calc(var(--space-7) + var(--space-2)) var(--space-6) var(--space-6) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.landing-copy__title {
    font-size: clamp(4.8rem, 7vw, 7.2rem);
    line-height: 0.92;
    margin: 12px 0 12px;
    max-width: 16ch;
    background: linear-gradient(135deg, #8ab8ff 0%, var(--accent) 42%, #1fb6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.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;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.landing-copy__actions--center {
    justify-content: center;
}

.landing-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.landing-inline-link::after {
    content: "\2192";
    font-size: 1.4rem;
}

.landing-inline-link:hover,
.landing-inline-link:focus {
    color: var(--accent);
}

.landing-copy__note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-5);
}

.landing-copy__note span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text);
    font-weight: 600;
}

.landing-copy__note span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.14);
}

.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 {
    min-width: 0;
    padding: var(--space-6);
    position: sticky;
    top: 96px;
    align-self: start;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: 32px;
    background: var(--public-surface-gradient);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

html[data-theme-active="dark"] .landing-auth-card {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.landing-auth-card__intro {
    margin-bottom: var(--space-4);
}

.landing-auth-card__badge {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}

.landing-auth-card__intro h2 {
    font-size: 3rem;
    line-height: 1.05;
}

.landing-auth-card__intro p {
    margin: 0;
}

.landing-auth-card .form-inline-auth {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: stretch;
}

.landing-auth-card__switch,
.social-signin-block {
    display: inline-flex;
    margin-top: var(--space-3);
}

.landing-section {
    padding: var(--space-7) var(--space-6);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.landing-section--muted {
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--public-section-gradient);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

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

.landing-section__intro--centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.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 var(--border);
    background: var(--public-surface-muted);
    color: var(--text);
    font-weight: 700;
}

.landing-step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}

.landing-step-card__index {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    font-weight: 700;
    color: var(--accent);
}

.landing-step-card {
    padding: 0 var(--space-4);
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
    position: relative;
}

.landing-step-card:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--border);
}

.landing-step-card h3 {
    margin-bottom: 10px;
}

.landing-stat-grid,
.landing-payment-grid,
.landing-tool-grid,
.landing-review-grid,
.landing-faq-grid {
    display: grid;
    gap: 16px;
}

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

.landing-stat-card {
    text-align: center;
    padding: var(--space-4);
}

.landing-stat-card strong {
    display: block;
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.landing-stat-card span {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.landing-platform-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-4);
}

.landing-platform-ribbon span,
.landing-payment-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}

html[data-theme-active="dark"] .landing-platform-ribbon span,
html[data-theme-active="dark"] .landing-payment-grid span {
    background: rgba(255, 255, 255, 0.04);
}

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

.landing-section--tools::before {
    content: "";
    position: absolute;
    inset: 18% 20% auto;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 72%);
    pointer-events: none;
}

.landing-tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--space-5);
    position: relative;
    z-index: 1;
}

.landing-tool-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: var(--space-4);
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

html[data-theme-active="dark"] .landing-tool-grid span {
    background: rgba(255, 255, 255, 0.035);
}

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

.landing-review-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

html[data-theme-active="dark"] .landing-review-card {
    background: rgba(255, 255, 255, 0.03);
}

.landing-review-card::after {
    content: "\201D";
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(var(--accent-rgb), 0.22);
}

.landing-review-card__meta {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.landing-review-card__meta strong,
.landing-review-card__meta span {
    display: block;
}

.landing-review-card__meta span {
    margin-top: 6px;
    color: var(--text-muted);
}

.landing-review-card blockquote {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

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

.landing-faq-item {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

html[data-theme-active="dark"] .landing-faq-item {
    background: rgba(255, 255, 255, 0.03);
}

.landing-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    position: relative;
    font-weight: 600;
}

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

.landing-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--text-muted);
}

.landing-faq-item[open] summary::after {
    content: "\00d7";
}

.landing-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    line-height: 1.7;
}

.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(--button-active-shadow);
}

.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);
}
/*
.public-header__inner,
.app-header__chip,
.app-icon-button,
.app-account-toggle,
.app-account-menu,
.app-theme-toggle,
.order-page-intro,
.order-form-surface,
.order-details-card,
.order-note-card,
.app-bottom-nav__inner {
    background: linear-gradient(180deg, rgba(24, 27, 31, 0.96) 0%, rgba(20, 22, 25, 0.96) 100%);
    border-color: var(--border);
}*/

html[data-theme-active="light"] .public-header__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"] .app-theme-toggle,
html[data-theme-active="light"] .order-page-intro,
html[data-theme-active="light"] .order-form-surface,
html[data-theme-active="light"] .order-details-card,
html[data-theme-active="light"] .order-note-card,
html[data-theme-active="light"] .app-bottom-nav__inner,
html[data-theme-active="light"] .landing-auth-card {
    background: var(--surface-gradient-light);
}

html[data-theme-active="light"] .landing-copy {
    background: transparent;
}

html[data-theme-active="dark"] .landing-copy {
    background: transparent;
}

html[data-theme-active="light"] .landing-section,
html[data-theme-active="light"] .auth-shell__panel {
    background: transparent;
}

html[data-theme-active="dark"] .landing-section,
html[data-theme-active="dark"] .auth-shell__panel {
    background: transparent;
}

html[data-theme-active="light"] .landing-section--muted,
html[data-theme-active="light"] .auth-card {
    background: var(--public-surface-gradient);
}

html[data-theme-active="dark"] .landing-section--muted {
    background: var(--public-section-gradient);
}
.btn {
    border-radius: 14px;
    padding: 12px 18px;
}



.app-sidebar {
    padding: 0;
    border-right: 1px solid var(--border);
}

.app-sidebar__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-sidebar__dismiss {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
}

.app-sidebar__dismiss span {
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.app-sidebar__dismiss span:first-child {
    transform: rotate(45deg);
}

.app-sidebar__dismiss span:last-child {
    transform: rotate(-45deg);
}

.app-sidebar__summary {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.app-sidebar__summary-label {
    display: inline-flex;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.app-sidebar__summary strong {
    display: block;
    font-size: 1.6rem;
    color: var(--text);
}

.app-sidebar__summary p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-brand__mark,
.public-brand__mark,
.app-account-toggle__avatar,
.app-header__chip--accent {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-brand__mark,
.public-brand__mark {
    background: var(--accent-soft-gradient);
    color: var(--accent-soft-text);
}

.app-nav-link,
.app-account-link,
.public-nav__link,
.public-language-switch__button,
.app-icon-button,
.app-theme-toggle,
.app-account-toggle {
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.app-nav-link:hover,
.app-account-link:hover,
.app-nav-link.is-active,
.app-account-link.is-active {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
}

html[data-theme-active="light"] .app-nav-link:hover,
html[data-theme-active="light"] .app-account-link:hover,
html[data-theme-active="light"] .app-nav-link.is-active,
html[data-theme-active="light"] .app-account-link.is-active {
    background: var(--surface-muted-light);
}

.app-nav-link.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 500;
}

html[data-theme-active="light"] .app-nav-link.is-active {
    background: var(--surface-muted-light-strong);
}

.app-nav-link__icon {
    color: var(--text-muted);
}

.app-nav-link.is-active .app-nav-link__icon {
    color: var(--text);
}

.app-main-shell {
    padding: 18px 18px 28px;
}

.app-header {
    margin-bottom: 16px;
    padding: 4px 4px 0;
}

.app-header__title-group {
    align-items: flex-start;
}

.app-header__title {
    font-size: 3.2rem;
    margin-top: 2px;
}

.app-header__subtitle {
    margin: 8px 0 0;
    max-width: 520px;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-header__meta {
    justify-content: flex-end;
}

.app-header__chip {
    padding: 0 16px 0 0;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.app-header__chip--accent {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.08));
    border-color: var(--accent-soft-border);
}

.app-icon-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}

.app-icon-button:hover {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme-active="light"] .app-icon-button:hover {
    background: var(--surface-muted-light);
}

.app-icon-button__glyph {
    font-size: 1.25rem;
    color: var(--text);
}

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

.app-quick-panel__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 120px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 45;
}

.app-quick-panel.is-open .app-quick-panel__menu,
.app-theme-panel.is-open .app-theme-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-quick-panel__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px 8px;
}

.app-quick-panel__header span {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.app-quick-panel__header strong {
    font-size: 1.4rem;
    color: var(--text);
}

.app-quick-panel__link,
.app-theme-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
}

.app-quick-panel__link small,
.app-theme-option small {
    color: var(--text-muted);
    line-height: 1.45;
}

.app-quick-panel__link:hover,
.app-theme-option:hover,
.app-theme-option.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

html[data-theme-active="light"] .app-quick-panel__link:hover,
html[data-theme-active="light"] .app-theme-option:hover,
html[data-theme-active="light"] .app-theme-option.is-active {
    background: var(--surface-muted-light-strong);
    color: var(--text);
}

.app-theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: background 0.18s ease;
}

.app-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme-active="light"] .app-theme-toggle:hover {
    background: var(--surface-muted-light);
}

.app-theme-toggle__icon {
    opacity: 0;
    transform: scale(0.9);
}

.app-theme-toggle.is-dark .app-theme-toggle__icon--moon,
.app-theme-toggle:not(.is-light):not(.is-system) .app-theme-toggle__icon--moon {
    opacity: 1;
    transform: scale(1);
}

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

.app-theme-toggle.is-system .app-theme-toggle__icon--system {
    opacity: 1;
    transform: scale(1);
}

.app-mobile-account {
    display: none;
}

.app-account-toggle--compact {
    width: 44px;
    min-width: 44px;
    padding: 6px;
    justify-content: center;
}

.app-account-toggle--compact .app-account-toggle__caret {
    display: none;
}

.app-account-toggle__avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--accent-soft-gradient-strong);
    color: var(--accent-soft-text);
}

.app-mobile-account .app-account-menu {
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 10px);
    width: 240px;
}

.app-account-menu__meta {
    display: grid;
    gap: 3px;
    padding: 6px 8px 10px;
}

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

.app-bottom-nav {
    display: none;
}

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

.order-page-intro {
    margin-bottom: 14px;
    padding: 18px 20px;
}

.order-page-intro__eyebrow,
.order-form-surface__eyebrow {
    display: inline-flex;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.order-page-intro__content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: end;
}

.order-page-intro__title,
.order-form-surface__title {
    margin: 10px 0 0;
    font-size: 2.5rem;
    line-height: 1.1;
}

.order-page-intro__text,
.order-form-surface__text {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.order-page-intro__meta {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme-active="light"] .order-page-intro__meta {
    background: var(--surface-muted-light);
}

.order-page-intro__meta span {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.order-page-intro__meta strong {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

.order-page-layout {
    gap: 14px;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
}

.order-form-surface,
.order-details-card,
.order-note-card {
    padding: 12px;
    border-radius: 22px;
}

.order-form-surface__header {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.order-form-search-group {
    margin-bottom: 14px;
}

.order-form-search-label {
    margin-bottom: 10px;
}

.order-form-search-input .form-control {
    padding-left: 40px;
}

.order-field-group {
    position: relative;
}

.order-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: 0;
    top: 100%;
}

.order-select-shell {
    position: relative;
}

.order-select-trigger {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
}

html[data-theme-active="light"] .order-select-trigger {
    background: var(--surface-muted-light);
}

.order-select-trigger::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.order-select-shell.is-open .order-select-trigger::after {
    transform: rotate(-135deg);
    top: 28px;
}

.order-select-trigger__eyebrow {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.order-select-trigger__value {
    display: block;
    max-width: calc(100% - 28px);
    font-size: 1.45rem;
    line-height: 1.45;
}

.order-select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(24, 27, 31, 0.98) 0%, rgba(20, 22, 25, 0.98) 100%);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 25;
}

html[data-theme-active="light"] .order-select-dropdown {
    background: var(--surface-gradient-light);
}

html[data-theme-active="light"] .order-select-option,
html[data-theme-active="light"] .order-select-empty {
    background: var(--surface-muted-light);
}

html[data-theme-active="light"] .order-select-option:hover {
    background: var(--surface-muted-light-strong);
    border-color: var(--border-strong);
}

.order-select-shell.is-open .order-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.order-select-search-row {
    margin-bottom: 10px;
}

.order-select-search-input {
    min-height: 46px;
}

.order-select-options {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}

.order-select-option,
.order-select-empty {
    width: 100%;
    display: block;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-align: left;
}

.order-select-option:hover,
.order-select-option.is-selected {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
}

.order-select-option.is-selected {
    border-color: var(--accent-soft-border-strong);
    background: var(--accent-soft-bg);
}

.order-select-option.is-disabled,
.order-select-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-select-empty {
    color: var(--text-muted);
}

.order-form-actions {
    margin-top: 18px;
}

.order-details-card__service {
    margin: 2px 0 16px;
    font-size: 1.9rem;
    line-height: 1.35;
    color: var(--text);
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.order-details-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

html[data-theme-active="light"] .order-details-item {
    background: var(--surface-muted-light);
}

.order-details-item span,
.order-details-summary span {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.order-details-item strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
}

.order-details-summary {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

html[data-theme-active="light"] .order-details-summary {
    background: var(--surface-muted-light);
}

.order-details-summary p {
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.55;
}

.order-note-card--source .panel-body {
    border-radius: 16px;
    line-height: 1.65;
}

/* Platform selector */

.order-platform-selector {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.order-platform-selector__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.order-platform-selector__header span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.order-platform-selector__toggle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
}

.order-platform-selector__caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
    margin-top: 3px;
}

.order-platform-selector.is-collapsed .order-platform-selector__caret {
    transform: rotate(45deg);
    margin-top: -1px;
}

.order-platform-selector.is-collapsed .order-platform-grid {
    display: none;
}

.order-platform-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.order-platform-tabs--single {
    grid-template-columns: 1fr;
}

.order-platform-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: 0;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
    text-align: center;
}

.order-platform-tab[disabled],
.order-platform-btn[disabled] {
    cursor: default;
    pointer-events: none;
}

.order-platform-tab:last-child {
    border-right: 0;
}

.order-platform-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.order-platform-tab.is-active {
    background: var(--accent-soft-bg);
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.order-platform-tab__icon {
    font-size: 1.3rem;
}

.order-platform-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.order-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
    text-align: center;
}

.order-platform-btn:nth-child(4n) {
    border-right: 0;
}

.order-platform-btn:nth-last-child(-n+4) {
    border-bottom: 0;
}

.order-platform-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.order-platform-btn.is-active {
    background: var(--accent-soft-bg);
    color: var(--accent);
}

.order-platform-btn__icon {
    font-size: 1.5rem;
}

html[data-theme-active="light"] .order-platform-selector {
    border-color: var(--border);
}

html[data-theme-active="light"] .order-platform-tab,
html[data-theme-active="light"] .order-platform-btn {
    background: var(--surface-muted-light);
    color: var(--text-muted);
}

html[data-theme-active="light"] .order-platform-tab:hover,
html[data-theme-active="light"] .order-platform-btn:hover {
    background: var(--surface-muted-light-strong);
    color: var(--text);
}

html[data-theme-active="light"] .order-platform-tab.is-active,
html[data-theme-active="light"] .order-platform-btn.is-active {
    background: var(--accent-soft-bg-strong);
    color: var(--accent);
}

/* Order section labels */

.order-section-label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    padding: 0;
    letter-spacing: 0.01em;
}

/* Details card */

.order-details-card__header {
    margin-bottom: 10px;
}

.order-details-card__header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
}

.order-details-card .order-details-card__service {
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 0 0 14px;
    font-weight: 600;
}

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

.order-details-item--full {
    grid-column: 1 / -1;
}

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

/* Responsive platform grid */

@media (max-width: 767px) {
    .order-platform-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-platform-tab:nth-child(2n) {
        border-right: 0;
    }

    .order-platform-tab:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }

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

    .order-platform-btn:nth-child(4n) {
        border-right: 1px solid var(--border);
    }

    .order-platform-btn:nth-child(3n) {
        border-right: 0;
    }

    .order-platform-btn:nth-last-child(-n+4) {
        border-bottom: 1px solid var(--border);
    }

    .order-platform-btn:nth-last-child(-n+3) {
        border-bottom: 0;
    }

    .order-details-grid--three {
        grid-template-columns: 1fr;
    }
}

body.app-body-auth .app-main-content {
    padding-bottom: 0;
}

.page-shell {
    width: min(100%, 1160px);
    margin: 0 auto;
    display: grid;
    gap: var(--space-4);
}

.page-shell--wide {
    width: min(100%, 100%);
}

.page-shell--narrow {
    width: min(100%, 920px);
}

.page-shell--compact {
    width: min(100%, 760px);
}

.page-shell__intro,
.page-card,
.settings-card,
.data-toolbar,
.data-table-card,
.support-card,
.docs-card,
.auth-card,
.stat-card {
    background: linear-gradient(180deg, rgba(24, 27, 31, 0.96) 0%, rgba(20, 22, 25, 0.96) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

html[data-theme-active="light"] .page-shell__intro,
html[data-theme-active="light"] .page-card,
html[data-theme-active="light"] .settings-card,
html[data-theme-active="light"] .data-toolbar,
html[data-theme-active="light"] .data-table-card,
html[data-theme-active="light"] .support-card,
html[data-theme-active="light"] .docs-card,
html[data-theme-active="light"] .auth-card,
html[data-theme-active="light"] .stat-card {
    background: var(--surface-gradient-light);
}

.page-shell__intro,
.page-card,
.settings-card,
.data-toolbar,
.data-table-card,
.support-card,
.docs-card,
.auth-card,
.stat-card {
    padding: var(--space-6);
}

.page-shell__eyebrow,
.page-card__eyebrow,
.settings-card__eyebrow,
.data-toolbar__eyebrow,
.auth-card__eyebrow,
.docs-card__eyebrow,
.support-card__eyebrow,
.stat-card__eyebrow {
    display: inline-flex;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.page-shell__header,
.page-card__header,
.settings-card__header,
.support-card__header,
.docs-card__header,
.auth-card__header,
.stat-card__header {
    display: grid;
    gap: 6px;
}

.page-shell__title,
.page-card__title,
.settings-card__title,
.support-card__title,
.docs-card__title,
.auth-card__title,
.stat-card__title {
    margin: 8px 0 0;
    font-size: 2.5rem;
    line-height: 1.12;
}

.page-shell__text,
.page-card__text,
.settings-card__text,
.support-card__text,
.docs-card__text,
.auth-card__text,
.stat-card__text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.page-shell__split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: var(--space-5);
    align-items: end;
}

.page-shell__meta {
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-muted);
}

.page-shell__meta strong,
.page-shell__meta span {
    display: block;
}

.page-shell__meta strong {
    margin-top: var(--space-2);
    line-height: 1.55;
}

.page-shell__stack,
.settings-stack,
.auth-stack,
.support-stack,
.docs-stack,
.stats-stack {
    display: grid;
    gap: var(--space-4);
}

.page-card--prose,
.content-card,
.docs-card--prose {
    line-height: 1.75;
}

.page-card--prose > :first-child,
.docs-card--prose > :first-child,
.support-card > :first-child {
    margin-top: 0;
}

.page-card--prose > :last-child,
.docs-card--prose > :last-child,
.support-card > :last-child {
    margin-bottom: 0;
}

.public-content-shell,
.public-prose-shell {
    width: min(100%, 920px);
    margin: 0 auto;
}

.public-content-shell {
    display: grid;
    gap: var(--space-4);
}

.public-post-grid,
.stats-grid {
    display: grid;
    gap: var(--space-4);
}

.public-post-card {
    display: grid;
    gap: var(--space-4);
}

.public-post-card__image,
.blog-post-card__image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel-muted);
}

.public-post-card__footer,
.blog-post-actions,
.data-table-card__footer,
.support-card__footer,
.docs-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.auth-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}

.auth-shell__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
}

.auth-shell--compact .auth-shell__layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

.auth-shell__panel,
.auth-card {
    min-width: 0;
}

.auth-shell__panel {
    padding: var(--space-6);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--public-section-gradient);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.auth-card {
    background: var(--public-surface-gradient);
}

.auth-shell__panel .landing-copy__title,
.auth-shell__panel .page-shell__title {
    max-width: 12ch;
}

.auth-card__actions {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.auth-card__footer,
.settings-card__footer,
.page-card__footer {
    margin-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.settings-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    gap: var(--space-4);
}

.settings-tabs.nav,
.settings-tabs.nav.nav-pills {
    margin-bottom: 0;
}

.settings-grid {
    display: grid;
    gap: var(--space-4);
}

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

.settings-card__body,
.page-card__body,
.support-card__body,
.docs-card__body,
.stat-card__body {
    margin-top: var(--space-4);
}

.page-card__header + .data-table-card__table,
.docs-card__header + .data-table-card__table,
.support-card__header + .data-table-card__table {
    margin-top: var(--space-4);
}

.settings-card__body > .form-group:last-child,
.page-card__body > .form-group:last-child,
.support-card__body > .form-group:last-child {
    margin-bottom: 0;
}



.nowrap {
    white-space: nowrap;
}

.table.table-bordered > thead > tr > th,
.table.table-bordered > tbody > tr > td {
    border-color: var(--border);
}

.data-inline-actions,
.ticket-actions,
.order-actions,
.blog-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.data-inline-actions--spread {
    width: 100%;
    justify-content: space-between;
}

.data-inline-actions--end {
    width: 100%;
    justify-content: flex-end;
}

.support-thread {
    display: grid;
    gap: var(--space-4);
}

.support-thread__title {
    margin: 0;
    font-size: 2.3rem;
}

.support-thread__messages {
    display: grid;
    gap: var(--space-3);
}

.support-message {
    display: flex;
}

.support-message--user {
    justify-content: flex-end;
}

.support-message__bubble {
    width: min(100%, 88%);
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel-muted);
}

.support-message--user .support-message__bubble {
    background: var(--accent-soft-bg);
    border-color: var(--accent-soft-border);
}

.support-message__content {
    line-height: 1.7;
}

.support-message__files {
    margin-top: var(--space-4);
    display: grid;
    gap: var(--space-2);
}

.support-message__meta {
    margin-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--text-muted);
}

.support-composer {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.support-card .tickets-uploader {
    padding: var(--space-4);
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    background: var(--panel-muted);
}

.docs-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    gap: var(--space-4);
}

.docs-section + .docs-section {
    margin-top: var(--space-6);
}

.docs-card table + h4,
.docs-card p + h4,
.docs-card p + pre,
.docs-card table + p {
    margin-top: var(--space-5);
}

.docs-card pre,
pre {
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(6, 10, 18, 0.72);
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

html[data-theme-active="light"] .docs-card pre,
html[data-theme-active="light"] pre {
    background: var(--surface-muted-light);
}

.stat-card__value {
    margin-top: var(--space-3);
    font-size: 2.4rem;
    line-height: 1.1;
}

.stat-card__hint {
    margin-top: var(--space-2);
    color: var(--text-muted);
}

.btn-link {
    color: var(--accent-2);
}

.btn-xs {
    padding: 9px 12px;
    border-radius: 12px;
}

@media (max-width: 1199px) {
    .page-shell__split,
    .auth-shell__layout,
    .settings-grid--two,
    .stats-grid--two {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 991px) {
    .app-sidebar__dismiss {
        display: inline-flex;
        position: relative;
    }

    .app-mobile-account {
        display: block;
    }

    .app-main-shell {
        padding-bottom: 108px;
    }

    .app-bottom-nav {
        position: fixed;
        right: 14px;
        bottom: 14px;
        left: 14px;
        display: block;
        z-index: 35;
    }

    .app-bottom-nav__inner {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow-soft);
        backdrop-filter: blur(12px);
    }

    .app-bottom-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 58px;
        padding: 8px 6px;
        border: 1px solid transparent;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
        color: var(--text-muted);
        text-align: center;
    }

    .app-bottom-nav__link.is-active {
        background: var(--accent-soft-bg);
        border-color: var(--accent-soft-border);
        color: var(--text);
    }

    .app-bottom-nav__icon {
        font-size: 1.5rem;
        color: var(--accent);
    }

    .app-bottom-nav__text {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

@media (max-width: 767px) {
    .page-shell__intro,
    .page-card,
    .settings-card,
    .data-toolbar,
    .data-table-card,
    .support-card,
    .docs-card,
    .auth-card,
    .stat-card,
    .auth-shell__panel {
        padding: var(--space-4);
        border-radius: 20px;
    }

    .page-shell__title,
    .page-card__title,
    .settings-card__title,
    .support-card__title,
    .docs-card__title,
    .auth-card__title,
    .stat-card__title,
    .support-thread__title {
        font-size: 2.1rem;
    }

    .data-toolbar__search {
        width: 100%;
    }

    .support-message__bubble {
        width: 100%;
    }

    .app-header__title {
        font-size: 2.7rem;
    }

    .app-header__subtitle {
        display: none;
    }

    .app-header__control-group {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .app-language-switcher,
    .app-currency-switcher {
        grid-column: span 2;
    }

    .app-icon-button,
    .app-theme-toggle {
        width: 100%;
    }

    .order-form-surface,
    .order-details-card,
    .order-note-card,
    .order-page-intro {
        padding: 16px;
    }

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

    .order-page-intro__title,
    .order-form-surface__title,
    .order-details-card__service {
        font-size: 2.1rem;
    }

    .order-select-dropdown,
    .app-quick-panel__menu,
    .app-mobile-account .app-account-menu {
        left: 0;
        right: 0;
        width: auto;
    }
}

.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-copy {
        padding-right: 0;
    }

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

    .landing-highlight-grid,
    .landing-step-grid,
    .landing-stat-grid,
    .landing-payment-grid,
    .landing-review-grid,
    .landing-faq-grid,
    .landing-tool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-step-card:not(:first-child)::before {
        display: none;
    }

    .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,
    .auth-shell__panel,
    .auth-card {
        border-radius: 24px;
    }

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

    .landing-hero {
        padding-top: var(--space-6);
    }

    .landing-copy {
        padding-left: 0;
        padding-right: 0;
    }

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

    .landing-copy__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-copy__note,
    .landing-platform-ribbon {
        justify-content: flex-start;
    }

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

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

    .landing-highlight-grid,
    .landing-step-grid,
    .landing-stat-grid,
    .landing-payment-grid,
    .landing-review-grid,
    .landing-faq-grid,
    .landing-tool-grid {
        grid-template-columns: 1fr;
    }

    .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%;
    }
}

/* Base Form & Panel Layout */
.app-page-wrapper {
    padding: 0;
}

.data-page-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.data-toolbar {
    background: transparent;
    border: none;
    padding: 0;
}

.data-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.data-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* data-table-card on Bulkmedya is rounded and bordered */
.data-table-card {
    background: var(--surface-gradient-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

html[data-theme-active="dark"] .data-table-card {
    background: #18191c;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* App Table */
.app-table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.app-table thead th {
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    padding: 10px 20px;
    border: none;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

html[data-theme-active="dark"] .app-table thead th {
    background: transparent;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-table tbody td {
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

html[data-theme-active="dark"] .app-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-table tbody tr:last-child td {
    border-bottom: none;
}

.app-table tbody tr:hover td {
    background: var(--surface-muted-light);
}

html[data-theme-active="dark"] .app-table tbody tr:hover td {
    background: #18191c;
}

.width-service-name {
    width: 35%;
    min-width: 250px;
}

.service-description__th {
    width: 20%;
}

.width-40 {
    width: 40%;
}

/* Nav Pills Match Bulkmedya Horizontal Tabs */
.app-nav-pills {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.app-nav-pills > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 9999px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.app-nav-pills > li > a:hover {
    color: var(--text);
    background: var(--surface-muted-light);
}

html[data-theme-active="dark"] .app-nav-pills > li > a:hover {
    color: #ffffff;
    background: #18191c;
    border-color: rgba(255, 255, 255, 0.1);
}

.app-nav-pills > li.active > a,
.app-nav-pills > li.active > a:hover {
    background: var(--surface-muted-light-strong);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

html[data-theme-active="dark"] .app-nav-pills > li.active > a,
html[data-theme-active="dark"] .app-nav-pills > li.active > a:hover {
    background: #18191c;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badges */
.app-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
}

.app-badge--pending {
    background: rgba(251, 191, 36, 0.15);
    color: #b45309;
}
.app-badge--processing {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}
.app-badge--inprogress {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
}
.app-badge--completed {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}
.app-badge--partial {
    background: rgba(168, 85, 247, 0.15);
    color: #7e22ce;
}
.app-badge--canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

/* Dark Mode Badges Adjustments */
html[data-theme-active="dark"] .app-badge--pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}
html[data-theme-active="dark"] .app-badge--processing {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}
html[data-theme-active="dark"] .app-badge--inprogress {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
html[data-theme-active="dark"] .app-badge--completed {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}
html[data-theme-active="dark"] .app-badge--partial {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}
html[data-theme-active="dark"] .app-badge--canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* UI Toolbar System (Supporting both new .ui and legacy .data classes) */
.ui-toolbar,
.data-toolbar__row {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end; /* All clustered to the right */
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.app-main-shell__content {
  margin-top: 80px;
}

@media (min-width: 992px) {
    .app-main-shell__content {
        position: relative;
    }
    .ui-toolbar,
    .data-toolbar__row {
        /* Restored normal document flow position */
        margin-bottom: 20px;
        width: auto;
        z-index: 10;
        flex-wrap: nowrap !important;
    }
    .ui-toolbar-filters,
    .data-toolbar__actions {
        flex-wrap: nowrap !important;
    }
}

.ui-toolbar-filters,
.data-toolbar__actions {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: var(--space-2);
}

.ui-toolbar-search,
.data-toolbar__search {
    width: 250px;
    max-width: none;
}

@media (max-width: 768px) {
    .ui-toolbar-search {
        max-width: 100%;
    }
}

.ui-toolbar-search form {
    margin: 0;
}

/* Auth pages */

/* Auth page container */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
    box-sizing: border-box;
}

.auth-page__card.well {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    border-radius: 12px;
}

.auth-card__header {
    margin-bottom: 20px;
}

.auth-card__eyebrow {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.auth-page .auth-card__actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-card__switch {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-card__switch a {
    color: var(--accent);
    font-weight: 600;
}

.auth-page .forgot-password {
    float: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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