:root {
    /* BulkMedya-style light theme (default) */
    --bg: #ffffff;
    --bg-soft: #f8f8f8;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --panel-elevated: #f5f5f5;
    --panel-muted: rgba(0, 0, 0, 0.035);
    --border: #D1D5DB;
    --border-strong: rgba(0, 0, 0, 0.12);
    --text: #282828;
    --text-muted: #6B7280;
    --accent: #282828;
    --accent-2: #111111;
    --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: 200px;
    --detail-panel-width: 240px;
    --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"] {
    /* BulkMedya Dark Mode */
    --bg: #0D1117;
    --bg-soft: #161B27;
    --panel: #161B27;
    --panel-strong: #1C212D;
    --panel-elevated: #212836;
    --panel-muted: rgba(255, 255, 255, 0.05);
    --border: #2D3348;
    --border-strong: #3D4452;
    --text: #E5E7EB;
    --text-muted: #9CA3AF;
    --accent: #F59E0B;
    --accent-2: #FBBF24;
    --success: #198754;
    --danger: #dc3545;
    --ring: 0 0 0 1px rgba(45, 51, 72, 0.5);
    --ring-focus: 0 0 0 2px rgba(245, 158, 11, 0.4);
    --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(45, 51, 72, 0.3);
}

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: #282828;
    border-color: transparent;
    color: #ffffff;
    box-shadow: none;
}

html[data-theme-active="dark"] .btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #111111;
    color: #ffffff;
    box-shadow: none;
    transform: 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,
.landing-highlight-card,
.landing-step-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--ring);
}

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

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

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

@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: rgba(0, 0, 0, 0.05);
    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(--panel);
    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,
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    padding: 20px;
    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;
    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: 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: transparent;
    border: 0;
    border-left: 3px solid var(--text);
    border-radius: 0;
    padding-left: 9px;
    transform: none;
    font-weight: 500;
}

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

.app-main-shell__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 20;
}

.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: 12px;
    padding: 12px 0;
    border-bottom: 0;
    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;
    border-radius: 0;
    background: transparent;
    border: none;
}

.app-header__chip:hover {
    background: transparent;
    border-color: transparent;
}

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

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

.app-icon-button {
    min-width: auto;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 14px;
    transition: background 0.18s ease;
    cursor: pointer;
}

.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: 180px;
    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: var(--panel);
    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: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    position: relative;
    cursor: pointer;
    transition: background 0.18s ease;
}

.app-theme-toggle:hover {
    background: var(--panel-muted);
}

.app-theme-toggle__icon {
    position: absolute;
    font-size: 1.15rem;
    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"] .landing-auth-card,
html[data-theme-active="dark"] .order-note-card,
html[data-theme-active="dark"] .landing-copy,
html[data-theme-active="dark"] .landing-section,
html[data-theme-active="dark"] .public-header__inner,
html[data-theme-active="dark"] .dropdown-menu,
html[data-theme-active="dark"] .modal-content {
    background: #161B27;
    color: var(--text);
}

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: #1A1F2E;
    color: var(--text);
}

html[data-theme-active="dark"] .app-sidebar {
    background: #111318;
    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-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 {
    border-radius: var(--radius-lg);
}

/* Icon buttons use 14px to match BulkMedya exactly */
.app-icon-button,
.app-theme-toggle {
    border-radius: 14px;
}

.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 {
	padding: 0 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}

.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: var(--panel-muted);
    border-color: transparent;
}

.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 with Detail Panel */
.order-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--detail-panel-width);
    gap: 12px;
    align-items: start;
}

.order-page-layout--full {
    grid-template-columns: 1fr;
}

/* Detail Panel (Right Sidebar) */
.app-detail-panel {
    width: var(--detail-panel-width);
    flex: 0 0 var(--detail-panel-width);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    position: sticky;
    top: 80px;
}

html[data-theme-active="dark"] .app-detail-panel {
    background: #111318;
    border-color: #2D3348;
}

.app-detail-panel__header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.app-detail-panel__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.app-detail-panel__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.app-detail-panel__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-detail-panel__meta-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-detail-panel__meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.app-detail-panel__meta-value--na {
    color: var(--text-muted);
    font-style: italic;
}

.app-detail-panel__empty {
    color: var(--text-muted);
    font-style: italic;
}

/* Platform Selector Grid */
.platform-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: var(--space-4);
}

.platform-selector__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
}

.platform-selector__item:hover {
    border-color: var(--accent);
    background: var(--panel-muted);
}

.platform-selector__item--special {
    background: var(--panel-muted);
}

.platform-selector__item.is-active {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    color: var(--text);
}

html[data-theme-active="dark"] .platform-selector__item.is-active {
    background: rgba(245, 158, 11, 0.15);
}

.platform-selector__icon {
    font-size: 24px;
    line-height: 1;
}

.platform-selector__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.platform-selector__label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Platform colors */
.platform-selector__icon--instagram { color: #E4405F; }
.platform-selector__icon--facebook { color: #1877F2; }
.platform-selector__icon--youtube { color: #FF0000; }
.platform-selector__icon--twitter { color: #1DA1F2; }
.platform-selector__icon--tiktok { color: #000000; }
.platform-selector__icon--spotify { color: #1DB954; }
.platform-selector__icon--linkedin { color: #0A66C2; }
.platform-selector__icon--google { color: #4285F4; }
.platform-selector__icon--telegram { color: #0088CC; }
.platform-selector__icon--discord { color: #5865F2; }
.platform-selector__icon--snapchat { color: #FFFC00; }
.platform-selector__icon--twitch { color: #9146FF; }

html[data-theme-active="dark"] .platform-selector__icon--tiktok { 
    background: linear-gradient(135deg, #FF0050, #00F2EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.order-form-surface .form-group + .form-group,
.order-form-surface #fields > .form-group,
.order-form-surface #fields > div {
    margin-top: 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;
}

html[data-theme-active="dark"] .modal-content {
    background: linear-gradient(180deg, rgba(22, 27, 39, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Scoped backgrounds — only structural surfaces, NOT icon buttons or toggles */
.order-page-intro,
.order-form-surface,
.order-note-card,
.app-bottom-nav__inner {
    background: var(--panel);
    border-color: var(--border);
}

.btn {
    border-radius: var(--radius-lg);
    padding: 10px 20px;
}



.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: linear-gradient(135deg, rgba(213, 176, 93, 0.34), rgba(213, 176, 93, 0.14));
    color: #f7ebcf;
}

.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,
.app-account-link {
    padding: 10px 12px;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 4px;
}

.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: rgba(0, 0, 0, 0.03);
}

.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: rgba(0, 0, 0, 0.05);
}

.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(213, 176, 93, 0.18), rgba(213, 176, 93, 0.08));
    border-color: rgba(213, 176, 93, 0.26);
}

.app-icon-button__glyph {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1;
}

.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: rgba(0, 0, 0, 0.05);
    color: var(--text);
}



.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: linear-gradient(135deg, rgba(213, 176, 93, 0.48), rgba(213, 176, 93, 0.2));
    color: #f9f0db;
}

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

.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-note-card {
    padding: 18px;
    border-radius: 22px;
}

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

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

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

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

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: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    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(--panel);
}

.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: 1180px;
    margin: 0 auto;
}

.auth-shell__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: var(--space-4);
    align-items: start;
}

.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: 26px;
    background: rgba(8, 14, 28, 0.62);
}

.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: rgba(213, 176, 93, 0.1);
    border-color: rgba(213, 176, 93, 0.22);
}

.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: rgba(34, 31, 26, 0.04);
}

.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: rgba(213, 176, 93, 0.12);
        border-color: rgba(213, 176, 93, 0.24);
        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;
    }

    /* icon buttons keep fixed width on mobile */
    .app-icon-button,
    .app-theme-toggle {
        width: 44px;
    }

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

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

    .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-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: 44px;
        width: 44px;
    }

    .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: #ffffff;
    border: 1px solid #D1D5DB;
    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 #2D3348;
}

/* 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: #6B7280;
    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: 13px;
    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 #2D3348;
}

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

.app-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

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

.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: rgba(0, 0, 0, 0.02);
}

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: #f8f8f8;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

@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 (Sign In / Sign Up) ─────────────────────── */

/* Auth page container */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    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-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;
}

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

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

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

/* ── Business-safe Bulk Medya Pass ────────────────────────── */

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

.order-page-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.ui-container-fluid,
.ui-container-narrow {
    width: 100%;
}

.ui-container-narrow {
    max-width: 820px;
    margin: 0 auto;
}

.ui-section-title {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.2;
}

.ui-table-block {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--ring);
    overflow: hidden;
}

.ui-table-block > .page-card__header,
.ui-table-block > .data-table-card__table,
.ui-table-block > table,
.ui-table-block > div,
.ui-table-block > ul.pagination {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

.ui-table-block > .page-card__header {
    padding-top: var(--space-5);
}

.ui-table-block > .data-table-card__table,
.ui-table-block > table,
.ui-table-block > div {
    padding-bottom: var(--space-5);
}

.ui-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.ui-toolbar .btn-default,
.ui-toolbar .dropdown-toggle {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--ring);
}

.ui-toolbar .btn-default i,
.ui-toolbar .dropdown-toggle i,
.ui-toolbar .dropdown-toggle .fal,
.ui-toolbar .dropdown-toggle .fa {
    margin-right: 6px;
}

.ui-toolbar-filters {
    gap: 10px;
}

.ui-toolbar-search,
.data-toolbar__search {
    width: 280px;
}

.ui-toolbar-search .form-control,
.data-toolbar__search .form-control {
    min-height: 44px;
}

.ui-table-block .table,
.data-table-card .table,
.docs-card .table {
    margin-bottom: 0;
}

.ui-table-block .table-category-row td,
.data-table-card .table-category-row td {
    background: var(--panel-muted);
    font-weight: 600;
}

.ui-table-block .modal-content,
.data-table-card .modal-content,
.docs-card .modal-content {
    border: 1px solid var(--border);
}

.order-page-layout__side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.order-page-layout__side .order-note-card {
    margin-top: 0;
}

.order-form-actions .btn {
    min-width: 140px;
}

.docs-shell .docs-card + .docs-card {
    margin-top: var(--space-4);
}

.public-home-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: grid;
    gap: var(--space-5);
}

.public-home-hero {
    display: grid;
    gap: var(--space-5);
}

.public-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 420px);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.public-home-hero__copy,
.public-home-login-card {
    min-width: 0;
}

.page-card.public-home-hero__copy {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 0 0;
}

.public-home-hero__copy .page-card__eyebrow {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
}

.public-home-hero__copy .page-card__title {
    max-width: 13ch;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.public-home-hero__copy .page-card__text {
    max-width: 58ch;
    font-size: 1.55rem;
    line-height: 1.7;
}

.public-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.public-home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.public-home-hero__trust span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 500;
}

.auth-card.public-home-login-card {
    position: sticky;
    top: 24px;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 24px !important;
    border: 1px solid #E5E7EB !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08) !important;
}

.public-home-login-card .auth-card__header {
    gap: 10px;
    margin-bottom: 24px;
}

.public-home-login-card .auth-card__eyebrow {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.public-home-login-card .auth-card__title {
    max-width: 13ch;
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.public-home-login-card .auth-card__text {
    max-width: 34ch;
    font-size: 1.45rem;
    line-height: 1.65;
}

.public-home-login-card form {
    display: grid;
    gap: 14px;
}

.public-home-login-card .form-group {
    margin-bottom: 0;
}

.public-home-login-card .form-control {
    min-height: 50px;
    border: 1px solid #E5E7EB;
    background: #ffffff;
    box-shadow: none;
}

.public-home-login-card .form-control:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.public-home-login-card .form-inline-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.public-home-login-card .form-inline-auth > .form-group,
.public-home-login-card .social-signin-block {
    width: 100%;
}

.public-home-login-card .btn-primary {
    min-height: 50px;
    font-weight: 600;
}

.public-home-login-card .btn-block-sm,
.public-home-login-card .form-inline-auth .btn {
    width: 100%;
}

.public-home-login-card .forgot-password {
    margin-top: 8px;
}

.public-home-stat-grid,
.public-home-feature-grid,
.public-home-faq-grid {
    display: grid;
    gap: var(--space-4);
}

.public-home-stat-grid,
.public-home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-home-stat-grid {
    margin-top: 28px;
    gap: 14px;
}

.public-home-section-shell {
    gap: 18px;
}

.public-home-section-shell > .page-card {
    padding: clamp(24px, 3vw, 34px);
}

.public-home-section-shell .page-card__header {
    gap: 10px;
}

.public-home-section-shell .page-card__title {
    max-width: 15ch;
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.public-home-section-shell .page-card__text {
    max-width: 62ch;
}

.public-home-stat-card,
.public-home-mini-card,
.public-home-faq-item {
    padding: var(--space-5);
    border-radius: 20px;
}

.public-home-stat-card .stat-card__value {
    font-size: 2.4rem;
    line-height: 1.1;
}

.public-home-stat-card .stat-card__hint {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.public-home-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: var(--space-4);
}

.public-home-platform-grid--payments {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.public-home-platform-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    color: var(--text);
    font-weight: 500;
}

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

.public-home-faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: #ffffff;
}

.public-home-faq-item h3 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.public-home-faq-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.public-home-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.public-home-quote-item {
    padding: var(--space-5);
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: #ffffff;
    display: grid;
    gap: 12px;
}

.public-home-quote-item p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.public-home-quote-item strong {
    color: var(--text-muted);
    font-weight: 600;
}

.page-card.public-home-mini-card,
.stat-card.public-home-stat-card {
    border-radius: 20px !important;
    background: #ffffff !important;
    border-color: #E5E7EB !important;
}

html[data-theme-active="light"] .ui-table-block,
html[data-theme-active="light"] .public-home-platform-grid span,
html[data-theme-active="light"] .public-home-faq-item,
html[data-theme-active="light"] .public-home-quote-item {
    background: #ffffff;
}

html[data-theme-active="light"] .public-home-mini-card,
html[data-theme-active="light"] .public-home-stat-card,
html[data-theme-active="light"] .public-home-hero__trust span {
    background: #ffffff;
}

html[data-theme-active="dark"] .ui-table-block,
html[data-theme-active="dark"] .public-home-platform-grid span,
html[data-theme-active="dark"] .public-home-faq-item,
html[data-theme-active="dark"] .public-home-quote-item {
    background: #1c1c1c;
}

html[data-theme-active="dark"] .page-card.public-home-hero__copy {
    background: transparent !important;
}

html[data-theme-active="dark"] .auth-card.public-home-login-card {
    border-color: #2D3348 !important;
    background: #161B27 !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme-active="dark"] .page-card.public-home-mini-card,
html[data-theme-active="dark"] .stat-card.public-home-stat-card {
    background: #161B27 !important;
    border-color: #2D3348 !important;
}

html[data-theme-active="dark"] .public-home-login-card .form-control {
    border-color: #2D3348;
    background: #1C212D;
}

html[data-theme-active="dark"] .public-home-login-card .form-control:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

html[data-theme-active="dark"] .public-home-mini-card,
html[data-theme-active="dark"] .public-home-stat-card,
html[data-theme-active="dark"] .public-home-platform-grid span,
html[data-theme-active="dark"] .public-home-faq-item,
html[data-theme-active="dark"] .public-home-quote-item,
html[data-theme-active="dark"] .public-home-hero__trust span {
    background: #161B27;
    border-color: #2D3348;
}

@media (max-width: 1199px) {
    .public-home-hero__grid,
    .public-home-stat-grid,
    .public-home-feature-grid,
    .public-home-faq-grid,
    .public-home-quote-grid {
        grid-template-columns: 1fr;
    }

    .public-home-login-card {
        position: static;
    }

    .public-home-hero__copy .page-card__title,
    .public-home-login-card .auth-card__title {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .ui-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ui-toolbar-search,
    .data-toolbar__search {
        width: 100%;
    }
}

/* ── Add Funds Page ─────────────────────────────────────── */

.addfunds-amount-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: var(--space-3);
}

.addfunds-amount-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.addfunds-amount-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    color: var(--text-muted);
    font-size: 1rem;
}

.addfunds-footer {
    margin-top: var(--space-5);
}

.btn-addfunds-pay {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
}

.addfunds-rate-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-3);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.addfunds-rate-icon {
    opacity: 0.6;
}

@media (max-width: 576px) {
    .addfunds-amount-row {
        grid-template-columns: 1fr;
    }

    .addfunds-amount-swap {
        display: none;
    }
}

/* ── Services page – favorite star column ────────────────── */

.service-star-col {
    width: 32px;
    text-align: center;
}

.service-fav-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.service-fav-btn:hover,
.service-fav-btn.is-fav {
    color: #F59E0B;
}

/* ── Readonly fields (addfunds calc totals) ──────────────── */

.form-control[readonly] {
    background: var(--panel-elevated);
    color: var(--text-muted);
    cursor: default;
}

html[data-theme-active="dark"] .form-control[readonly] {
    background: var(--panel);
    border-color: var(--border);
}

/* ── New order detail panel badge ───────────────────────── */

.app-badge--new {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 6px;
    background: #3B82F6;
    color: #fff;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Orders / Services toolbar title layout ─────────────── */

.ui-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: nowrap;
    justify-content: space-between;
}

.ui-toolbar-title {
    flex: 0 0 auto;
}

.ui-toolbar-title .ui-section-title {
    font-size: 1.6rem;
    margin: 0;
}

.ui-toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 0 0 auto;
}

/* ── Service cart link ───────────────────────────────────── */

.service-cart-link {
    opacity: 0;
    transition: opacity 0.15s;
}

tr:hover .service-cart-link {
    opacity: 1;
}

@media (max-width: 768px) {
    .service-cart-link {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   TOPBAR — BulkMedya exact match (single authoritative block)
   All previous scattered rules above are superseded by these.
   ═══════════════════════════════════════════════════════════ */

/* Topbar container */
.app-main-shell__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Left: chip group */
.app-header__title-group {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 0;
    min-height: 48px;
    overflow: hidden;
}

/* Each chip = plain inline text */
.app-header__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px 0 0;
    font-size: 13px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--text-muted);
    white-space: nowrap;
}

.app-header__chip:hover {
    background: transparent !important;
}

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

.app-header__chip-value {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

/* Pipe separator between chips */
.app-header__chip + .app-header__chip {
    padding-left: 14px;
    border-left: 1px solid var(--border) !important;
}

/* Right: icon cluster */
.app-header__meta {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    min-height: 48px;
    flex-shrink: 0;
}

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

/* ── Theme toggle & icon buttons ── */
.app-icon-button,
.app-theme-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.app-icon-button:hover,
.app-theme-toggle:hover {
    background: var(--panel-muted) !important;
}

/* Icon glyph */
.app-icon-button__glyph,
.app-theme-toggle__icon i {
    font-size: 1rem;
    color: var(--text);
    line-height: 1;
}

/* Language / currency button — show label */
.app-language-switcher .app-icon-button,
.app-currency-switcher .app-icon-button {
    width: auto !important;
    min-width: 44px !important;
    padding: 0 10px !important;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
}

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

.app-icon-button__value {
    display: inline;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* Theme toggle icon show/hide */
.app-theme-toggle__icon {
    position: absolute;
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
}

.app-theme-toggle {
    position: relative;
}

/* Dark mode (default): show moon */
.app-theme-toggle:not(.is-light) .app-theme-toggle__icon--moon {
    opacity: 1;
    transform: scale(1);
}

/* Light mode: show sun */
.app-theme-toggle.is-light .app-theme-toggle__icon--sun {
    opacity: 1;
    transform: scale(1);
}

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

/* Mobile account compact button */
.app-mobile-account {
    display: none;
}

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

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

/* Mobile toggle (hamburger) */
.app-mobile-toggle {
    display: none;
}

@media (max-width: 991px) {
    .app-mobile-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .app-mobile-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

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

    .app-header__chip {
        display: none;
    }

    .app-header__chip:last-child {
        display: inline-flex;
    }
}

/* ═══════════════════════════════════════════════════════════
   CARDS & WELLS — BulkMedya exact match
   ═══════════════════════════════════════════════════════════ */

/* Base card style — match BulkMedya rounded panels */
.well,
.page-card,
.page-shell__intro,
.settings-card,
.support-card,
.docs-card,
.auth-card,
.stat-card,
.data-table-card,
.order-form-surface {
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--ring);
}

/* Light mode panels are white */
html[data-theme-active="light"] .well,
html[data-theme-active="light"] .page-card,
html[data-theme-active="light"] .page-shell__intro,
html[data-theme-active="light"] .settings-card,
html[data-theme-active="light"] .support-card,
html[data-theme-active="light"] .auth-card,
html[data-theme-active="light"] .data-table-card,
html[data-theme-active="light"] .order-form-surface {
    background: #ffffff !important;
    border-color: #E5E7EB !important;
}

/* Dark mode panels */
html[data-theme-active="dark"] .well,
html[data-theme-active="dark"] .page-card,
html[data-theme-active="dark"] .page-shell__intro,
html[data-theme-active="dark"] .settings-card,
html[data-theme-active="dark"] .support-card,
html[data-theme-active="dark"] .auth-card,
html[data-theme-active="dark"] .data-table-card,
html[data-theme-active="dark"] .order-form-surface {
    background: #161B27 !important;
    border-color: #2D3348 !important;
}

/* ── Platform selector — BulkMedya exact ── */
.platform-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.platform-selector__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-muted);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 72px;
    text-align: center;
}

.platform-selector__item:hover {
    border-color: var(--border-strong);
    background: var(--panel-elevated);
    color: var(--text);
}

.platform-selector__item.is-active {
    border-color: var(--border-strong);
    background: var(--panel-elevated);
}

html[data-theme-active="light"] .platform-selector__item {
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: #282828;
}

html[data-theme-active="light"] .platform-selector__item:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.platform-selector__item--special {
    background: var(--panel-muted);
}

.platform-selector__icon {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-selector__label {
    font-size: 11.5px;
    font-weight: 500;
    color: inherit;
    line-height: 1.2;
}

/* ── Sidebar nav active state — white text, left border ── */
.app-nav-link.is-active {
    font-weight: 600;
    color: var(--text) !important;
    border-left: 2px solid var(--text);
    padding-left: 10px;
    background: transparent;
}

html[data-theme-active="light"] .app-nav-link.is-active {
    color: #111 !important;
    border-left-color: #111;
}

/* ── Sidebar nav dots — remove them, use icons only ── */
.app-nav-link__icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
