/* Global Cargo Custom Styles - Mobile First */

:root {
    --primary-color: #1890ff;
    --primary-text-color: #fff;
    --primary-hover: #40a9ff;
    --primary-active: #096dd9;
    --primary-light: #e6f7ff;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --bg-color: #ffffff;
    --text-color: rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.45);
    --text-disabled: rgba(0,0,0,0.25);
    --border-color: #d9d9d9;
    --border-light: #f0f0f0;
    --hover-bg: #f8f9fa;
}

/* Bootstrap Primary Color Overrides (theme from settings) */
.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-text-color, #fff);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border: 1px solid var(--primary-hover);
    color: var(--primary-text-color, #fff);
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary.active {
    background-color: var(--primary-active);
    border: 1px solid var(--primary-active);
    color: var(--primary-text-color, #fff);
    box-shadow: 0 0 0 0.2rem var(--primary-shadow-strong);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--text-disabled);
    border: 1px solid #d9d9d9;
    color: var(--text-disabled);
    opacity: 1;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: var(--primary-text-color, #fff);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:active,
.btn-outline-primary:focus {
    color: var(--primary-text-color, #fff);
    background-color: var(--primary-active);
    border: 1px solid var(--primary-active);
    box-shadow: 0 0 0 0.2rem var(--primary-shadow-strong);
}

/* Base Mobile Styles – compact text/size like reference (small fonts, tight spacing) */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    color: var(--text-color);
}

/* Single continuous frame - side lines never break at any zoom (25%-99%) */
.app-frame {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    min-height: calc(100vh + 60px);
    height: 100%;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-top: none;
    border-bottom: none;
    pointer-events: none;
    z-index: 1001;
    box-sizing: border-box;
    backface-visibility: hidden;
    transform: translateZ(0);
}

main {
    flex: 1;
    width: 100%;
    background: var(--bg-color);
    padding: 0;
}

.app-main {
    position: relative;
    padding-top: 60px; /* Exact header min-height - no gap */
    padding-bottom: 100px; /* Space for bottom nav with floating button */
    min-height: 100vh;
    background: #f9fafb;
    margin-top: 0;
}

/* Pages with app-content - content connects directly to header */
.app-main .app-content {
    padding-top: 0;
    margin-top: 0; /* Ensure no gap between header and content */
}

/* Admin pages - add spacing between header and content */
body.admin-page .app-main .app-content {
    padding-top: 24px;
    margin-top: 0;
}

/* Admin pages - adjust padding since they don't have bottom nav */
main.app-main:not(:has(.app-content)) {
    padding-bottom: 24px; /* Less padding for admin pages */
}

/* Container - Matching Ant Design */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    margin: 0 auto;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Typography - Matching Ant Design Scale */
h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.19;
    color: rgba(0,0,0,0.88);
}

h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.235;
    color: rgba(0,0,0,0.88);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.286;
    color: rgba(0,0,0,0.88);
}

h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.364;
    color: rgba(0,0,0,0.88);
}

h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.444;
    color: rgba(0,0,0,0.88);
}

h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.5;
    color: rgba(0,0,0,0.88);
}

p {
    margin-bottom: 1em;
    font-size: 16px;
    line-height: 1.5;
}

/* App Header - Mobile First Design */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: auto;
    min-height: 52px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
}

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

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    padding: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.logo-circle:has(img) {
    border: none;
    background: transparent;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.logo-circle svg {
    width: 20px;
    height: 20px;
    color: #fff;
    fill: currentColor;
}

.page-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #475569;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-icon {
    position: relative;
    font-size: 20px;
    color: rgba(0,0,0,0.88);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon-svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.ant-badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d4f;
    box-shadow: 0 0 0 1px #fff;
    transform: translate(50%, -50%);
}

.ant-badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 1px #fff;
    white-space: nowrap;
    transform: scale(1);
}

.ant-badge-color-red {
    background: #ff4d4f;
}

.user-icon {
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon:hover {
    opacity: 0.8;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-avatar i {
    font-size: 18px;
    line-height: 1;
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Navigation - Matching Ant Design */
.navbar {
    padding: 16px 0;
    background: #fff !important;
    border-bottom: 1px solid #d9d9d9;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0,0,0,0.88) !important;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 32px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-link {
    padding: 8px 16px;
    font-size: 16px;
    color: rgba(0,0,0,0.88) !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: #ddd;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons - Matching Ant Design */
.btn {
    border-radius: 2px;
    padding: 4px 15px;
    font-weight: 400;
    font-size: 16px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 0;
    transition: all 0.2s;
    border: 1px solid #d9d9d9;
}

.btn i {
    font-size: 16px;
}

.btn:last-child {
    margin-bottom: 0;
}

.btn-lg {
    padding: 6px 15px;
    font-size: 18px;
    height: 40px;
}

.btn-sm {
    padding: 0px 7px;
    font-size: 16px;
    height: 24px;
}

.btn-group .btn {
    width: auto;
    margin-bottom: 0;
}

/* Admin header button */
.btn-admin-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: rgba(0,0,0,0.88);
    cursor: pointer;
}

.btn-admin-header i {
    font-size: 15px;
}

.btn-admin-header:hover {
    background: #f5f5f5;
}

/* Forms - Matching Ant Design */
.form-control, .form-select {
    border-radius: 2px;
    padding: 4px 11px;
    border: 1px solid #d9d9d9;
    font-size: 16px;
    height: 32px;
    width: 100%;
    line-height: 1.5;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-shadow-strong);
    outline: none;
}

.form-label {
    font-weight: normal;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
}

/* Cards - Matching Ant Design */
.card {
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    margin-bottom: 16px;
    border-radius: 2px;
    width: 100%;
    background: #fff;
}

.card-header {
    background: var(--primary-color);
    color: rgba(0,0,0,0.88);
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 2px 2px 0 0 !important;
    border-bottom: 1px solid #d9d9d9;
    font-size: 18px;
    line-height: 1.444;
    min-height: 58px;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 24px;
}

/* Tables - Matching Ant Design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    border-radius: 2px;
    overflow: hidden;
    font-size: 16px;
    width: 100%;
    min-width: 600px;
    border: 1px solid #d9d9d9;
}

.table thead {
    background: var(--primary-color);
    color: rgba(0,0,0,0.88);
}

.table thead th {
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px solid #d9d9d9;
}

.table thead th:not(:last-child) {
    border-right: 1px solid #d9d9d9;
}

.table tbody td {
    padding: 16px;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody td:not(:last-child) {
    border-right: 1px solid #f0f0f0;
}

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

.table tbody tr:hover {
    background: #fafafa;
}

/* Status badges */
.badge {
    padding: 0 8px;
    font-size: 14px;
    border-radius: 2px;
    font-weight: normal;
    display: inline-block;
    line-height: 20px;
    height: 20px;
}

.badge-primary,
.bg-primary.badge {
    background-color: var(--primary-color);
    color: rgba(0,0,0,0.88);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

a:active {
    color: var(--primary-active);
}

/* Alerts */
.alert {
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.alert-primary {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: rgba(0,0,0,0.88);
}

/* App Content - Mobile First Layout */
.app-content {
    padding: 0 16px 96px 16px;
    max-width: 640px;
    margin: 0 auto;
    margin-top: 0;
    width: 100%;
    background: #f9fafb;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Search Container */
.search-container {
    margin-top: 20px;
    margin-bottom: 24px;
}

.track-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    color: #ff8c42;
    flex-shrink: 0;
    height: 100%;
}

.search-icon-wrapper:hover {
    background: rgba(255, 140, 66, 0.05);
}

.search-icon {
    font-size: 22px;
    color: #ff8c42;
}

.track-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: rgba(0,0,0,0.88);
    outline: none;
    padding: 14px 16px 14px 12px;
    height: 48px;
}

.track-search-input::placeholder {
    color: #9ca3af;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    grid-auto-flow: row;
    align-items: start;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stats-grid .stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-grid .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(0,0,0,0.88);
    transition: all 0.2s ease;
    min-height: auto;
    cursor: pointer;
    min-width: 0;
    flex: 1 1 0;
    height: 100%;
    box-shadow: none;
    transform: translateY(0);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: transparent;
}

.quick-action-btn:active {
    border-color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    background: transparent;
}

.quick-action-btn:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
    transform: translateY(0);
    background: transparent;
}

.quick-action-btn:focus:not(:hover):not(:active) {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(0);
    background: transparent;
}

.action-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 25px;
}

.action-icon-wrapper.blue {
    background: #eff6ff;
    color: var(--primary-color);
}

.action-icon-wrapper.orange {
    background: #fff5e6;
    color: #FF6B35;
}

.action-icon-svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.action-icon-wrapper.green {
    background: #f0fdf4;
    color: #22c55e;
}

.action-icon-wrapper.purple {
    background: #faf5ff;
    color: #a855f7;
}

.action-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
    color: rgba(0,0,0,0.88);
    font-weight: 500;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cargo Status Section */
.cargo-status-section {
    text-align: center;
    padding: 32px 16px;
    background: #f9fafb;
    margin-bottom: 24px;
    border-radius: 8px;
}

.status-illustration {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-empty-image {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-empty-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.package-icon {
    font-size: 80px;
    color: #4A90E2;
    position: relative;
}

.package-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 8px;
    background: #E8F4FD;
    border-radius: 4px;
}

.status-message {
    font-size: 16px;
    color: rgba(0,0,0,0.88);
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-add-track {
    width: 150px;
    max-width: 150px;
    height: 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 8px 24px;
    box-shadow: none;
}

.btn-add-track:hover {
    background-color: var(--primary-hover);
    border: none;
    color: #fff;
    box-shadow: none;
}

.btn-add-track:active,
.btn-add-track:focus {
    background-color: var(--primary-active);
    border: none;
    color: #fff;
    box-shadow: none;
}

.btn-add-track span {
    display: inline-block;
    color: #fff;
}

/* Cargo Results Section (check.php) */
.cargo-results-section {
    margin-bottom: 24px;
}

.result-card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.result-card.success {
    border-left: 4px solid #28a745;
}

.result-card.warning {
    border-left: 4px solid #ffc107;
}

.result-card.info {
    border-left: 4px solid #0dcaf0;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 18px;
}

.result-header i {
    font-size: 24px;
}

.result-card.success .result-header i {
    color: #28a745;
}

.result-card.warning .result-header i {
    color: #ffc107;
}

.result-card.info .result-header i {
    color: #0dcaf0;
}

.result-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(0,0,0,0.88);
}

.result-content {
    margin-bottom: 16px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: rgba(0,0,0,0.45);
    font-weight: normal;
}

.result-value {
    font-size: 16px;
    color: rgba(0,0,0,0.88);
    font-weight: 500;
    text-align: right;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.result-actions .btn {
    flex: 1;
    height: 40px;
}

/* QR Scanner Section (scan.php) */
.qr-scanner-section {
    margin-bottom: 24px;
}

.scanner-card,
.manual-input-card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.scanner-header,
.manual-input-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scanner-header i,
.manual-input-header i {
    font-size: 20px;
    color: var(--primary-color);
}

.scanner-header h5,
.manual-input-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(0,0,0,0.88);
}

.scanner-content,
.manual-input-content {
    padding: 24px;
}

.scanner-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 2px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.scanner-info i {
    color: #1890ff;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.scanner-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(0,0,0,0.88);
    line-height: 1.5;
}

.scanner-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.scanner-controls .btn {
    flex: 1;
    height: 48px;
    font-size: 16px;
}

.scan-result-container {
    margin-top: 16px;
    min-height: 50px;
}

#qr-reader {
    margin-bottom: 16px;
}

.manual-input-content .form-group {
    margin-bottom: 16px;
}

.manual-input-content .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 8px;
    color: rgba(0,0,0,0.88);
}

.manual-input-content .form-label i {
    color: var(--primary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-top: 1px solid #d9d9d9;
    border-left: none;
    border-right: none;
    border-bottom: none;
    z-index: 1000;
    box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
    height: auto;
    min-height: 60px;
    box-sizing: border-box;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px;
    position: relative;
    width: 100%;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.nav-icon i {
    font-size: 24px;
    color: inherit;
}

.nav-icon.active {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    width: 40px;
    height: 40px;
}

.nav-icon.active i {
    font-size: 20px;
}

/* Floating Action Button */
.floating-action-btn {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: all 0.2s;
}

.floating-action-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-action-btn i {
    font-size: 20px;
    font-weight: 600;
}

/* Home Page Content - Matching Ant Design */
.home-content {
    padding: 24px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(0,0,0,0.88);
    padding-bottom: 16px;
    border-bottom: 1px solid #d9d9d9;
}

/* Home Action Buttons */
.home-action-btn {
    display: flex;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    text-decoration: none;
    color: rgba(0,0,0,0.88);
    transition: all 0.2s;
    margin-bottom: 16px;
    min-height: auto;
}

.home-action-btn:hover {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 16px;
    flex-shrink: 0;
}

.action-content h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.364;
}

.action-content p {
    margin: 0;
    color: rgba(0,0,0,0.45);
    font-size: 16px;
    line-height: 1.5;
}

/* Service Links */
.service-link {
    display: block;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    text-decoration: none;
    color: rgba(0,0,0,0.88);
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.service-link i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.service-link:hover {
    background: #fafafa;
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding-left: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Help Section */
.help-content {
    background: #fff;
    padding: 24px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
}

.help-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.help-item:last-child {
    border-bottom: none;
}

.help-item h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.444;
}

.help-item p {
    margin: 0;
    color: rgba(0,0,0,0.88);
    line-height: 1.5;
    font-size: 16px;
}

/* Truck List Content */
.truck-list-content {
    background: #fff;
    padding: 24px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    text-align: center;
}

/* Contact Content */
.contact-content {
    background: #fff;
    padding: 24px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
}

.contact-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.444;
}

.contact-item p {
    margin: 0;
    color: rgba(0,0,0,0.88);
    font-size: 16px;
    line-height: 1.5;
}

/* Feature Cards - Mobile First */
.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: block;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.feature-card .btn {
    width: auto;
    margin: 0 auto;
}

/* QR Scanner Styles */
#qr-reader {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#qr-reader__dashboard {
    background: #fafafa;
    padding: 16px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    margin-bottom: 16px;
}

#qr-reader__camera_selection {
    margin-bottom: 16px;
}

#qr-reader__scan_region {
    border: 2px solid var(--primary-color);
    border-radius: 2px;
    overflow: hidden;
}

/* Admin Panel Styles */
.admin-sidebar {
    background: #fafafa;
    padding: 24px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    margin-bottom: 16px;
}

.admin-content {
    background: white;
    padding: 24px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

/* Icon Styles */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
}

.nav-link .bi {
    font-size: 1.1rem;
}

/* Bootstrap Spacing Overrides - Matching Ant Design */
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mb-5 { margin-bottom: 48px !important; }

.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-5 { margin-top: 48px !important; }

.p-1 { padding: 8px !important; }
.p-2 { padding: 16px !important; }
.p-3 { padding: 24px !important; }
.p-4 { padding: 32px !important; }
.p-5 { padding: 48px !important; }

.px-1 { padding-left: 8px !important; padding-right: 8px !important; }
.px-2 { padding-left: 16px !important; padding-right: 16px !important; }
.px-3 { padding-left: 24px !important; padding-right: 24px !important; }
.px-4 { padding-left: 32px !important; padding-right: 32px !important; }

.py-1 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-2 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-3 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-4 { padding-top: 32px !important; padding-bottom: 32px !important; }

/* Utility Classes */
.text-mongolian {
    font-family: 'Mongolian Baiti', 'Segoe UI', sans-serif;
}

.mt-custom {
    margin-top: 24px;
}

.mb-custom {
    margin-bottom: 24px;
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* QR Scan Success Animation */
@keyframes scanSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.scan-success {
    animation: scanSuccess 0.5s;
}

/* Row and Column Spacing - Matching Ant Design */
.row {
    margin-left: -8px;
    margin-right: -8px;
}

.row > * {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 0;
}

/* ============================================
   TABLET STYLES (576px and up)
   ============================================ */
@media (min-width: 576px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 24px;
        max-width: 576px;
    }
    
    .container-fluid {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        min-width: 180px;
    }
    
    .btn {
        width: auto;
        margin-bottom: 0;
        height: 32px;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .table {
        font-size: 16px;
    }
}

/* ============================================
   DESKTOP STYLES (768px and up)
   ============================================ */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .app-content {
        padding: 80px 24px 24px;
        max-width: 640px;
        border-left: none;
        border-right: none;
    }
    
    .app-header {
        max-width: 640px;
        border-radius: 12px 12px 0 0;
    }
    
    .app-content {
        background: #f9fafb;
    }
    
    .bottom-nav {
        max-width: 640px;
        border-radius: 0 0 12px 12px;
    }
    
    .app-main {
        background: #f9fafb;
    }
    
    .quick-actions-grid {
        max-width: 100%;
        gap: 8px;
        padding: 12px;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: row;
        align-items: start;
    }
    
    .quick-action-btn {
        min-height: auto;
        padding: 4px;
        min-width: 0;
        flex: 1 1 0;
        height: 100%;
        justify-content: flex-start;
        border: 2px solid transparent;
        border-radius: 8px;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .quick-action-btn:hover {
        border-color: var(--primary-color);
        background: transparent;
    }
    
    .quick-action-btn:active {
        border-color: var(--primary-color);
        background: transparent;
    }
    
    .quick-action-btn:focus {
        outline: none;
        border-color: transparent;
        box-shadow: none;
    }
    
    .quick-action-btn:focus:not(:hover) {
        border-color: transparent;
    }
    
    .action-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .action-icon-svg {
        width: 20px;
        height: 20px;
    }
    
    .action-label {
        font-size: 10px;
        line-height: 1.2;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 12px;
    }
    
    .stats-grid .stat-card {
        padding: 12px;
    }
    
    .stats-grid .stat-card > div:first-child > div {
        width: 32px;
        height: 32px;
    }
    
    .stats-grid .stat-card > div:first-child > div i {
        font-size: 16px;
    }
    
    .stats-grid .stat-card > div:last-child {
        font-size: 20px;
    }
    
    .container {
        padding: 0 24px;
        max-width: 768px;
    }
    
    .container-fluid {
        padding: 0 24px;
    }
    
    .navbar {
        padding: 16px 0;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    .home-action-btn {
        min-height: auto;
    }
    
    .action-icon {
        font-size: 32px;
    }
    
    .btn {
        padding: 4px 15px;
        width: auto;
        margin-bottom: 0;
        height: 32px;
    }
    
    .btn-lg {
        padding: 6px 15px;
        font-size: 18px;
        height: 40px;
    }
    
    .hero-section {
        padding: 50px 30px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .hero-section .btn {
        margin: 0 0.5rem;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .card-header {
        padding: 16px 24px;
        font-size: 18px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .table {
        font-size: 16px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 16px;
    }
    
    .form-control, .form-select {
        padding: 4px 11px;
        font-size: 16px;
        height: 32px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ============================================
   LARGE DESKTOP STYLES (992px and up)
   ============================================ */
@media (min-width: 992px) {
    .container {
        padding: 0 24px;
        max-width: 992px;
    }
    
    .container-fluid {
        padding: 0 24px;
    }
}

/* ============================================
   EXTRA LARGE DESKTOP STYLES (1200px and up)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        padding: 0 24px;
        max-width: 1200px;
    }
}

/* ============================================
   NOTIFICATION MODAL STYLES
   ============================================ */
.notification-modal .modal-dialog {
    max-width: 600px;
}

.notification-modal-content {
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.notification-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-active) 100%);
    color: rgba(0,0,0,0.88);
    padding: 16px 24px;
    border-bottom: 1px solid #d9d9d9;
    border-radius: 2px 2px 0 0;
}

.notification-modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.444;
}

.notification-modal-header .btn-close {
    filter: none;
    opacity: 0.6;
    color: rgba(0,0,0,0.88);
}

.notification-modal-header .btn-close:hover {
    opacity: 1;
    color: rgba(0,0,0,0.88);
}

.notification-modal-body {
    padding: 24px;
    font-size: 16px;
    line-height: 1.5;
    max-height: 60vh;
    overflow-y: auto;
}

.notification-content {
    color: #333;
}

.notification-content h1,
.notification-content h2,
.notification-content h3,
.notification-content h4,
.notification-content h5,
.notification-content h6 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.notification-content p {
    margin-bottom: 1rem;
}

.notification-content ul,
.notification-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.notification-content li {
    margin-bottom: 0.5rem;
}

.notification-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.notification-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #d9d9d9;
    background: #fafafa;
    border-radius: 0 0 2px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-modal-footer .form-check {
    margin: 0;
}

.notification-modal-footer .form-check-label {
    font-size: 16px;
    color: rgba(0,0,0,0.45);
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.notification-modal-footer .btn {
    min-width: 120px;
}

/* Priority-based styling */
.notification-high-priority .notification-modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.notification-medium-priority .notification-modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.notification-medium-priority .notification-modal-header .btn-close {
    filter: none;
    opacity: 0.5;
}

/* Modal backdrop */
.notification-modal.show .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Animation */
.notification-modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.notification-modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Mobile optimizations for home page */
@media (max-width: 768px) {
    .home-action-btn {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        min-height: auto;
    }
    
    .action-icon {
        margin-right: 0;
        margin-bottom: 16px;
        font-size: 32px;
    }
    
    .action-content h4 {
        font-size: 20px;
    }
    
    .action-content p {
        font-size: 16px;
    }
    
    .service-link {
        padding: 16px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .help-content,
    .contact-content,
    .truck-list-content {
        padding: 16px;
    }
    
    .help-item,
    .contact-item {
        padding: 16px 0;
    }
    
    .help-item h5,
    .contact-item h5 {
        font-size: 16px;
    }
    
    .navbar-collapse {
        margin-top: 16px;
        border-top: 1px solid #d9d9d9;
        padding-top: 8px;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Notification modal mobile optimizations */
@media (max-width: 768px) {
    .notification-modal .modal-dialog {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
    
    .notification-modal-header {
        padding: 16px;
    }
    
    .notification-modal-header .modal-title {
        font-size: 16px;
    }
    
    .notification-modal-body {
        padding: 16px;
        font-size: 16px;
        max-height: 50vh;
    }
    
    .notification-modal-footer {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .notification-modal-footer .form-check {
        order: 2;
    }
    
    .notification-modal-footer .btn {
        order: 1;
        width: 100%;
    }
}

/* Scrollbar styling for modal body */
.notification-modal-body::-webkit-scrollbar {
    width: 8px;
}

.notification-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notification-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.notification-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Profile Sidebar Styles */
.profile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: none;
}

.profile-sidebar.show {
    display: block;
}

.profile-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.profile-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 400px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.profile-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.profile-sidebar-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.88);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.profile-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.profile-sidebar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.profile-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.profile-user-info {
    text-align: center;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar i {
    font-size: 48px;
    color: #6b7280;
    line-height: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 14px;
    color: #9ca3af;
}

.profile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.88);
    transition: all 0.2s;
}

.profile-menu-item:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    text-decoration: none;
}

.profile-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.profile-menu-icon i {
    font-size: 28px;
    color: #fff;
}

.profile-menu-icon svg {
    color: #fff;
    display: block;
    width: 28px;
    height: 28px;
}

.profile-menu-content {
    flex: 1;
}

.profile-menu-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 4px;
}

.profile-menu-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.profile-menu-arrow {
    color: #9ca3af;
    font-size: 18px;
    margin-left: 8px;
}

/* Profile Authentication Styles */
.profile-auth-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.profile-auth-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
}

.profile-login-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
}

.profile-login-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.profile-register-btn {
    background: #fff;
    border-color: #e5e7eb;
}

.profile-auth-form {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.profile-auth-form-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 20px;
    text-align: center;
}

.profile-auth-form .form-item {
    margin-bottom: 16px;
}

.profile-auth-form .form-item:last-child {
    margin-bottom: 0;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .password-icon {
    position: absolute;
    left: 12px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.password-input-wrapper .password-input {
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.password-input-wrapper .password-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow-light);
    outline: none;
}

.password-input-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color 0.2s ease;
}

.password-input-wrapper .password-toggle:hover {
    color: rgba(0, 0, 0, 0.65);
}

.password-input-wrapper .password-toggle:focus {
    outline: none;
    color: var(--primary-color);
}

.profile-auth-error {
    padding: 12px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
}

.profile-auth-submit-btn {
    margin-bottom: 8px;
}

.profile-auth-cancel-btn {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.45);
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.profile-auth-cancel-btn:hover {
    color: rgba(0, 0, 0, 0.88);
}

.profile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.profile-logout-btn {
    width: 100%;
    padding: 14px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-logout-btn:hover {
    background: #c82333;
}

.profile-logout-btn i {
    font-size: 18px;
}

/* Notification Sidebar Styles */
.notification-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: none;
}

.notification-sidebar.show {
    display: block;
}

.notification-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.notification-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 400px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.notification-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.notification-sidebar-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.88);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.notification-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.notification-sidebar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.notification-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
}

.notification-item.unread {
    background: #f0f7ff;
    border-color: #1890ff;
}

.notification-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notification-item-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    flex: 1;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4f;
    margin-left: 8px;
    flex-shrink: 0;
}

.notification-item-content {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-item-time {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

.notification-empty-state {
    text-align: center;
    padding: 40px 20px;
}

/* Track Drawer - Bottom Side Bar */
.track-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
}

.track-drawer.show {
    display: block;
}

.track-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.track-drawer-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.track-drawer.show .track-drawer-content {
    transform: translateY(0);
}

.track-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.track-drawer-header-title {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.track-drawer-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    z-index: 1;
}

.track-drawer-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.track-drawer-close i {
    font-size: 20px;
}

.track-drawer-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.track-drawer-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.track-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.track-add-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.track-add-form .form-item {
    margin-bottom: 0;
}

.track-add-form .form-item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-add-form .form-item-label {
    margin-bottom: 0;
}

.track-add-form .form-item-label label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 0;
}

.track-add-form .form-item-required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.track-add-form .form-item-control {
    width: 100%;
}

.track-add-form .form-item-control-input {
    width: 100%;
}

.track-add-form .form-item-control-input-content {
    width: 100%;
}

.track-add-form .form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.track-add-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.track-add-form .form-input::placeholder {
    color: rgba(0, 0, 0, 0.25);
}

.track-add-form .btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.track-add-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.track-add-form .btn-full {
    width: 100%;
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.show {
    display: flex;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.login-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

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

.login-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.login-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.login-modal-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.login-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
}

.login-modal-close i {
    font-size: 18px;
}

.login-modal-body {
    padding: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-item {
    margin-bottom: 0;
}

.login-form .form-item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form .form-item-control {
    width: 100%;
}

.login-form .form-item-control-input {
    width: 100%;
}

.login-form .form-item-control-input-content {
    width: 100%;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.phone-icon {
    position: absolute;
    left: 16px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.login-form .phone-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.login-form .phone-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.login-form .phone-input::placeholder {
    color: rgba(0, 0, 0, 0.25);
}

.btn-login-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit i {
    font-size: 18px;
}

.btn-login-submit svg {
    color: #fff !important;
    fill: #fff !important;
}

/* Verification Modal Styles */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verification-modal.show {
    display: flex;
}

.verification-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.verification-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

.verification-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.verification-modal-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verification-icon {
    font-size: 24px;
    color: #ff9800;
}

.verification-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.verification-modal-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.verification-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
}

.verification-modal-close i {
    font-size: 18px;
}

.verification-modal-body {
    padding: 24px;
}

.verification-message {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

.verification-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-verify-no,
.btn-verify-yes {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-verify-no {
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    border: 1px solid #d9d9d9;
}

.btn-verify-no:hover {
    background: #f5f5f5;
    border-color: #bfbfbf;
}

.btn-verify-yes {
    background: #1890ff;
    color: #fff;
}

.btn-verify-yes:hover {
    background: #40a9ff;
}

/* Locked State Section */
.locked-state-section {
    background: #fff;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    margin: 16px 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.locked-icon-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.locked-icon {
    width: 64px;
    height: 64px;
    color: #3b82f6;
}

.locked-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0 0 12px 0;
}

.locked-message {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Login Button Styles */
.btn-login-header {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-login-header:hover {
    background: var(--primary-hover);
}

.btn-login-header i {
    font-size: 16px;
}

.btn-login-content {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login-content:hover {
    background: var(--primary-hover);
}

.btn-login-content i {
    font-size: 18px;
}

/* Branch Selection Modal Styles */
.branch-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.branch-modal.show {
    display: flex;
}

.branch-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.branch-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

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

.branch-modal-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.branch-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.branch-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.branch-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.branch-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.branch-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.branch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.branch-card-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.branch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f0fdf4;
    border-radius: 4px;
    font-size: 12px;
    color: #22c55e;
}

.branch-badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branch-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.branch-info-icon {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.branch-info-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.5;
    flex: 1;
}

.branch-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    transition: background 0.2s;
}

.branch-map-link:hover {
    background: #bae7ff;
    color: #1890ff;
}

/* Branch Selection Notification (Top Up Style) */
.branch-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3001;
    display: none;
    padding: 16px;
    pointer-events: none;
}

.branch-notification.show {
    display: block;
    pointer-events: auto;
}

.branch-notification-content {
    position: relative;
    background: #fff;
    border-radius: 0 0 12px 12px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: notificationSlideDown 0.3s ease-out;
    overflow: hidden;
}

@keyframes notificationSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.branch-notification-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-light);
}

.branch-notification-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.branch-notification-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

.branch-notification-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
}

.branch-notification-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 80px);
}

.branch-notification-body .branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

/* Mobile optimizations for branch notification */
@media (max-width: 767px) {
    .branch-notification {
        padding: 12px;
    }
    
    .branch-notification-content {
        max-height: 70vh;
        border-radius: 0 0 8px 8px;
    }
    
    .branch-notification-header {
        padding: 16px 20px;
    }
    
    .branch-notification-title {
        font-size: 16px;
    }
    
    .branch-notification-body {
        padding: 16px 20px;
        max-height: calc(70vh - 70px);
    }
    
    .branch-notification-body .branch-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Address Drawer - Bottom Side Bar (Similar to Track Drawer) */
.address-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
}

.address-drawer.show {
    display: block;
}

.address-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.address-drawer-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.address-drawer.show .address-drawer-content {
    transform: translateY(0);
}

.address-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.address-drawer-header-title {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.address-drawer-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    z-index: 1;
}

.address-drawer-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.address-drawer-close i {
    font-size: 20px;
}

.address-drawer-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.address-drawer-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.address-drawer-video-link {
    width: 100%;
}

.video-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 200px;
}

.video-link-btn:hover {
    background: var(--primary-hover);
    color: rgba(0, 0, 0, 0.88);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-link-btn i {
    font-size: 18px;
}

.address-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    background: #f5f5f5;
}

#mongolian-addresses-section,
#ereen-addresses-section {
    background: transparent;
}

.address-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.address-loading .spinner-border {
    margin-bottom: 16px;
}

.address-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.address-empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.25);
}

.address-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Address Drawer Action Buttons */
.address-drawer-action-buttons {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
}

.address-action-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.address-action-btn i {
    font-size: 18px;
}

.address-action-btn-primary {
    background: #fff;
    color: rgba(0, 0, 0, 0.65);
    border: 1.5px solid #d9d9d9;
}

.address-action-btn-primary:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.address-action-btn-primary:active {
    background: #f0f0f0;
    border-color: var(--primary-active);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.address-action-btn-secondary {
    background: #fff;
    color: rgba(0, 0, 0, 0.65);
    border: 1.5px solid #d9d9d9;
}

.address-action-btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.address-action-btn-secondary:active {
    background: #f0f0f0;
    border-color: var(--primary-active);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.address-action-btn-primary.active {
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px var(--primary-shadow-strong);
    font-weight: 600;
}

.address-action-btn-secondary.active {
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px var(--primary-shadow-strong);
    font-weight: 600;
}

/* Address Branch Sections */
.address-branch-section {
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.address-branch-header {
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.address-branch-header:hover {
    background: #f3f4f6;
}

.address-branch-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.address-chevron {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.45);
    transition: transform 0.2s;
}

.address-branch-content {
    padding: 20px;
}

/* Address Items */
.address-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.address-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.address-field {
    margin-bottom: 16px;
}

.address-field:last-child {
    margin-bottom: 0;
}

.address-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.address-field-label span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
}

.address-copy-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--primary-color, #f2d40d);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
}

.address-copy-btn:hover {
    background: var(--primary-shadow-light);
    color: var(--primary-active, #d4c00a);
}

.address-copy-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color, #f2d40d);
    fill: none;
}

.address-field-value {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.5;
    word-break: break-word;
}

/* Copy All Button */
.address-copy-all-wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.address-copy-all-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.address-copy-all-btn i {
    font-size: 18px;
}

/* User Cargo Management Page Styles */
.user-cargo-page {
    padding-bottom: 100px;
}

/* 4 статус – жижиг текст, нягт pill стайл (reference зургийн дагуу) */
.status-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    margin-top: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.status-pill {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(0,0,0,0.65);
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Status-specific colors (configurable via admin settings) */
.status-pill.status-waiting-for-pickup {
    background: var(--status-waiting-for-pickup-light);
    color: var(--status-waiting-for-pickup);
}
.status-pill.status-registered {
    background: var(--status-registered-light);
    color: var(--status-registered);
}
.status-pill.status-out-for-delivery {
    background: var(--status-out-for-delivery-light);
    color: var(--status-out-for-delivery);
}
.status-pill.status-received {
    background: var(--status-received-light);
    color: var(--status-received);
}

.status-pill:hover {
    background: #ebebeb;
    color: rgba(0,0,0,0.88);
    border-color: transparent;
}

.status-pill.status-waiting-for-pickup:hover { background: var(--status-waiting-for-pickup-light); color: var(--status-waiting-for-pickup); filter: brightness(0.95); }
.status-pill.status-registered:hover { background: var(--status-registered-light); color: var(--status-registered); filter: brightness(0.95); }
.status-pill.status-out-for-delivery:hover { background: var(--status-out-for-delivery-light); color: var(--status-out-for-delivery); filter: brightness(0.95); }
.status-pill.status-received:hover { background: var(--status-received-light); color: var(--status-received); filter: brightness(0.95); }

.status-pill.active {
    background: var(--primary-light);
    color: #c9a000 !important;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

.status-pill.status-waiting-for-pickup.active {
    background: var(--status-waiting-for-pickup-light);
    color: var(--status-waiting-for-pickup) !important;
    border: 1px solid var(--status-waiting-for-pickup);
}
.status-pill.status-registered.active {
    background: var(--status-registered-light);
    color: var(--status-registered) !important;
    border: 1px solid var(--status-registered);
}
.status-pill.status-out-for-delivery.active {
    background: var(--status-out-for-delivery-light);
    color: var(--status-out-for-delivery) !important;
    border: 1px solid var(--status-out-for-delivery);
}
.status-pill.status-received.active {
    background: var(--status-received-light);
    color: var(--status-received) !important;
    border: 1px solid var(--status-received);
}

.status-pill.active:hover {
    background: #fff9cc;
    color: #b89500 !important;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.status-pill.status-waiting-for-pickup.active:hover { background: var(--status-waiting-for-pickup-light); color: var(--status-waiting-for-pickup) !important; border: 2px solid var(--status-waiting-for-pickup); filter: brightness(0.95); }
.status-pill.status-registered.active:hover { background: var(--status-registered-light); color: var(--status-registered) !important; border: 2px solid var(--status-registered); filter: brightness(0.95); }
.status-pill.status-out-for-delivery.active:hover { background: var(--status-out-for-delivery-light); color: var(--status-out-for-delivery) !important; border: 2px solid var(--status-out-for-delivery); filter: brightness(0.95); }
.status-pill.status-received.active:hover { background: var(--status-received-light); color: var(--status-received) !important; border: 2px solid var(--status-received); filter: brightness(0.95); }

.registered-bulk-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 10px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.registered-bulk-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0,0,0,0.88);
}

.registered-bulk-check-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.registered-bulk-section .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .status-pills-bar {
        padding: 6px 8px;
        gap: 4px;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    
    .status-pill {
        padding: 5px 6px;
        font-size: 11px;
        line-height: 1.28;
    }
}

/* Home track list */
.track-list-section {
    margin-top: 16px;
}

.track-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.track-list-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: rgba(0,0,0,0.88);
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.track-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 6px;
}

.track-card-code {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,0,0,0.88);
    word-break: break-all;
}

.track-card-note {
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    text-align: right;
}

.track-card-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.track-status-pill {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #f5f5f5;
    color: rgba(0,0,0,0.45);
    transition: all 0.2s ease;
}

.track-status-pill.active {
    background: rgba(0,0,0,0.15);
    color: rgba(0,0,0,0.88);
    font-weight: 500;
}

.track-card-details {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.track-card-price {
    font-size: 12px;
    color: rgba(0,0,0,0.65);
    font-weight: 500;
}

.track-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(0,0,0,0.45);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.track-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.track-delete-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #dc3545;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.track-delete-btn:hover {
    opacity: 0.7;
}

/* Admin track-card variants – compact */
.admin-track-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: relative;
}

.admin-track-card-details {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-track-card-details .detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-track-card-details .detail-item i {
    font-size: 10px;
    color: rgba(0,0,0,0.45);
}

/* Track list spacing */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px var(--primary-shadow);
}

/* ============================================
   Admin - Cargo Detail Page (view_cargo)
   ============================================ */

body.admin-page .cargo-detail-layout {
    gap: 16px;
    margin-bottom: 24px;
}

body.admin-page .cargo-detail-main .card,
body.admin-page .cargo-detail-side .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

body.admin-page .cargo-detail-main .card-header,
body.admin-page .cargo-detail-side .card-header {
    background: linear-gradient(135deg, #fef9c3, #facc15);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 8px 14px;
}

body.admin-page .cargo-detail-main .card-header h5,
body.admin-page .cargo-detail-side .card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0,0,0,0.88);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.admin-page .cargo-detail-main .card-header i,
body.admin-page .cargo-detail-side .card-header i {
    font-size: 18px;
}

/* Avoid horizontal scroll for cargo detail info table on mobile */
body.admin-page .cargo-detail-main .table-responsive {
    overflow-x: visible;
}

body.admin-page .cargo-detail-table {
    margin: 0;
}

body.admin-page .cargo-detail-table th,
body.admin-page .cargo-detail-table td {
    border: none;
    padding: 6px 0;
    word-break: break-word;
}

/* Make status row a bit taller so pill looks cleaner */
body.admin-page .cargo-detail-table tr:nth-child(3) th,
body.admin-page .cargo-detail-table tr:nth-child(3) td {
    padding-top: 10px;
    padding-bottom: 10px;
}

body.admin-page .cargo-detail-table th {
    width: 40%;
    font-weight: 500;
    color: rgba(0,0,0,0.45);
}

body.admin-page .cargo-detail-table td {
    color: rgba(0,0,0,0.88);
}

body.admin-page .cargo-detail-table tr + tr th,
body.admin-page .cargo-detail-table tr + tr td {
    border-top: 1px solid #f0f0f0;
}

body.admin-page .cargo-detail-table strong {
    font-weight: 600;
}

body.admin-page .cargo-detail-main .badge.fs-6 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
}

body.admin-page .cargo-detail-side .card-body form .form-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0,0,0,0.65);
}

body.admin-page .cargo-detail-side .card-body .btn.w-100 {
    border-radius: 999px;
}

/* Compact side cards and inline actions on admin cargo detail */
body.admin-page .cargo-detail-main .card-body,
body.admin-page .cargo-detail-side .card-body {
    padding: 12px 14px;
}

body.admin-page .cargo-detail-side select.form-select {
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.admin-page .cargo-detail-side .form-actions-inline {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

body.admin-page .cargo-detail-side .form-actions-inline .btn {
    flex: 1;
    border-radius: 999px;
}

/* Mobile tweaks for admin cargo detail */
@media (max-width: 767px) {
    body.admin-page .cargo-detail-layout {
        gap: 12px;
    }

    body.admin-page .cargo-detail-main .card,
    body.admin-page .cargo-detail-side .card {
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    }

    body.admin-page .cargo-detail-main .card-header,
    body.admin-page .cargo-detail-side .card-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.admin-page .cargo-detail-main .card-body,
    body.admin-page .cargo-detail-side .card-body {
        padding: 12px 14px;
    }

    body.admin-page .cargo-detail-table th,
    body.admin-page .cargo-detail-table td {
        font-size: 13px;
        padding: 6px 0;
    }

    body.admin-page .cargo-detail-main .card-header h5,
    body.admin-page .cargo-detail-side .card-header h5 {
        font-size: 14px;
    }

    body.admin-page .cargo-detail-side .card-body .btn.w-100 {
        font-size: 13px;
        padding-top: 8px;
        padding-bottom: 8px;
        border-radius: 999px;
    }
}

.cargo-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.cargo-page-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.cargo-tabs-container {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.cargo-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: none;
    padding: 0;
}

.cargo-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.cargo-tab:hover {
    color: rgba(0, 0, 0, 0.88);
    background: rgba(0, 0, 0, 0.04);
}

.cargo-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-bottom: none;
}

.cargo-tab.active:hover {
    background: var(--primary-hover);
    color: #fff;
}

.cargo-tab-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.cargo-tab.active .cargo-tab-badge {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cargo-tab-badge:empty {
    display: none;
}

.cargo-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.cargo-loading .spinner-border {
    margin-bottom: 16px;
}

.cargo-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.cargo-empty-image {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.cargo-empty-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cargo-empty-description {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.5;
}

.cargo-empty-description span {
    display: inline-block;
}

.cargo-section {
    margin-bottom: 32px;
}

.cargo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.cargo-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.cargo-count-badge {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    margin-left: 4px;
}

.cargo-section-total {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
}

.cargo-section-total span {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}

.cargo-search-wrap {
    margin-top: 12px;
    margin-bottom: 12px;
}

.cargo-search-compact {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.cargo-search-compact:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 22, 119, 182), 0.15);
}

.cargo-search-icon {
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    flex-shrink: 0;
}

.cargo-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.88);
}

.cargo-search-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

/* Бараанууд нэг багана, мөр мөрөөр доор нь */
.cargo-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.cargo-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 0;
}

.cargo-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cargo-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.cargo-item-checkbox-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

.cargo-item-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.cargo-item-content {
    flex: 1;
    min-width: 0;
}

.cargo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.cargo-item-number {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
    word-break: break-word;
}

.cargo-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.cargo-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cargo-item-price-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

.cargo-item-price-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.cargo-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

.cargo-item-date i {
    font-size: 16px;
}

.cargo-item-note {
    margin-top: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Add Note Modal */
.add-note-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.add-note-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.add-note-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.add-note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.add-note-modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.add-note-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.add-note-modal-close:hover {
    background: #f5f5f5;
    color: rgba(0, 0, 0, 0.88);
}

.add-note-modal-body {
    padding: 20px;
}

.add-note-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.add-note-modal-footer .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Admin Cargo Grid Layout */
.cargo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

@media (max-width: 991px) {
    .cargo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 767px) {
    .cargo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-cargo-card {
        padding: 14px;
    }
    
    .admin-cargo-card-header {
        flex-wrap: wrap;
    }
    
    .admin-cargo-card-number {
        font-size: 15px;
    }
}

/* Cargo checkbox styling */
.admin-cargo-card .cargo-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.admin-cargo-card:hover .cargo-checkbox {
    opacity: 1;
}

.admin-cargo-card .cargo-checkbox:checked {
    opacity: 1;
}

/* Pending tracks checkbox styling */
.pending-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.admin-cargo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
}

.admin-cargo-card:hover {
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.admin-cargo-card.manually-added {
    border-left: 4px solid #0dcaf0;
}

.admin-cargo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-cargo-card-header[style*="padding-left"] {
    padding-left: 32px !important;
}

.admin-cargo-card-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.admin-cargo-card-number {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.9);
    word-break: break-word;
    line-height: 1.3;
}

.admin-cargo-card-body {
    flex: 1;
}

.admin-cargo-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-cargo-card-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
}

.admin-cargo-card-label {
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-cargo-card-label i {
    font-size: 12px;
}

.admin-cargo-card-value {
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
    word-break: break-word;
    font-size: 12px;
}

.admin-cargo-card-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.admin-cargo-card-footer {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.admin-cargo-card-footer .btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.cargo-empty-section {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.cargo-selection-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.selection-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.selection-count,
.selection-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

.selection-count strong,
.selection-total strong {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}

.selection-total strong {
    color: var(--primary-color);
}

.btn-payment {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 140px;
}

.cargo-login-prompt {
    text-align: center;
    padding: 60px 20px;
}

/* Manual Cargo Link Modal */
.manual-cargo-link-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.manual-cargo-link-modal.show {
    display: flex;
}

.manual-cargo-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.manual-cargo-link-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.manual-cargo-link-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.manual-cargo-link-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.manual-cargo-link-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.manual-cargo-link-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
}

.manual-cargo-link-close i {
    font-size: 18px;
}

.manual-cargo-link-body {
    padding: 24px;
}

.manual-cargo-link-description {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 20px;
    line-height: 1.5;
}

.manual-cargo-link-body .form-group {
    margin-bottom: 20px;
}

.manual-cargo-link-body .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.88);
}

.manual-cargo-link-body .form-label i {
    color: var(--primary-color);
}

.manual-cargo-link-body .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.manual-cargo-link-body .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-full {
    width: 100%;
}

.manual-cargo-link-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.manual-cargo-link-message.success {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #15803d;
}

.manual-cargo-link-message.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

/* Footer Styles - Simple Matching Original */
.footer-simple {
    background: #fff;
    border-top: 1px solid #d9d9d9;
    margin-top: 48px;
    padding: 16px 0;
}

.footer-link {
    color: rgba(0,0,0,0.45);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    line-height: 1.5;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding: 0 16px;
    }
    
    main {
        padding: 0;
    }
    
    .app-frame {
        display: none; /* Hide frame on full-width mobile layout */
    }
    
    .app-main {
        padding-top: 60px; /* Match header min-height so content is not hidden */
        padding-bottom: 80px; /* Reduced bottom padding for mobile */
    }
    
    .app-content {
        padding: 60px 12px 80px; /* Reduced padding for mobile */
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    body.admin-page .app-main .app-content {
        padding-top: 40px; /* Extra space on mobile so "Сайн байна уу" is not behind header */
    }
    
    .app-header {
        max-width: 100%;
        border-radius: 0;
        left: 0;
        right: 0;
        transform: none;
    }
    
    .bottom-nav {
        max-width: 100%;
        border-radius: 0;
        left: 0;
        right: 0;
        transform: none;
        border-left: none;
        border-right: none;
    }
    
    .home-content {
        padding: 16px 0;
    }
    
    .footer-simple {
        padding: 16px 0 !important;
        margin-top: 32px;
    }
    
    .footer-simple .small {
        font-size: 14px;
    }
    
    /* Mobile footer styles */
    .bottom-nav {
        display: block;
    }
    
    .floating-action-btn {
        display: flex;
    }
}

/* Desktop: Show bottom nav with table */
@media (min-width: 769px) {
    .bottom-nav {
        display: block;
    }
    
    .floating-action-btn {
        display: flex;
    }
    
    .app-content {
        padding-bottom: 100px;
    }
    
    .app-main {
        padding-bottom: 100px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .btn,
    .hero-section .btn,
    .notification-modal {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Help/FAQ Page Styles */
.help-page {
    padding: 20px 16px;
    padding-bottom: 100px;
}

.help-page-header {
    margin-bottom: 20px;
}

.help-page-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.faq-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.faq-loading .spinner-border {
    margin-bottom: 16px;
}

.faq-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.faq-empty-image {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.faq-empty-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.faq-empty-description {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.5;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-question-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.faq-question-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.faq-question-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    flex: 1;
}

.faq-question-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.expanded .faq-question-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 16px 16px 16px;
    color: rgba(0, 0, 0, 0.65);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.expanded .faq-answer {
    display: block;
}

/* FAQ Answer Types */
.faq-answer-text {
    white-space: pre-wrap;
}

.faq-answer-video {
    padding: 16px;
    background: #e6f7ff;
    border-radius: 8px;
    border: 1px solid #91d5ff;
}

.faq-answer-video-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.faq-answer-video-empty-icon {
    width: 24px;
    height: 24px;
    color: #1890ff;
    flex-shrink: 0;
}

.faq-answer-video-empty-text {
    flex: 1;
}

.faq-answer-video-empty-title {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 4px;
}

.faq-answer-video-empty-message {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

.faq-answer-video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
}

.faq-answer-video-link:hover {
    text-decoration: underline;
}

.faq-answer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.faq-answer-link:hover {
    background: var(--primary-shadow-light);
    text-decoration: none;
}

.faq-answer-image {
    padding-top: 8px;
}

.faq-answer-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-answer-image-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Address Display in FAQ */
.faq-answer-addresses {
    padding-top: 8px;
}

.faq-answer-addresses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-answer-addresses-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}

.faq-answer-addresses-video-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.faq-answer-addresses-video-link:hover {
    text-decoration: underline;
}

.faq-answer-address-branch {
    margin-bottom: 16px;
}

.faq-answer-address-branch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.faq-answer-address-branch-video-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1890ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.faq-answer-address-branch-video-link:hover {
    background: #e6f7ff;
    color: #096dd9;
    text-decoration: none;
}

.faq-answer-address-branch-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-answer-address-branch-arrow {
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.45);
    transition: transform 0.2s;
}

.faq-answer-address-branch.expanded .faq-answer-address-branch-arrow {
    transform: rotate(180deg);
}

.faq-answer-address-branch-content {
    display: none;
    padding-left: 8px;
    padding-bottom: 8px;
}

.faq-answer-address-branch.expanded .faq-answer-address-branch-content {
    display: block;
}

.faq-answer-address-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-answer-address-field:last-child {
    border-bottom: none;
}

.faq-answer-address-field-label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    min-width: 100px;
    flex-shrink: 0;
}

.faq-answer-address-field-value {
    flex: 1;
    color: rgba(0, 0, 0, 0.88);
    word-break: break-word;
}

.faq-answer-address-field-copy {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.faq-answer-address-field-copy:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

.faq-answer-address-copy-all {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-answer-address-copy-all-branch {
    margin-top: 12px;
    width: 100%;
    padding: 8px 12px;
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-answer-address-copy-all-branch:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Video Input Button in Addresses List */
.btn-video-input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    margin-left: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-video-input:hover {
    background: #5a6268;
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}

/* Video Modal Styles */
.faq-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.faq-video-modal {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.faq-video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 4px;
}

.faq-video-modal-close:hover {
    background: #f5f5f5;
    color: rgba(0, 0, 0, 0.88);
}

.faq-answer-address-copy-all:hover {
    background: var(--primary-hover);
}

/* Branch Information Display */
.faq-answer-branches {
    padding-top: 8px;
}

.faq-answer-branch-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-answer-branch-item:last-child {
    border-bottom: none;
}

.faq-answer-branch-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
}

.faq-answer-branch-address {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 4px;
}

.faq-answer-branch-phone {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
}

.faq-answer-branch-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 14px;
    background: var(--primary-color);
    color: var(--primary-text-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.faq-answer-branch-map-link:hover {
    background: var(--primary-hover);
    color: var(--primary-text-color);
}

/* Unknown Cargo Page Styles */
.unknown-cargo-page {
    padding: 20px 16px;
    padding-bottom: 100px;
}

.unknown-cargo-header {
    margin-bottom: 20px;
}

.unknown-cargo-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.unknown-cargo-search-wrap {
    margin-bottom: 16px;
}

.unknown-cargo-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    gap: 10px;
}

.unknown-cargo-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 22, 119, 182), 0.15);
}

.unknown-cargo-search-icon {
    color: rgba(0, 0, 0, 0.45);
    font-size: 18px;
    flex-shrink: 0;
}

.unknown-cargo-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
}

.unknown-cargo-search-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.unknown-cargo-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.unknown-cargo-loading .spinner-border {
    margin-bottom: 16px;
}

.unknown-cargo-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.45);
}

.unknown-cargo-empty-image {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.unknown-cargo-empty-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.unknown-cargo-empty-description {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.5;
}

.unknown-cargo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unknown-cargo-item {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.unknown-cargo-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.unknown-cargo-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.unknown-cargo-number {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    flex: 1;
}

.unknown-cargo-copy {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.unknown-cargo-copy:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    transform: scale(1.1);
}

.unknown-cargo-item-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.unknown-cargo-branch {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
}

.unknown-cargo-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.unknown-cargo-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unknown-cargo-price {
    font-size: 16px;
    font-weight: 600;
    color: #52c41a;
}

.unknown-cargo-date {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.unknown-cargo-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* User Address Modal Styles */
.user-address-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.user-address-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.user-address-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.user-address-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.user-address-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.user-address-modal-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-address-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.user-address-modal-body {
    padding: 20px;
}

.user-address-modal-body .form-item {
    margin-bottom: 16px;
}

.user-address-modal-body .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
}

.user-address-modal-body .form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.user-address-modal-body .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow-light);
}

.user-address-error {
    padding: 12px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
}

.user-address-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.user-address-modal-actions .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.user-address-modal-actions .btn-secondary {
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    border: 1px solid #d9d9d9;
}

.user-address-modal-actions .btn-secondary:hover {
    background: #f9f9f9;
}

.user-address-modal-actions .btn-primary {
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
}

.user-address-modal-actions .btn-primary:hover {
    background: var(--primary-hover);
}

/* My Addresses Modal - Vertically long, horizontally short */
.my-addresses-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.my-addresses-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.my-addresses-modal-content {
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    max-width: 380px;
    width: 90%;
    max-height: 85vh;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

.my-addresses-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.my-addresses-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}

.my-addresses-modal-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.my-addresses-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.my-addresses-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f5f5;
}

/* Address Card Style - White squares like the image */
.address-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.address-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.address-card-contact {
    flex: 1;
}

.address-card-name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 6px;
    line-height: 1.4;
}

.address-card-phone {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.4;
}

.address-card-actions-top {
    display: flex;
    gap: 8px;
    align-items: center;
}

.address-card-delete {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.45);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.2s;
}

.address-card-delete:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #dc3545;
}

.address-card-body {
    margin-bottom: 12px;
}

.address-card-address {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.6;
    white-space: pre-wrap;
    margin-top: 8px;
}

.address-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.address-card-default {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    user-select: none;
}

.address-card-default input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc3545;
}

.address-card-default.checked {
    color: #dc3545;
    font-weight: 500;
}

.address-card-default.checked span {
    color: #dc3545;
}

.address-card-actions-bottom {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
}

.address-card-btn {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.address-card-btn:hover {
    background: #f9f9f9;
    border-color: #1890ff;
    color: #1890ff;
}

.address-card-btn.edit-btn:hover {
    color: #1890ff;
    border-color: #1890ff;
}

.address-card-btn.delete-btn-bottom {
    color: rgba(0, 0, 0, 0.88);
}

.address-card-btn.delete-btn-bottom:hover {
    color: #ff4d4f;
    border-color: #ff4d4f;
    background: #fff2f0;
}

.address-status-label {
    position: absolute;
    top: 12px;
    right: 40px;
    padding: 2px 8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 1;
}

    display: flex;
    gap: 8px;
}

.unknown-cargo-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.unknown-cargo-action-btn:hover {
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
}

/* User Details Modal Styles */
.user-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.user-details-modal.show {
    display: flex;
}

.user-details-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-details-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: rgba(0, 0, 0, 0.88);
}

.user-details-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-details-content table th {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    color: rgba(0, 0, 0, 0.88);
}

.user-details-content table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    color: rgba(0, 0, 0, 0.88);
}

.user-details-content table tr:last-child td {
    border-bottom: none;
}

.user-details-content .badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.user-details-content .badge.bg-warning {
    background: #fff5e6;
    color: #FF6B35;
}

.user-details-content .badge.bg-info {
    background: #e0f2fe;
    color: #0dcaf0;
}

.user-details-content .badge.bg-primary {
    background: #eff6ff;
    color: var(--primary-color);
}

.user-details-content .badge.bg-success {
    background: #f0fdf4;
    color: #22c55e;
}

.user-details-content .badge.bg-secondary {
    background: #f0f0f0;
    color: #666;
}

/* Search Section Styles */
#search-type,
#search-value {
    transition: border-color 0.2s;
}

#search-type:focus,
#search-value:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

#search-btn:hover {
    background: var(--primary-hover);
}

#search-btn:active {
    background: var(--primary-active);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-details-modal > div {
        width: 95%;
        margin: 10px;
        padding: 16px;
    }
    
    .user-details-content table {
        font-size: 12px;
    }
    
    .user-details-content table th,
    .user-details-content table td {
        padding: 6px;
    }
}

/* Delivery Sidebar Styles */
.delivery-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    z-index: 10000;
    transition: right 0.3s ease;
}

.delivery-sidebar.show {
    right: 0;
}

.delivery-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.delivery-sidebar.show .delivery-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.delivery-sidebar-content {
    position: relative;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 10001;
}

.delivery-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delivery-sidebar-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-sidebar-close:hover {
    color: rgba(0, 0, 0, 0.88);
}

.delivery-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.delivery-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.delivery-step {
    display: none;
}

.delivery-step.active {
    display: block;
}

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

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-track-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.delivery-track-checklist .delivery-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.delivery-track-checklist .delivery-track-item:hover {
    background: #f5f5f5;
    border-color: #dee2e6;
}

.delivery-track-checklist .delivery-track-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.delivery-track-checklist .delivery-track-item .track-code {
    font-weight: 600;
    font-size: 14px;
    color: rgba(0,0,0,0.88);
    flex: 1;
}

.delivery-track-checklist .delivery-track-item .track-price {
    font-size: 13px;
    color: rgba(0,0,0,0.65);
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.step-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.step-actions .btn-primary {
    background: var(--primary-color);
    color: rgba(0, 0, 0, 0.88);
}

.step-actions .btn-secondary {
    background: #f5f5f5;
    color: rgba(0, 0, 0, 0.88);
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-label:hover, .radio-label:hover {
    background: #f5f5f5;
}

.checkbox-label input, .radio-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.notice-box {
    padding: 16px;
    background: #fff5e6;
    border: 1px solid #ffe7ba;
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.88);
}

.notice-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal.show {
    display: flex;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.payment-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10003;
}

.payment-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #fafbfc 0%, #fff 100%);
}

.payment-modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 4px;
}

.payment-modal-close:hover {
    color: rgba(0, 0, 0, 0.88);
}

.payment-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin: 0;
}

.payment-modal-body {
    padding: 20px;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.payment-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 12px;
}

.payment-section-title i {
    font-size: 18px;
    color: var(--primary-color, #1890ff);
}

.payment-cargo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-cargo-pill {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    font-family: monospace;
    max-width: 200px;
    word-break: break-all;
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.payment-cargo-num {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 600;
    margin-right: 4px;
}

.payment-bank-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.payment-bank-card:last-child {
    margin-bottom: 0;
}

.payment-qr-section {
    text-align: center;
    margin-bottom: 12px;
}

.payment-qr-img {
    max-width: 140px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.payment-bank-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-bank-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}

.payment-label {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
}

.payment-value {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
}

.payment-account-row .payment-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-account-number {
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.payment-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    background: var(--primary-color, #1890ff);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.payment-copy-btn:hover {
    opacity: 0.9;
}

.payment-amount-section {
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(24, 144, 255, 0.04) 100%);
    border-color: rgba(24, 144, 255, 0.2);
}

.payment-amount-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #1890ff);
}

.payment-action-section {
    background: transparent;
    border: none;
    padding: 0;
}

.payment-action-hint {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
    margin: 0 0 16px 0;
}

.payment-paid-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

.payment-warning {
    padding: 16px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    color: #ad6800;
    font-size: 14px;
    margin: 0;
}

.payment-qr-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 12px;
}

.payment-qr-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.payment-bank-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
}

.payment-bank-info p:last-child {
    margin-bottom: 0;
}

.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 14px;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--primary-color);
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .delivery-sidebar {
        max-width: 100%;
    }
    
    .payment-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ==========================
   Admin Sidebar
   ========================== */

.admin-sidebar {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
}

.admin-sidebar.open {
    display: block;
}

.admin-sidebar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.admin-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: rgba(0,0,0,0.88);
}

.admin-sidebar-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: rgba(0,0,0,0.45);
}

.admin-sidebar-body {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: rgba(0,0,0,0.88);
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: rgba(0,0,0,0.88);
    text-decoration: none;
}

.admin-sidebar-link:hover {
    background: #f5f5f5;
}

.admin-sidebar-link i {
    font-size: 16px;
}

.admin-sidebar-link-danger {
    color: #dc3545;
}
