* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
    height: 100%;
}

body.modal-open {
    position: fixed;
    width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b1530;
    color: #e2e8f0;
    overflow-x: hidden;
}

:root {
    --card-bg: #162245;
    --card-border: rgba(255, 255, 255, 0.08);
    --muted: #cbd5e1;
    --panel-bg: #0b1530;
    --panel-border: rgba(255, 255, 255, 0.12);
    --panel-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --icon-filter: invert(1);
    --modal-bg: #0b1530;
}

body.theme-light {
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --muted: #475569;
    --panel-bg: #ffffff;
    --panel-border: rgba(0, 0, 0, 0.08);
    --panel-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    --icon-filter: invert(0);
    --modal-bg: #ffffff;
}

a {
    color: #7dd3fc;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 6vw, 64px);
    background: rgba(11, 21, 48, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

body.theme-light {
    background: #f5f7fb;
    color: #0f172a;
}

body.theme-light .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-light .text-link,
body.theme-light .lang-select,
body.theme-light .burger,
body.theme-light .mobile-menu,
body.theme-light .lang-button,
body.theme-light .theme-button {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.theme-light .text-link,
body.theme-light .theme-button {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .burger,
body.theme-light .lang-button {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.theme-light .lang-button--arrow {
    background: none;
}

body.theme-light .lang-button--arrow::after {
    background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.5 6 6 10 2.5' stroke='%231f2937' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/12px 8px;
}

body.theme-light .burger span {
    background: #0f172a;
}

body.theme-light .logo-dot {
    color: #0f172a;
}

body.theme-light .footer-links a,
body.theme-light .legal,
body.theme-light .footer-made,
body.theme-light .footer-links-row a,
body.theme-light .footer-title {
    color: #0f172a;
}

body.theme-light .footer-links-row a:hover,
body.theme-light .footer-links a:hover {
    color: #0ea5e9;
}

body.theme-light .site-footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-light .hero-panel,
body.theme-light .panel-row,
body.theme-light .feature-card,
body.theme-light .step-card,
body.theme-light .stat {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.theme-light .hero-panel,
body.theme-light .hero-stats .panel-row {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

body.theme-light .step-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.theme-light .hero-panel,
body.theme-light .hero-stats .panel-row {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

body.theme-light .muted {
    color: #475569;
}

body.theme-light .status {
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.12);
}

.lang-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lang-modal.open {
    display: flex;
}

.lang-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.lang-modal__dialog {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(11, 21, 48, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 20px;
    width: min(320px, 90vw);
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lang-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Share toast */
.copy-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -40%);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    color: #e2e8f0;
    opacity: 0;
    text-align: center;
    max-width: min(420px, 90vw);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 12000;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.copy-toast.toast-error {
    background: #1f2937;
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecdd3;
}

body.theme-light .copy-toast {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

body.theme-light .copy-toast.toast-error {
    background: #fff5f5;
    border-color: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

.lang-modal__header h3 {
    margin: 0;
    font-size: 18px;
}

.lang-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.lang-modal__close:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.7);
}

.lang-modal__body {
    display: grid;
    gap: 12px;
}

.lang-option {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(99, 102, 241, 0.1));
    color: #e2e8f0;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lang-option:hover {
    border-color: rgba(125, 211, 252, 0.9);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(99, 102, 241, 0.18));
    transform: translateY(-1px) scale(1.01);
}

body.theme-light .lang-modal__dialog {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.theme-light .lang-option,
body.theme-light .lang-modal__close {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.logo-dot {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(140deg, #0ea5e9, #22d3ee);
    color: #0b1530;
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.brand-name {
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header User Card */
.header-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    text-align: start;
}


.header-user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user-initials {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.header-user-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-img.hidden {
    display: none;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.header-user-contact {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}


.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
}

.theme-icon {
    width: 18px;
    height: 18px;
    filter: var(--icon-filter);
}

.theme-icon-moon {
    display: none;
}

body.theme-light .theme-icon-sun {
    display: none;
}

body.theme-light .theme-icon-moon {
    display: inline-block;
}

.burger {
    display: none;
    width: 42px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-menu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    gap: 12px;
    padding: 88px 18px 24px;
    margin: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    background: rgba(5, 12, 28, 0.97);
    backdrop-filter: blur(18px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    transform: translateY(-8px);
}

.mobile-menu__title {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1000;
    font-weight: 700;
    font-size: 20px;
    color: #e2e8f0;
    height: 44px;
    display: inline-flex;
    align-items: center;
}

.mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu .text-link {
    width: 100%;
    text-align: center;
}

.mobile-menu .lang-button {
    width: 100%;
}

.mobile-menu .user-button {
    justify-content: flex-start;
}

.mobile-menu .theme-toggle {
    justify-content: center;
}

.mobile-menu .mobile-links {
    display: none;
}

.mobile-menu .mobile-links a {
    color: #cbd5e1;
    font-weight: 500;
}

.mobile-menu .mobile-links a:hover {
    color: #7dd3fc;
}

body.menu-open {
    overflow: hidden;
}

button.mobile-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

body.theme-light button.mobile-close {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

body.theme-light .mobile-menu__title {
    color: #0f172a;
}

.mobile-user {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-user__name {
    font-weight: 700;
    font-size: 16px;
}

.mobile-user__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-size: 13px;
    justify-content: space-between;
}

body.theme-light .mobile-user {
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .mobile-user__meta {
    color: #475569;
}

body.theme-light .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

.text-link {
    color: #e2e8f0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.text-link:hover {
    border-color: rgba(125, 211, 252, 0.8);
}

.lang-select {
    padding: 9px 20px 9px 12px;
    min-width: 65px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23cbd5e1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
}

.lang-select::-ms-expand {
    display: none;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    cursor: pointer;
}

.lang-button:hover {
    border-color: rgba(125, 211, 252, 0.8);
}

.lang-button--arrow {
    position: relative;
    padding-right: 32px;
}

.lang-button--arrow::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 12px;
    height: 8px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.5 6 6 10 2.5' stroke='%23cbd5e1' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/12px 8px;
}

.mobile-inline {
    display: none;
}

.user-button {
    padding: 9px 12px;
    justify-content: center;
}

.user-icon {
    height: 25px;
    filter: invert(1);
}

.user-label {
    margin-left: 10px;
    font-weight: 600;
}

.theme-light .user-icon,
body.theme-light .user-icon {
    filter: invert(0);
}

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

.layout {
    padding: 0px clamp(16px, 6vw, 64px) 48px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 80vh;
}

.client-page .layout {
    padding-bottom: 140px;
}

.driver-page .layout {
    padding-bottom: 140px;
    padding-top: 15px;
}

.driver-home h1 {
    margin: 0 0 6px;
}

.driver-home .muted {
    margin: 0 0 16px;
}

.driver-home .client-map {
    margin-top: 10px;
    margin-bottom: 14px;
}

.verification-modal-content {
    width: 90%;
    max-width: 320px;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    background: #0b1530;
    border: 1px solid var(--card-border);
}

body.theme-light .verification-modal-content {
    background: #f5f7fb;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Optional: ensure border matches light theme card border or similar */
}

.driver-actions.driver-actions--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.driver-actions--list {
    display: grid;
    gap: 10px;
    margin: 10px 0 14px;
}

.driver-list-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.driver-list-card .action-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
}

.list-title {
    font-weight: 700;
    font-size: 16px;
    color: #e2e8f0;
}

.list-sub {
    margin-top: 2px;
    color: #cbd5e1;
    font-size: 14px;
}

body.theme-light .driver-list-card {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.25);
}

body.theme-light .list-title {
    color: #0f172a;
}

body.theme-light .list-sub {
    color: #475569;
}

.client-bottom-nav,
.driver-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    width: min(520px, calc(100% - 20px));
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 12, 28, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    z-index: 30;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.client-nav-item,
.driver-bottom-nav .client-nav-item {
    flex: 1;
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 10px 6px 8px;
    border-radius: 12px;
    display: grid;
    gap: 6px;
    justify-items: center;
    align-items: center;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.client-nav-item:active {
    transform: translateY(1px);
}

.client-nav-item.is-active,
.driver-bottom-nav .client-nav-item.is-active {
    background: rgba(23, 139, 255, 0.14);
    color: #178bff;
    box-shadow: inset 0 0 0 1px rgba(23, 139, 255, 0.4);
}

.client-nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: invert(88%) brightness(108%);
    transition: filter 0.2s ease;
}

.client-nav-item.is-active .client-nav-icon,
.driver-bottom-nav .client-nav-item.is-active .client-nav-icon {
    filter: invert(43%) sepia(91%) saturate(1796%) hue-rotate(187deg) brightness(101%) contrast(100%);
}

body.theme-light .client-bottom-nav,
body.theme-light .driver-bottom-nav {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

body.theme-light .client-nav-item,
body.theme-light .driver-bottom-nav .client-nav-item {
    color: #475569;
}

body.theme-light .client-nav-icon,
body.theme-light .driver-bottom-nav .client-nav-icon {
    filter: grayscale(100%) brightness(0.2);
}

body.theme-light .client-nav-item.is-active,
body.theme-light .driver-bottom-nav .client-nav-item.is-active {
    background: rgba(23, 139, 255, 0.14);
    color: #178bff;
    box-shadow: inset 0 0 0 1px rgba(23, 139, 255, 0.3);
}

body.theme-light .client-nav-item.is-active .client-nav-icon,
body.theme-light .driver-bottom-nav .client-nav-item.is-active .client-nav-icon {
    filter: invert(43%) sepia(91%) saturate(1796%) hue-rotate(187deg) brightness(101%) contrast(100%);
}

.client-bottom-nav.is-hidden,
.driver-bottom-nav.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
}

main.client-page+.site-footer {
    padding-bottom: 140px;
}

main.driver-page+.site-footer {
    padding-bottom: 140px;
}

.driver-expenses {
    display: grid;
    gap: 18px;
    padding-top: 8px;
}

.expenses-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.expenses-head h1 {
    margin: 0 0 6px;
}

.expenses-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.btn-small {
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn.is-busy {
    opacity: 0.8;
    pointer-events: none;
}

/* Trash Icon Theming */
.icon-trash {
    filter: brightness(0) invert(1);
    /* White for dark mode */
}

body.theme-light .icon-trash {
    filter: invert(34%) sepia(80%) saturate(1475%) hue-rotate(338deg) brightness(91%) contrast(92%);
    /* Red for light mode */
}

.expenses-summary {
    background: linear-gradient(135deg, #0065ff, #00b2ff);
    color: #ffffff;
    border-radius: 22px;
    padding: 20px clamp(14px, 3vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-kicker {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    font-weight: 700;
}

.summary-amount {
    margin: 0;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 800;
}

.summary-sub {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
    max-width: 320px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.summary-tile {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    margin-bottom: 10px;
}

.tile-icon.income {
    background: rgba(16, 185, 129, 0.18);
    color: #e7fff5;
}

.tile-icon.expense {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.summary-tile svg {
    width: 22px;
    height: 22px;
}

.tile-label {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.tile-value {
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    margin-top: 4px;
}

.summary-progress {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.summary-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.progress-shell {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    transition: width 0.25s ease;
}

.expenses-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

body.theme-light .expenses-section {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 4px 0 0;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: #7dd3fc;
    margin: 0;
}

.section-link {
    font-weight: 700;
    color: #7dd3fc;
    text-decoration: none;
}

.payments-list {
    display: grid;
    gap: 12px;
}

.payment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body.theme-light .payment-card {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.payment-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(23, 139, 255, 0.12);
    color: #178bff;
    flex-shrink: 0;
}

.payment-icon svg {
    width: 22px;
    height: 22px;
}

.payment-info {
    flex: 1;
}

.payment-title {
    font-weight: 700;
    color: #e2e8f0;
}

body.theme-light .payment-title {
    color: #0f172a;
}

.payment-meta {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.payment-amount {
    margin-left: auto;
    font-weight: 800;
    color: #7dd3fc;
}

.payment-amount.success {
    color: #0f9d58;
}

.payment-amount.warning {
    color: #ffb020;
}

.payment-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.expense-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.expense-chip {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.expense-chip.is-active {
    background: rgba(23, 139, 255, 0.16);
    border-color: rgba(23, 139, 255, 0.5);
    color: #7dd3fc;
    box-shadow: inset 0 0 0 1px rgba(23, 139, 255, 0.3);
}

body.theme-light .expense-chip {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.theme-light .expense-chip.is-active {
    background: rgba(23, 139, 255, 0.14);
    color: #178bff;
    border-color: rgba(23, 139, 255, 0.4);
}

.expense-list {
    display: grid;
    gap: 10px;
}

.expense-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

body.theme-light .expense-item {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.expense-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #7dd3fc;
    background: rgba(23, 139, 255, 0.12);
    flex-shrink: 0;
}

.expense-icon svg {
    width: 22px;
    height: 22px;
}

.icon-fuel {
    color: #0f9d58;
    background: rgba(15, 157, 88, 0.12);
}

.icon-tolls {
    color: #178bff;
    background: rgba(23, 139, 255, 0.12);
}

.icon-parking {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.12);
}

.icon-service {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.16);
}

.icon-food {
    color: #e64a19;
    background: rgba(230, 74, 25, 0.12);
}

.expense-body {
    flex: 1;
    display: grid;
    gap: 4px;
}

.expense-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.expense-title {
    font-weight: 700;
    color: #e2e8f0;
}

body.theme-light .expense-title {
    color: #0f172a;
}

.expense-amount {
    font-weight: 800;
    color: #e2e8f0;
}

body.theme-light .expense-amount {
    color: #0f172a;
}

.expense-meta {
    color: var(--muted);
    font-size: 14px;
    margin: 2px 0 6px;
}

.expense-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.expense-time {
    color: var(--muted);
    font-size: 13px;
}

.expense-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 139, 255, 0.1);
    color: #7dd3fc;
    font-weight: 700;
    font-size: 12px;
}

body.theme-light .expense-tag {
    color: #178bff;
    background: rgba(23, 139, 255, 0.14);
}

.expense-empty {
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed var(--card-border);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 720px) {
    .summary-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .payment-top {
        flex-direction: column;
    }

    .payment-amount {
        margin: 6px 0 0;
    }

    .payment-actions {
        grid-template-columns: 1fr;
    }

    .expense-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .expenses-head {
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .client-bottom-nav {
        width: calc(100% - 12px);
        bottom: 6px;
        padding: 8px;
    }

    .client-nav-item {
        padding: 8px 4px 6px;
        font-size: 12px;
    }
}

.hero-slider {
    display: grid;
    gap: 18px;
    margin: 12px auto 0;
    max-width: 1100px;
    width: 100%;
}

.slider-head h1 {
    margin: 6px 0 10px;
    font-size: clamp(26px, 4.2vw, 38px);
}

.slider-shell {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 0;
    min-height: 220px;
}

.slide {
    flex: 0 0 100%;
    display: none;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(150deg, rgba(34, 211, 238, 0.12), rgba(14, 165, 233, 0.08));
    opacity: 0.7;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slide.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(125, 211, 252, 0.8);
    background: linear-gradient(150deg, rgba(125, 211, 252, 0.18), rgba(59, 130, 246, 0.18));
}

.slide:first-child {
    display: block;
}

.slide-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: #7dd3fc;
}

.slide h3 {
    margin: 0 0 6px;
}

.slide-text {
    margin: 0 0 10px;
    color: #cbd5e1;
}

.slide-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #e2e8f0;
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.slider-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.8);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, width 0.15s ease;
}

.slider-dot.is-active {
    width: 22px;
    background: #7dd3fc;
    border-color: #7dd3fc;
}

body.theme-light .slider-shell,
body.theme-light .slider-btn,
body.theme-light .slider-dot {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .slide {
    background: linear-gradient(150deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .slide-text {
    color: #475569;
}

body.theme-light .tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.theme-light .slider-dot.is-active {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

@media (max-width: 768px) {
    .slider-shell {
        padding: 12px;
    }

    .slide {
        min-height: 200px;
    }
}

.home {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero {
    padding-top: 32px;
    width: 100%;
    max-width: none;
    position: relative;
    padding-bottom: 220px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 36px);
    align-items: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-stats {
    width: 100%;
    max-width: 1180px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    margin: 0 auto;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.hero-stats .panel-row {
    background: linear-gradient(150deg, rgba(34, 211, 238, 0.12), rgba(14, 165, 233, 0.1));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.theme-light .hero-stats .panel-row {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hero-decor {
    position: relative;
    overflow: hidden;
}

.hero-decor::before {
    content: "";
    position: absolute;
    inset: -15% -30% -10% -32%;
    background: url("../img/truck.jpg") center/cover no-repeat;
    opacity: 0.1;
    filter: blur(1px) saturate(0.5);
    z-index: 0;
}

.hero-decor::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

body.theme-light .hero-decor::before {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.06)),
        url("../img/truck.jpg") center/cover no-repeat;
    opacity: 0.24;
    filter: blur(1px) saturate(1);
}

body.theme-light .hero-decor::after {
    background:
        radial-gradient(circle at 70% 20%, rgba(14, 165, 233, 0.18), transparent 42%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.12), transparent 38%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25), transparent 70%);
}

.hero-decor .hero-grid {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4.6vw, 46px);
}

.hero-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.hero-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--panel-shadow);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-eyebrow {
    margin: 0 0 6px;
    color: #7dd3fc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.panel-list {
    display: grid;
    gap: 10px;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    color: #e2e8f0;
}

.status {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: none;
}

.status.ok {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.status.warn {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.status.info {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.status.status-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none !important;
    border-color: transparent !important;
    background: transparent;
    box-shadow: none;
}

.status.status-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 13px;
}

.pill-glow {
    box-shadow: 0 0 14px rgba(125, 211, 252, 0.5);
    border-color: rgba(125, 211, 252, 0.7);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #0b1530;
    border-color: rgba(34, 211, 238, 0.6);
}

.btn-primary:hover {
    border-color: #22d3ee;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.16);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: #7dd3fc;
    margin: 0 0 6px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.steps-grid h3 {
    margin: 0 0 6px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding-top: 0;
}

.stat {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-align: left;
}

.stat h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.hero-stats .stat {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    color: #0f172a;
}

.hero-stats .stat .muted {
    color: #475569;
}

.features {
    display: grid;
    gap: 18px;
}


.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 3.4vw, 34px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.feature-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    display: grid;
    gap: 10px;
}

.client-map {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.client-map iframe {
    width: 100%;
    min-height: 260px;
    display: block;
}

.client-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.action-card {
    border-radius: 16px;
    padding: 16px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
    display: grid;
    gap: 10px;
    align-items: center;
    min-height: 120px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.action-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(33, 150, 243, 0.14);
    display: grid;
    place-items: center;
    color: #2196f3;
}

.action-icon img {
    width: 24px;
    height: 24px;
    display: block;
    filter: var(--icon-filter) brightness(1.4);
}

.action-text {
    font-size: 16px;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.3;
}

body.theme-light .action-card {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.28);
}

body.theme-light .action-icon {
    background: rgba(33, 150, 243, 0.12);
    color: #2196f3;
}

body.theme-light .action-text {
    color: #0f172a;
}

body:not(.theme-light) .action-card {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.16);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

body:not(.theme-light) .action-icon {
    background: rgba(33, 150, 243, 0.16);
    color: #ffffff;
}

body:not(.theme-light) .action-text {
    color: #e6f1ff;
}


.profile-screen {
    display: grid;
    gap: 14px;
    padding-top: 12px;
}

.profile-head h1 {
    margin: 0;
}

.profile-card {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.balance-card {
    background: linear-gradient(135deg, #6e41e2, #64b5f6);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.3);
}

.balance-top .muted {
    color: #ffffff !important;
}

.balance-amount {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-top: 6px;
}

.balance-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.balance-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.balance-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 8px rgba(0, 0, 0, 0.18);
}

.balance-btn .profile-icon img {
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(1.4);
}

.verify-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(33, 150, 243, 0.12);
    border: 1px solid rgba(33, 150, 243, 0.22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.verify-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(33, 150, 243, 0.16);
    display: grid;
    place-items: center;
}

.verify-icon img {
    width: 24px;
    height: 24px;
    filter: invert(1) brightness(1.4);
}

.verify-title {
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
}

.verify-sub {
    color: #cbd5e1;
    line-height: 1.4;
    font-size: 12px;
    margin-top: 6px;
}

.profile-list {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.profile-item {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.profile-item+.profile-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-size: 14px;
}

.profile-icon img {
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(1.4);
}

.chevron {
    color: #94a3b8;
    font-weight: 700;
    font-size: 18px;
}

.profile-socials {
    display: grid;
    gap: 10px;
}

.profile-social-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-social-pill {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-social-pill img {
    width: 18px;
    height: 18px;
    filter: none;
}

form#expensesForm {
    background: var(--card-bg);
    padding: 16px 12px 16px 12px;
    border-radius: 20px;
}

.logout-btn {
    width: 100%;
    margin: 8px 0 4px;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.request-btn {
    width: 100%;
    text-align: center;
    margin: 8px 0 4px;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    background: #1E88E5;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.request-btn--disabled,
.request-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    box-shadow: none;
}

body.theme-light .request-btn--disabled,
body.theme-light .request-btn:disabled {
    background: #e2e8f0;
    border-color: rgba(0, 0, 0, 0.08);
    color: #94a3b8;
}

.logout-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.24);
}

.profile-item span:nth-of-type(2) {
    justify-self: start;
    font-size: 16px;
    font-weight: 500;
}

body.theme-light .profile-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

body.theme-light .balance-card {
    background: linear-gradient(135deg, #6e41e2, #64b5f6);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.3);
}

body.theme-light .verify-card {
    background: rgba(33, 150, 243, 0.16);
    border-color: rgba(33, 150, 243, 0.26);
}

body.theme-light .verify-title {
    color: #0f172a;
}

body.theme-light .verify-sub {
    color: #475569;
    font-size: 13px;
}

body.theme-light .verify-icon img {
    filter: invert(0) brightness(1);
}

body.theme-light .profile-list {
    background: #f4f4f4;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

body.theme-light .profile-item {
    color: #0f172a;
}

body.theme-light .profile-item+.profile-item {
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .profile-icon {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light .profile-social-pill {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #0f172a;
}

body.theme-light .profile-social-pill img {
    filter: none;
}

body.theme-light .profile-icon img {
    filter: invert(0) brightness(0.2);
}

.balance-btn .profile-icon img {
    filter: invert(1) brightness(2) !important;
}

body.theme-light .profile-icon img {
    filter: invert(0) brightness(0.2);
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 4px auto 12px;
    max-width: 440px;
}

.story-card {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.story-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 5px 9px;
    border-radius: 12px;
    background: linear-gradient(145deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.story-title {
    font-size: 11px;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.25;
    text-align: left;
}

body.theme-light .story-thumb {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

body.theme-light .story-title {
    color: #0f172a;
}

.estimate-card {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    background: rgba(33, 150, 243, 0.12);
    border: 1px solid rgba(33, 150, 243, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.estimate-title {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.estimate-sub {
    margin-top: 4px;
    color: #cbd5e1;
    line-height: 1.35;
    font-size: 12px;
}

.estimate-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(33, 150, 243, 0.16);
    display: grid;
    place-items: center;
}

.estimate-icon img {
    width: 28px;
    height: 28px;
    filter: invert(1) brightness(1.4);
}

body.theme-light .estimate-card {
    background: rgba(33, 150, 243, 0.16);
    border-color: rgba(33, 150, 243, 0.28);
}

body.theme-light .estimate-title {
    color: #0f172a;
}

body.theme-light .estimate-sub {
    color: #475569;
}

body.theme-light .estimate-icon img {
    filter: invert(0) brightness(1);
}

.order-list {

    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.order-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 12px;
    width: 100%;
}

.order-page__title {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.order-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    padding: 0;
    transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    text-decoration: none;
}

.order-back img {
    width: 18px;
    height: 18px;
    filter: var(--icon-filter);
    transition: filter 0.2s ease;
}

.order-back:active {
    transform: translateY(1px);
}

body.theme-light .order-back {
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
    color: #0f172a;
}


.order-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.order-search__input {
    width: 100%;
    height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.order-search__input::placeholder {
    color: var(--muted);
}

.order-search__input:focus {
    border-color: rgba(125, 211, 252, 0.8);
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.28);
}

.order-search__filter {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 26px rgba(34, 211, 238, 0.24);
}

.order-search__filter img {
    width: 20px;
    height: 20px;
    filter: invert(85%) brightness(1.2);
}

.order-search__filter:hover {
    border-color: rgba(125, 211, 252, 0.9);
}

.order-search__filter:active {
    transform: translateY(1px);
}

body.theme-light .order-search__input {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.theme-light .order-search__input::placeholder {
    color: #94a3b8;
}

body.theme-light .order-search__filter {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

body.theme-light .order-search__filter img {
    filter: invert(22%) sepia(91%) saturate(3056%) hue-rotate(189deg) brightness(94%) contrast(92%);
}

.order-page {
    background: #f5f7fb;
    border-radius: 16px;
    padding: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

.order-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.pill--status {
    justify-self: end;
    border-radius: 8px;
}


.pill--intransit {
    background: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.24);
    color: #ff6b00;
}

.pill--completed {
    background: rgba(100, 181, 246, 0.12);
    border-color: rgba(100, 181, 246, 0.24);
    color: #64b5f6;
}

.pill--cancelled {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.24);
    color: #ff4757;
}

.pill--id {
    background: rgba(33, 150, 243, 0.1);
}

.fav-btn {
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.fav-btn:active {
    transform: scale(0.95);
}

.share-btn {
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.share-btn:active {
    transform: scale(0.95);
}

.fav-btn img {
    width: 20px;
    height: 20px;
    transition: filter 0.2s ease;
}

.fav-btn.is-active {
    background: transparent;
}

.fav-btn.is-active img {
    filter: invert(36%) sepia(85%) saturate(3504%) hue-rotate(341deg) brightness(98%) contrast(92%);
    opacity: 1;
}

.order-card__body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.order-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.order-route {
    margin: 4px 0 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.order-date {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.order-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 12px;
    color: #111111;
}

.chip img {
    width: 16px;
    height: 16px;
    filter: opacity(0.54);
}

.order-spec {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 6px 0 10px;
    color: #777777;
    font-size: 12px;
}

.order-spec img {
    width: 18px;
    height: 18px;
    filter: invert(57%) sepia(89%) saturate(355%) hue-rotate(173deg) brightness(97%) contrast(91%);
}

.order-price {
    margin-left: auto;
    font-weight: 800;
    color: #2196f3;
    font-size: 17px;
}

.order-desc {
    margin: 6px 0 10px;
    color: #666666;
    line-height: 1.4;
    font-size: 13px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px;
}

.order-sender {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-sender-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 6px 8px;
    margin: 0 -6px;
    transition: background 0.2s ease;
}

.order-sender-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.order-sender-cta {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-sender-cta::after {
    content: '›';
    display: inline-block;
    font-size: 16px;
    line-height: 1;
}

.sender-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.15);
    display: grid;
    place-items: center;
    color: #2196f3;
    font-weight: 800;
}

.sender-name {
    font-weight: 700;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.order-hint {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 12px;
}

body.theme-light .order-hint {
    color: #64748b;
}

.reply-sheet-wrap {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
}

.reply-sheet-wrap.is-open {
    display: flex;
}

.reply-sheet {
    width: min(520px, 100%);
    background: rgba(10, 18, 36, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px 22px 0px 0px;
    padding: 16px 16px 20px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
    color: #e2e8f0;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.reply-sheet-wrap.is-open .reply-sheet {
    transform: translateY(0);
    opacity: 1;
}

.reply-handle {
    width: 54px;
    height: 6px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin: 0 auto 16px;
}

.reply-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.reply-title {
    font-weight: 800;
    font-size: 20px;
}

.reply-route {
    color: #cbd5e1;
}

.reply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reply-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: #e2e8f0;
}

.reply-body {
    display: grid;
    gap: 10px;
}

.reply-label {
    font-weight: 700;
    font-size: 13px;
    color: #cbd5e1;
}

.reply-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reply-input:focus {
    border-color: rgba(125, 211, 252, 0.8);
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.35);
}

.reply-submit {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border-radius: 14px;
    border: 1px solid #08a7ff;
    background: linear-gradient(135deg, #00aaff, #0085ff);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 170, 255, 0.28);
}

.reply-submit:active {
    transform: translateY(1px);
}

body.theme-light .reply-sheet {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .reply-route {
    color: #475569;
}

body.theme-light .reply-label {
    color: #475569;
}

body.theme-light .reply-chip {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.theme-light .reply-input {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.order-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #1e88e5;
    background: #1e88e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(30, 136, 229, 0.24);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.order-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.2);
}

.order-btn img {
    width: 16px;
    height: 16px;
    filter: invert(100%);
}

.call-square {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1E88E5;
    border: 1px solid #1E88E5;
    box-shadow: 0 6px 14px rgba(34, 211, 238, 0.22);
    padding: 0;
    margin: 8px 0 4px;
    flex-shrink: 0;
}

.call-square.whatsapp {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.24);
}

.call-square.whatsapp img {
    filter: brightness(0) invert(1);
}

body.theme-light .call-square.whatsapp {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.26);
}

.call-square img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Share icon theming */
.share-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1); /* white in dark theme */
}

body.theme-light .share-btn img {
    filter: invert(0); /* black in light theme */
}

body:not(.theme-light) .order-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body:not(.theme-light) .chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body:not(.theme-light) .chip img {
    filter: invert(85%) brightness(1.2);
}

body:not(.theme-light) .order-route,
body:not(.theme-light) .order-desc {
    color: #cbd5e1;
}

body:not(.theme-light) .sender-name,
body:not(.theme-light) .order-card__body h3,
body:not(.theme-light) .order-spec {
    color: #e2e8f0;
}

body:not(.theme-light) .order-spec img {
    filter: invert(78%) sepia(23%) saturate(714%) hue-rotate(179deg) brightness(104%) contrast(95%);
}

body:not(.theme-light) .order-desc {
    background: rgba(255, 255, 255, 0.06);
}

body:not(.theme-light) .fav-btn:not(.is-active) img {
    filter: invert(80%) sepia(10%) saturate(0%) hue-rotate(160deg) brightness(80%);
}

body:not(.theme-light) .fav-btn.is-active img {
    filter: invert(38%) sepia(93%) saturate(1510%) hue-rotate(198deg) brightness(102%) contrast(106%);
    /* Blue filter */
}

body:not(.theme-light) .order-page {
    background: #0b1530;
}

@media (min-width: 1024px) {
    .story-cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        max-width: none;
    }

    .story-card {
        gap: 4px;
    }

    .story-title {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .client-map {
        border-radius: 14px;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .client-map iframe {
        min-height: 200px;
    }

    .order-list {

        flex-wrap: wrap;
        gap: 12px;
        margin-top: 10px;
    }
}

.icon-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.steps {
    display: grid;
    gap: 16px;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.steps-grid .step-card:nth-child(2) {
    transform: translateX(12px);
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 8px 0;
    position: relative;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(125, 211, 252, 0.16);
    color: #e2e8f0;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid rgba(125, 211, 252, 0.5);
}

body.theme-light .step-num {
    color: #0b1530;
}

.step-card::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 58px;
    width: 2px;
    height: calc(100% - 58px);
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.4), rgba(125, 211, 252, 0));
}

.step-card:last-child::after {
    display: none;
}

.step-body h3 {
    margin: 0 0 6px;
}

.steps-map {
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.steps-map img {
    display: block;
    width: 100%;
    height: auto;
}

.empty {
    flex: 1;
}

.site-footer {
    padding: 28px clamp(16px, 6vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 21, 48, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px 32px;
    align-items: start;
}

.footer-col {
    display: grid;
    gap: 12px;
}

.footer-title {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.footer-links {
    display: grid;
    gap: 6px;
}

.footer-links a {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-sep {
    margin: 18px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-links-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-made {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links-row a {
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.footer-links-row a:hover {
    color: #3b82f6;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.payment-logos {
    display: grid;
    gap: 10px;
    align-items: center;
    grid-template-columns: 1fr 1.5fr;
}

.payment-logos img {
    width: auto;
    transition: all 0.2s;
}

.logo-visa {
    height: 24px;
}

.logo-mastercard {
    height: 36px;
}

.logo-kaspi {
    height: 36px;
}

.logo-freedom {
    height: 36px;
}

.payment-logos img:hover {
    filter: brightness(1.1);
}

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

.app-buttons img {
    height: 42px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.2s;
    background: white;
}

.app-buttons img:hover {
    transform: translateY(-2px);
}



.legal {
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    max-width: 420px;
}

.legal .by-tag {
    font-size: 7px;
    letter-spacing: 0.02em;
}

.footer-made .by-tag {
    font-size: 7px;
    letter-spacing: 0.02em;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.socials a:hover {
    border-color: rgba(125, 211, 252, 0.8);
    transform: translateY(-1px);
}

.socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* WhatsApp icon colored green on all themes */
.socials a[href*="wa.me"] img {
    filter: invert(55%) sepia(86%) saturate(524%) hue-rotate(90deg) brightness(95%) contrast(92%);
}

@media (max-width: 960px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-actions {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .mobile-controls {
        flex-direction: row;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-bottom: 200px;
    }

    .hero-stats {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 60px;
        margin: 0 auto;
        max-width: 95%;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        padding-bottom: 48px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        margin-top: 16px;
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .steps-grid .step-card:nth-child(2) {
        transform: none;
    }
}

/* Order Details Page Redesign */
.detail-map {
    height: 200px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    z-index: 1;
    overflow: hidden;
}

.detail-header-block {
    margin-bottom: 24px;
}

.detail-route-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.detail-sub-info {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.spec-box {
    background: var(--surface);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.spec-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-value img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.sticky-footer-placeholder {
    height: 80px;
}

.sticky-action-bar {
    position: fixed;
    bottom: 96px;
    /* Above bottom nav */
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
    max-width: 555px;
    /* Mobile constraint */
    margin: 0 auto;
}

.sticky-action-bar .request-btn {
    flex: 1;
    height: 48px;
    font-size: 16px;
    margin: 0;
    /* Remove default margin */
}

.sticky-action-bar .call-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #1E88E5;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.sticky-action-bar .call-btn img,
.driver-actions .call-btn img,
#inlineActions .call-btn img {
    filter: invert(1);
    transition: filter 0.2s ease;
}

body.theme-light .sticky-action-bar .call-btn img,
body.theme-light .driver-actions .call-btn img,
body.theme-light #inlineActions .call-btn img {
    filter: invert(0);
}

/* Dark mode map adjustment */
body:not(.theme-light) .detail-map {
    filter: brightness(0.9);
}

/* FAB */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    z-index: 100;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    text-decoration: none;
    border: none;
}

.fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.fab:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}

.fab img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

/* Adaptive Secondary Button for Call-Square */
.call-square.secondary {
    background: rgba(255, 255, 255, 0.08);
    /* Dark mode subtle bg */
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.call-square.secondary img {
    filter: invert(1);
    /* Ensure icon is white in dark mode */
}

body.theme-light .call-square.secondary {
    background: #ffffff;
    /* Light mode bg */
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

body.theme-light .call-square.secondary img {
    filter: none;
    /* Black icon in light mode */
}

/* Desktop: Ensure proper side padding and max-width for all pages */
@media (min-width: 1024px) {
    .layout {
        padding-left: clamp(32px, 8vw, 120px);
        padding-right: clamp(32px, 8vw, 120px);
        max-width: 1400px;
        border-radius: 0px 0px 10px 10px;
    }

    .order-page {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 1280px) {
    .layout {
        padding-left: 120px;
        padding-right: 120px;
        border-radius: 0px 0px 10px 10px;
    }
}

/* --- Auto-added by Assistant for Footer & Order Card Fixes --- */

main {
    flex: 1;
    width: 100%;
}

/* Order Card Styles */
.order-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    width: 100%;
}

.order-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* Slightly richer shadow */
}

/* Typography Colors explicitly using variables */
.order-card__body h3,
.order-route {
    color: var(--text-primary, inherit);
}

.order-date,
.order-spec {
    color: var(--muted);
}

/* Pills */
.pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

.pill--id {
    background: #E0F2FE;
    color: #0EA5E9;
}

body:not(.theme-light) .pill--id {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

.pill--status {
    background: #DCFCE7;
    color: #16A34A;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
}

body:not(.theme-light) .pill--status {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

/* Description Box */
.order-desc {
    background: var(--bg-secondary, #F8FAFC);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

body:not(.theme-light) .order-desc {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

/* Responses Section */
.responses-section {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.response-icon-circle {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.theme-light) .response-icon-circle {
    background: rgba(255, 255, 255, 0.1);
}

.response-text {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

body:not(.theme-light) .response-text {
    color: #e2e8f0;
}

.response-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.spec-icon {
    width: 16px;
    height: 16px;
    filter: var(--icon-filter);
    opacity: 0.7;
}

/* Profile Details Cards */
/* Profile Details Cards */
.profile-info-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background 0.2s, border-color 0.2s;
}


/* Adaptive Profile Icons */
.profile-info-icon {
    width: 20px;
    height: 20px;
    /* Default is Dark Mode: Invert black icons to white */
    filter: invert(1);
    opacity: 0.9;
}

body.theme-light .profile-info-icon {
    /* Light Mode: Keep icons black */
    filter: invert(0);
    opacity: 0.8;
}

/* Referral Card */
.referral-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 16px;
}

.referral-label {
    font-size: 14px;
    color: white;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 500;
}

.referral-box {
    background: white;
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.referral-code {
    font-size: 18px;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.5px;
}

.referral-copy-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Wallet Transactions */
.transaction-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transaction-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon-box.deposit {
    background: rgba(16, 185, 129, 0.1);
}

.transaction-icon-box.withdrawal {
    background: rgba(239, 68, 68, 0.1);
}

.transaction-desc {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.transaction-date {
    font-size: 12px;
    color: var(--muted);
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
}

.transaction-amount.deposit {
    color: #10b981;
}

.transaction-amount.withdrawal {
    color: #ef4444;
}

/* Bottom Sheet */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1e293b;
    /* Dark default */
    border-radius: 20px 20px 0 0;
    padding: 24px;
    z-index: 101;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .bottom-sheet {
    background: #ffffff;
    border-top: none;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    /* Dark default */
    border-radius: 2px;
    margin: -8px auto 20px;
}

body.theme-light .bottom-sheet-handle {
    background: #e2e8f0;
}

.help-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.help-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon-circle img {
    width: 24px;
    height: 24px;
    filter: invert(34%) sepia(98%) saturate(1766%) hue-rotate(210deg) brightness(97%) contrast(98%);
}

.help-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #f1f5f9;
    /* Dark default */
}

body.theme-light .help-title {
    color: #0f172a;
}

.help-text {
    color: #94a3b8;
    /* Dark default */
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

body.theme-light .help-text {
    color: #64748b;
}

.help-actions {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.help-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    /* Dark default */
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

body.theme-light .help-action-btn {
    background: #f8fafc;
}

.help-action-btn:active {
    background: rgba(255, 255, 255, 0.06);
    /* Dark default */
}

body.theme-light .help-action-btn:active {
    background: #f1f5f9;
}

.help-action-btn img {
    width: 28px;
    height: 28px;
}

.help-action-label {
    font-size: 12px;
    color: #94a3b8;
    /* Dark default */
    margin-bottom: 2px;
}

body.theme-light .help-action-label {
    color: #64748b;
}

.help-action-value {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    /* Dark default */
}

body.theme-light .help-action-value {
    color: #0f172a;
}

.help-close-btn {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.help-close-btn:active {
    opacity: 0.9;
}

/* Adaptive Card Separator */
.card-separator {
    height: 1px;
    background-color: var(--border-color);
    /* Uses system border color */
    margin: 12px 0;
    opacity: 0.5;
}

body.theme-dark .card-separator {
    background-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .card-separator {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Route Styling */
.route-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.route-col {
    flex: 1;
}

.route-col.is-right {
    text-align: right;
}

.route-city {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.route-address {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.route-arrow {
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    opacity: 0.4;
}

.route-arrow img {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
    /* Reusing arrow-small-left */
}

/* Bid Status Card */
.bid-status-card {
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-align: justify;
}

.bid-label {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 4px;
}

.bid-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
}

.bid-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: #3b82f6;
}

.bid-comment {
    margin-top: 8px;
    font-size: 13px;
    color: #1e3a8a;
    font-style: italic;
}

/* Dark Mode Overrides for Bid Status */
body.theme-dark .bid-status-card {
    background: rgba(59, 130, 246, 0.15);
    /* Slightly more visible on dark */
    border-color: rgba(59, 130, 246, 0.3);
}

body.theme-dark .bid-label {
    color: #93c5fd;
    /* Light Blue 300 to stand out on dark */
}

body.theme-dark .bid-amount {
    color: #bfdbfe;
    /* Light Blue 200 */
}

body.theme-dark .bid-badge {
    background: rgba(59, 130, 246, 0.2);
    /* Darker bg for badge */
    color: #bfdbfe;
    /* Light text */
    border: 1px solid rgba(59, 130, 246, 0.4);
}

body.theme-dark .bid-comment {
    color: #93c5fd;
}

/* Waypoints Styling (Reused from Cargo Creation) */
.waypoints-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.waypoints-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.waypoints-subtitle {
    font-size: 13px;
    color: var(--muted);
}

.btn-add-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-compact:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-add-compact:active {
    transform: scale(0.95);
}

.btn-add-compact.hidden {
    display: none;
}

.btn-add-compact svg {
    color: #3b82f6;
}

.waypoints-container {
    margin: 0 0 16px;
}

.waypoint-item {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.waypoint-item .form-group {
    flex: 1;
    margin-bottom: 0;
}

.waypoint-item .form-label {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.waypoint-remove {
    width: 40px;
    height: 45px;
    min-width: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.waypoint-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.waypoint-remove:active {
    transform: scale(0.95);
}

.waypoint-remove svg {
    color: #ef4444;
}

.info-message {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 24px;
}

body.theme-light .info-message {
    background: #eff6ff;
    border-color: #bfdbfe;
}


body.theme-dark .bid-comment {
    color: #93c5fd;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg, #ffffff);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.04));
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-item:hover:not(.active):not(.dots) {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary);
}

.pagination-item.active {
    background: var(--primary);
    /* Usually blue */
    color: var(--text-primary, inherit);
    /* Force white text */
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    /* Stronger shadow */
}

.pagination-item.dots {
    color: var(--text-secondary);
    cursor: default;
}

/* Dark Mode Overrides */
body.theme-dark .pagination {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.theme-dark .pagination-item:hover:not(.active):not(.dots) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Fix for Find Transport mobile layout: 1 card per row */
@media (max-width: 768px) {
    .driver-cargo-list .order-card {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Sidebar Filter Styles - Adapted for Dark/Light Mode using Variables */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: grid;
    gap: 8px;
}

.filter-input,
.date-input,
.select-trigger {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: inherit;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-input::placeholder {
    color: var(--muted);
}

.date-input {
    color-scheme: dark;
}

body.theme-light .date-input {
    color-scheme: light;
}

.select-trigger {
    cursor: pointer;
    min-height: 46px;
}

.select-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.6;
}

body.theme-light .select-icon {
    filter: none;
    opacity: 0.5;
}

/* Header User Card (Rich Profile Link) */
.header-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: 12px;
}

.header-user-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header-user-card.is-hidden {
    display: none;
}

.header-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    /* Removed box-shadow for cleaner look */
}

.header-user-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-img.hidden {
    display: none;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-contact {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.2;
}

/* Light Theme Overrides */
body.theme-light .header-user-card {
    background: transparent;
    border: none;
}

body.theme-light .header-user-card:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light .header-user-name {
    color: #0f172a;
}

body.theme-light .header-user-contact {
    color: #64748b;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .order-card {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Ensure desktop lang button is visible on desktop */
@media (min-width: 769px) {
    .mobile-inline {
        display: none !important;
    }

}

/* User Model Light Theme Fixes */
body.theme-light .user-modal__content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.2);
}

body.theme-light .user-modal__close {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

body.theme-light .user-modal__close img {
    filter: invert(1);
    /* Invert to make it black */
}

body.theme-light .user-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.theme-light .user-modal__header-card {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .user-modal__name {
    color: #0f172a;
}

body.theme-light .user-modal__link {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .user-modal__link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .user-modal__label {
    color: #0f172a;
}

body.theme-light .user-modal__icon-box {
    background: rgba(0, 0, 0, 0.05);
}

body.theme-light .user-modal__icon-box img {
    filter: var(--icon-filter);
    opacity: 0.7;
}

body.theme-light .user-modal__footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Fix for specific colored icons in light mode */
body.theme-light .user-modal__link[href*="create-order"] .user-modal__icon-box {
    background: rgba(59, 130, 246, 0.1) !important;
}

body.theme-light .user-modal__link[href*="create-order"] .user-modal__icon-box img {
    filter: var(--icon-filter) !important;
}

body.theme-light .user-modal__link[href*="cargo"] .user-modal__icon-box {
    background: rgba(16, 185, 129, 0.1) !important;
}

body.theme-light .user-modal__link[href*="cargo"] .user-modal__icon-box img {
    filter: var(--icon-filter) !important;
}

/* Focus states */
.filter-input:focus,
.date-input:focus,
.select-trigger:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    /* In dark mode, slightly lighten the background on focus/hover for visibility */
    background: rgba(255, 255, 255, 0.08);
}

body.theme-light .filter-input:focus,
body.theme-light .date-input:focus,
body.theme-light .select-trigger:hover {
    background: #ffffff;
}

/* User Modal (Full Screen) */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
}

.user-modal.open {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
    /* Override inline style */
}

.user-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 21, 48, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    /* Dark theme base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    padding: 32px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.user-modal.open .user-modal__content {
    transform: translateY(0) scale(1);
}

.user-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}

.user-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
.user-modal__header-card {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-modal__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

.user-modal__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.user-modal__role {
    margin: 4px 0 0;
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.user-modal__section-title {
    margin: 0 0 16px;
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    font-weight: 700;
}

.user-modal__nav {
    display: grid;
    gap: 12px;
}

.user-modal__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-modal__link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.user-modal__icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-modal__icon-box img {
    width: 24px;
    height: 24px;
    filter: var(--icon-filter);
    opacity: 0.8;
}

.user-modal__text {
    flex: 1;
}

.user-modal__label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.user-modal__desc {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.user-modal__footer {
    margin-top: 32px;
}

.user-modal__logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-modal__logout img {
    width: 20px;
    height: 20px;
    filter: invert(36%) sepia(87%) saturate(2225%) hue-rotate(336deg) brightness(97%) contrast(92%);
    /* roughly red */
}

.user-modal__logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Light Theme Overrides */
body.theme-light .user-modal__backdrop {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
}

body.theme-light .user-modal__content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.12);
}

body.theme-light .user-modal__name {
    color: #0f172a;
}

body.theme-light .user-modal__role {
    color: #64748b;
}

body.theme-light .user-modal__label {
    color: #0f172a;
}

body.theme-light .user-modal__desc {
    color: #64748b;
}

body.theme-light .user-modal__link {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.05);
}

body.theme-light .user-modal__link:hover {
    background: #f1f5f9;
}

body.theme-light .user-modal__icon-box {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


body.theme-light .user-modal__close {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

body.theme-light .user-modal__close img {
    filter: invert(1);
}

body.theme-light .user-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile Page Title support for Client Cabinet */
.brand-title-mobile {
    display: none;
    font-weight: 600;
    font-size: 24px;
    color: #e2e8f0;
}

body.theme-light .brand-title-mobile {
    color: #0f172a;
}

@media (max-width: 768px) {
    .logo-hide-mobile {
        display: none;
    }

    .brand-title-mobile {
        display: block;
    }
}

/* Share Icon Theme Adaptation */
.share-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

body.theme-light .share-icon {
    filter: none;
}

/* --- DESKTOP DASHBOARD LAYOUT --- */
@media (min-width: 1024px) {
    .desktop-wrapper {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 32px;
        max-width: 1240px;
        width: 100%;
        margin: 40px auto;
        padding: 0 24px;
        align-items: start;
        box-sizing: border-box;
    }

    .cabinet-sidebar {
        display: block;
        background: var(--card-bg);
        border-radius: 24px;
        padding: 24px;
        position: sticky;
        top: 100px;
        border: 1px solid var(--card-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
    }

    .sidebar-user-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px;
        border-radius: 16px;
        background: var(--bg-secondary);
        border: 1px solid var(--card-border);
    }

    .sidebar-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
        background: linear-gradient(135deg, #3b82f6, #0ea5e9);
        color: white;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 20px;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    }

    .sidebar-user-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        overflow: hidden;
    }

    .sidebar-name {
        font-weight: 700;
        font-size: 15px;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-role {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .nav-section-label {
        font-size: 11px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin: 20px 0 8px 12px;
        font-weight: 700;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        border-radius: 14px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 600;
        font-size: 15px;
        border: 1px solid transparent;
        background: transparent;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }

    .sidebar-link img {
        width: 22px;
        height: 22px;
        opacity: 0.7;
        transition: all 0.2s;
        filter: var(--icon-filter);
    }

    .sidebar-link:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
        transform: translateX(4px);
    }

    .sidebar-link:hover img {
        opacity: 1;
        transform: scale(1.1);
    }

    .sidebar-link.active {
        background: rgba(59, 130, 246, 0.08);
        color: #2563eb;
        border-color: rgba(59, 130, 246, 0.1);
    }

    .sidebar-link.active img {
        opacity: 1;
        filter: invert(32%) sepia(85%) saturate(2389%) hue-rotate(202deg) brightness(96%) contrast(92%);
    }

    .sidebar-cta {
        margin-top: 14px;
        padding-top: 4px;
        border-top: 1px solid var(--card-border);
    }

    .logout-link {
        margin-top: 14px;
        background: rgba(239, 68, 68, 0.08);
        color: #dc2626;
    }

    .logout-link:hover {
        background: rgba(239, 68, 68, 0.08);
        color: #dc2626;
    }

    .logout-link img {
        filter: invert(35%) sepia(61%) saturate(3015%) hue-rotate(336deg) brightness(98%) contrast(93%);
    }

    .logout-link:hover img {
        filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(338deg) brightness(93%) contrast(92%);
    }

    /* Adjust content area on desktop */
    .profile-screen {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Reset .layout styles when in desktop mode to avoid double padding/centering */
    .desktop-content {
        width: 100%;
        min-width: 0;
        /* Prevent grid blowout */
    }

    .desktop-content .layout,
    .desktop-content .order-page,
    .desktop-content .client-home,
    .desktop-content .profile-screen {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Ensure specific containers expand */
    .desktop-content .driver-cargo-list {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .cabinet-sidebar {
        display: none;
    }

    .desktop-wrapper {
        display: block;
    }
}

/* Support widget */
.support-widget {
    position: fixed;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 950;
}

.support-widget.is-hidden {
    display: none;
}

.support-widget__bubble {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

body.theme-light .support-widget__bubble {
    background: #ffffff;
}

.support-widget__bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.support-widget__message {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 32px 8px 12px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: min(320px, 70vw);
}

.support-widget__message::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 12px;
    border-left: 6px solid rgba(15, 23, 42, 0.82);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

body.theme-light .support-widget__message {
    background: #ffffff;
}

body.theme-light .support-widget__message::after {
    border-left-color: #ffffff;
}

.support-widget__name {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.2;
}

.support-widget__prompt {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    line-height: 1.35;
}

.support-widget__dismiss {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: transparent;
    color: var(--muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-widget__dismiss:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-light .support-widget__dismiss:hover {
    background: rgba(15, 23, 42, 0.08);
}

.support-panel {
    position: fixed;
    inset: 0;
    z-index: 960;
    display: none;
}

.support-panel.is-open {
    display: block;
}

.support-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.support-panel__card {
    position: absolute;
    right: 20px;
    bottom: 96px;
    width: min(360px, calc(100% - 32px));
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--panel-shadow);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.support-panel.is-open .support-panel__card {
    transform: translateY(0);
    opacity: 1;
}

.support-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.support-panel__intro {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.support-panel__intro-bubble {
    position: relative;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.support-panel__intro-bubble::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 10px;
    border-left: 6px solid var(--card-bg);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

body.theme-light .support-panel__intro-bubble {
    background: #ffffff;
}

body.theme-light .support-panel__intro-bubble::after {
    border-left-color: #ffffff;
}

.support-panel__intro-name {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}

.support-panel__intro-text {
    font-size: 14px;
    line-height: 1.35;
}

.support-panel__intro-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(14, 165, 233, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.support-panel__intro-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.support-panel__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.support-panel__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-panel__label {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.support-panel__textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: inherit;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 96px;
}

.support-panel__textarea:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.6);
}

.support-panel__input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: inherit;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 10px;
}

.support-panel__input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.6);
}

.support-panel__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.support-panel__submit {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.support-panel__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.support-panel__status {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    min-height: 16px;
}

.support-panel__status.is-success {
    color: #22c55e;
}

.support-panel__status.is-error {
    color: #ef4444;
}

body.support-panel-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .support-widget {
        bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .support-panel__card {
        bottom: calc(160px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    .support-widget {
        right: 16px;
        bottom: calc(50px + env(safe-area-inset-bottom));
    }

    .support-widget__prompt {
        max-width: 220px;
    }

    .support-panel__card {
        left: 16px;
        right: 16px;
        bottom: calc(160px + env(safe-area-inset-bottom));
        width: auto;
    }
}
