/* ============================================================
   Solar Hub — Core Stylesheet
   ============================================================ */

/* --- CSS Custom Properties (Light) --- */
:root, [data-theme="light"] {
    --hub-bg:           #f4f6f8;
    --hub-surface:      #ffffff;
    --hub-surface-alt:  #f9fafb;
    --hub-border:       #e2e8f0;
    --hub-text:         #1a202c;
    --hub-text-muted:   #718096;
    --hub-primary:      #e65100;
    --hub-primary-light:#fff3e0;
    --hub-primary-dark: #bf360c;
    --hub-success:      #2e7d32;
    --hub-danger:       #c62828;
    --hub-warning:      #f57f17;
    --hub-info:         #1565c0;
    --hub-sidebar-bg:   #1a1a2e;
    --hub-sidebar-text: #cbd5e1;
    --hub-sidebar-hover:#2d2d4a;
    --hub-sidebar-active:#e65100;
    --hub-topbar-bg:    #ffffff;
    --hub-topbar-shadow:0 1px 3px rgba(0,0,0,.08);
    --hub-card-shadow:  0 1px 3px rgba(0,0,0,.06);
    --hub-radius:       10px;
    --hub-radius-sm:    6px;
    --hub-transition:   .2s ease;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --hub-bg:           #0f1117;
    --hub-surface:      #1a1d28;
    --hub-surface-alt:  #21242f;
    --hub-border:       #2d3143;
    --hub-text:         #e2e8f0;
    --hub-text-muted:   #94a3b8;
    --hub-primary-light:#3e2200;
    --hub-sidebar-bg:   #111320;
    --hub-sidebar-hover:#252840;
    --hub-topbar-bg:    #1a1d28;
    --hub-topbar-shadow:0 1px 3px rgba(0,0,0,.3);
    --hub-card-shadow:  0 1px 3px rgba(0,0,0,.25);
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--hub-text);
    background: var(--hub-bg);
    -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.hub-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.hub-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 250px;
    background: var(--hub-sidebar-bg);
    color: var(--hub-sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--hub-transition);
    overflow-y: auto;
}

.hub-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hub-logo img { height: 30px; width: auto; }

.hub-badge {
    background: var(--hub-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
}

/* Navigation */
.hub-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--hub-radius-sm);
    color: var(--hub-sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--hub-transition), color var(--hub-transition);
    text-decoration: none !important;
}
.hub-nav-item:hover { background: var(--hub-sidebar-hover); color: #fff; }
.hub-nav-item.active { background: var(--hub-sidebar-active); color: #fff; font-weight: 600; }
button.hub-nav-item {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.hub-nav-icon { font-size: 18px; line-height: 1; width: 24px; text-align: center; }

/* Sidebar footer / user card */
.hub-sidebar-footer {
    padding: 16px 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.hub-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}
.hub-sidebar-actions .hub-nav-item {
    font-size: 13px;
    padding: 7px 14px;
    opacity: .8;
}
.hub-sidebar-actions .hub-nav-item:hover { opacity: 1; }
/* Show only the active theme icon in sidebar toggle */
.hub-sidebar-actions .icon-sun,
.hub-sidebar-actions .icon-moon { display: none; }
[data-theme="light"] .hub-sidebar-actions .icon-sun  { display: inline; }
[data-theme="dark"]  .hub-sidebar-actions .icon-moon { display: inline; }

.hub-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}

.hub-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--hub-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.hub-user-info { overflow: hidden; }
.hub-user-name { font-weight: 600; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-user-role { font-size: 11px; color: var(--hub-text-muted); text-transform: capitalize; }

/* --- Main --- */
.hub-main {
    flex: 1;
    margin-left: 250px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.hub-topbar {
    position: sticky;
    top: 0;
    background: var(--hub-topbar-bg);
    box-shadow: var(--hub-topbar-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    z-index: 900;
}

.hub-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--hub-text);
    padding: 4px;
}

.hub-page-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: var(--hub-surface-alt);
    border: 1px solid var(--hub-border);
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun,
:not([data-theme]) .icon-moon { display: none; }

/* Content area */
.hub-content {
    flex: 1;
    padding: 24px;
}

/* --- Cards --- */
.hub-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-card-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.hub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hub-border);
}

.hub-card-title {
    font-size: 16px;
    font-weight: 700;
}

/* --- Stat Cards Grid --- */
.hub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hub-stat-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-card-shadow);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform var(--hub-transition), box-shadow var(--hub-transition);
}
.hub-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.hub-stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.hub-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.hub-stat-label {
    font-size: 13px;
    color: var(--hub-text-muted);
    margin-top: 2px;
}

/* --- Tables --- */
.hub-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hub-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--hub-surface-alt);
    font-weight: 600;
    color: var(--hub-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--hub-border);
    white-space: nowrap;
}

.hub-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hub-border);
    vertical-align: middle;
}

.hub-table tbody tr {
    transition: background var(--hub-transition);
}
.hub-table tbody tr:hover {
    background: var(--hub-primary-light);
}

/* --- Badges / Tags --- */
.hub-badge-stage {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}

.hub-badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.hub-badge-status.active   { background: #e8f5e9; color: #2e7d32; }
.hub-badge-status.inactive { background: #fce4ec; color: #c62828; }
.hub-badge-status.pending  { background: #fff3e0; color: #e65100; }

[data-theme="dark"] .hub-badge-status.active   { background: #1b3a1e; }
[data-theme="dark"] .hub-badge-status.inactive { background: #3a1520; }
[data-theme="dark"] .hub-badge-status.pending  { background: #3a2500; }

/* --- Pipeline / Kanban Board --- */
.hub-pipeline {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.hub-pipeline-col {
    min-width: 260px;
    max-width: 300px;
    flex-shrink: 0;
    background: var(--hub-surface-alt);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    display: flex;
    flex-direction: column;
}

.hub-pipeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hub-border);
    font-weight: 600;
    font-size: 13px;
}

.hub-pipeline-count {
    background: var(--hub-border);
    color: var(--hub-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.hub-pipeline-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.hub-pipeline-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    padding: 12px;
    cursor: pointer;
    transition: box-shadow var(--hub-transition);
}
.hub-pipeline-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.hub-pipeline-card-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.hub-pipeline-card-meta {
    font-size: 11px;
    color: var(--hub-text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- Forms --- */
.hub-form-group {
    margin-bottom: 16px;
}

.hub-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: var(--hub-text);
}

.hub-form-group .required { color: var(--hub-danger); }

.hub-input,
.hub-select,
.hub-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    color: var(--hub-text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--hub-transition), box-shadow var(--hub-transition);
}

.hub-input:focus,
.hub-select:focus,
.hub-textarea:focus {
    outline: none;
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 3px rgba(230,81,0,.15);
}

.hub-textarea { min-height: 80px; resize: vertical; }

.hub-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* --- Buttons --- */
.hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--hub-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--hub-transition), transform var(--hub-transition);
    text-decoration: none !important;
}
.hub-btn:hover { transform: translateY(-1px); }
.hub-btn:active { transform: translateY(0); }

.hub-btn-primary { background: var(--hub-primary); color: #fff; }
.hub-btn-primary:hover { background: var(--hub-primary-dark); color: #fff; }

.hub-btn-outline {
    background: transparent;
    border: 1px solid var(--hub-border);
    color: var(--hub-text);
}
.hub-btn-outline:hover { background: var(--hub-surface-alt); }

.hub-btn-success { background: var(--hub-success); color: #fff; }
.hub-btn-danger  { background: var(--hub-danger); color: #fff; }
.hub-btn-sm { padding: 6px 14px; font-size: 12px; }

/* --- Utility --- */
.hub-flex   { display: flex; }
.hub-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hub-gap-8  { gap: 8px; }
.hub-gap-16 { gap: 16px; }
.hub-mt-0   { margin-top: 0; }
.hub-mt-8   { margin-top: 8px; }
.hub-mt-16  { margin-top: 16px; }
.hub-mt-24  { margin-top: 24px; }
.hub-mb-16  { margin-bottom: 16px; }
.hub-mb-24  { margin-bottom: 24px; }
.hub-text-muted   { color: var(--hub-text-muted); }
.hub-text-success { color: var(--hub-success); }
.hub-text-danger  { color: var(--hub-danger); }
.hub-text-right   { text-align: right; }
.hub-text-center  { text-align: center; }
.hub-nowrap { white-space: nowrap; }

/* --- Timeline (customer detail page) --- */
.hub-timeline {
    position: relative;
    padding-left: 28px;
}
.hub-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--hub-border);
}

.hub-timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.hub-timeline-item:last-child { padding-bottom: 0; }

.hub-timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--hub-primary);
    background: var(--hub-surface);
}

.hub-timeline-date {
    font-size: 11px;
    color: var(--hub-text-muted);
    margin-bottom: 2px;
}

.hub-timeline-text {
    font-size: 13px;
}

/* --- Alerts / Notices --- */
.hub-alert {
    padding: 12px 16px;
    border-radius: var(--hub-radius-sm);
    border-left: 4px solid;
    margin-bottom: 16px;
    font-size: 13px;
}
.hub-alert-success { border-color: var(--hub-success); background: #e8f5e9; color: #1b5e20; }
.hub-alert-danger  { border-color: var(--hub-danger);  background: #fce4ec; color: #b71c1c; }
.hub-alert-info    { border-color: var(--hub-info);    background: #e3f2fd; color: #0d47a1; }
.hub-alert-warning { border-color: var(--hub-warning); background: #fff8e1; color: #e65100; }

[data-theme="dark"] .hub-alert-success { background: #1b3a1e; color: #a5d6a7; }
[data-theme="dark"] .hub-alert-danger  { background: #3a1520; color: #ef9a9a; }
[data-theme="dark"] .hub-alert-info    { background: #0d2748; color: #90caf9; }
[data-theme="dark"] .hub-alert-warning { background: #3a2500; color: #ffcc80; }

/* --- Empty State --- */
.hub-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--hub-text-muted);
}
.hub-empty-icon { font-size: 48px; margin-bottom: 12px; }
.hub-empty-text { font-size: 15px; }

/* --- Login Page --- */
.hub-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hub-bg);
    padding: 24px;
}

.hub-login-box {
    width: 100%;
    max-width: 400px;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 40px 32px;
}

.hub-login-box .hub-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.hub-login-box .hub-logo img { height: 36px; }

.hub-login-box h2 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.hub-login-subtitle {
    text-align: center;
    color: var(--hub-text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

/* Login Tabs */
.hub-login-tabs {
    display: flex;
    border-radius: 8px;
    background: var(--hub-bg);
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}
.hub-login-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--hub-text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.hub-login-tab:hover {
    color: var(--hub-text);
    background: var(--hub-surface);
}
.hub-login-tab.active {
    background: var(--hub-surface);
    color: var(--hub-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    font-weight: 600;
}

/* --- Tabs --- */
.hub-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--hub-border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.hub-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hub-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--hub-transition), border-color var(--hub-transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    text-decoration: none !important;
}
.hub-tab:hover { color: var(--hub-text); }
.hub-tab.active { color: var(--hub-primary); border-bottom-color: var(--hub-primary); }

/* --- Search / Filters Bar --- */
.hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hub-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.hub-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    color: var(--hub-text);
    font-family: inherit;
    font-size: 14px;
}
.hub-search input:focus {
    outline: none;
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 3px rgba(230,81,0,.15);
}

.hub-search::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

/* --- Pagination --- */
.hub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.hub-pagination a,
.hub-pagination span {
    padding: 6px 12px;
    border-radius: var(--hub-radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}

.hub-pagination a {
    color: var(--hub-text);
    border: 1px solid var(--hub-border);
    transition: background var(--hub-transition);
}
.hub-pagination a:hover { background: var(--hub-surface-alt); }
.hub-pagination .current {
    background: var(--hub-primary);
    color: #fff;
    border: 1px solid var(--hub-primary);
}

/* --- Spinner overlay --- */
.hub-spinner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.hub-spinner-overlay.show { display: flex; }

.hub-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: var(--hub-primary);
    border-radius: 50%;
    animation: hub-spin .8s linear infinite;
}

@keyframes hub-spin { to { transform: rotate(360deg); } }

/* --- Customer detail page sections --- */
.hub-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hub-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--hub-border);
    font-size: 13px;
}
.hub-detail-row:last-child { border-bottom: none; }
.hub-detail-label { color: var(--hub-text-muted); }
.hub-detail-value { font-weight: 600; text-align: right; }

/* Document checklist */
.hub-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.hub-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--hub-surface-alt);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    font-size: 13px;
}

.hub-doc-status { font-size: 18px; }
.hub-doc-status.uploaded { color: var(--hub-success); }
.hub-doc-status.missing  { color: var(--hub-text-muted); }

/* --- Progress bar --- */
.hub-progress {
    height: 8px;
    background: var(--hub-border);
    border-radius: 4px;
    overflow: hidden;
}
.hub-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--hub-primary);
    transition: width .5s ease;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hub-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hub-sidebar {
        transform: translateX(-100%);
    }
    .hub-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.3);
    }

    .hub-main {
        margin-left: 0;
    }

    .hub-menu-toggle {
        display: block;
    }

    .hub-topbar {
        padding: 12px 16px;
    }

    .hub-content {
        padding: 16px;
    }

    .hub-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-form-row {
        grid-template-columns: 1fr;
    }

    .hub-pipeline {
        flex-direction: column;
    }
    .hub-pipeline-col {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hub-stats {
        grid-template-columns: 1fr;
    }

    .hub-login-box {
        padding: 28px 20px;
    }
}

/* --- Customer Portal (My) --- */
.hub-my-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 24px;
}
.hub-my-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hub-border);
}
.hub-my-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hub-my-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hub-my-status-card {
    text-align: center;
    padding: 32px 24px 24px;
}
.hub-my-status-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}
.hub-my-progress-bar {
    height: 8px;
    background: var(--hub-bg);
    border-radius: 4px;
    overflow: hidden;
}
.hub-my-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s ease;
}
.hub-my-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.hub-my-info-card {
    text-align: center;
    padding: 20px 12px;
}
.hub-my-info-label {
    font-size: 12px;
    color: var(--hub-text-muted);
    margin-bottom: 4px;
}
.hub-my-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--hub-text);
}
.hub-my-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hub-my-stage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--hub-border);
    color: var(--hub-text-muted);
    font-size: 13px;
    transition: all .2s;
}
.hub-my-stage-item.done {
    border-left-color: var(--hub-success, #22c55e);
    color: var(--hub-text);
}
.hub-my-stage-item.current {
    border-left-color: var(--hub-primary);
    color: var(--hub-primary);
    font-weight: 600;
    background: color-mix(in srgb, var(--hub-primary) 6%, transparent);
    border-radius: 0 6px 6px 0;
}
.hub-my-stage-icon { font-size: 16px; flex-shrink: 0; }
.hub-my-stage-label { flex: 1; }

@media (max-width: 480px) {
    .hub-my-grid { grid-template-columns: 1fr; }
    .hub-my-status-top { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES — replace inline style="" attributes
   ═══════════════════════════════════════════════════════════ */

/* --- Display --- */
.hub-d-none       { display: none !important; }
.hub-d-flex       { display: flex; }
.hub-d-inline     { display: inline; }
.hub-d-inline-flex{ display: inline-flex; }
.hub-d-grid       { display: grid; }
.hub-d-block      { display: block; }

/* --- Flex helpers --- */
.hub-flex-wrap    { flex-wrap: wrap; }
.hub-flex-col     { flex-direction: column; }
.hub-flex-1       { flex: 1; }
.hub-flex-2       { flex: 2; }
.hub-items-center { align-items: center; }
.hub-items-start  { align-items: flex-start; }
.hub-items-end    { align-items: flex-end; }
.hub-justify-center { justify-content: center; }
.hub-justify-end  { justify-content: flex-end; }
.hub-justify-between { justify-content: space-between; }

/* --- Gap --- */
.hub-gap-4  { gap: 4px; }
.hub-gap-6  { gap: 6px; }
.hub-gap-10 { gap: 10px; }
.hub-gap-12 { gap: 12px; }

/* --- Margin --- */
.hub-mt-2   { margin-top: 2px; }
.hub-mt-4   { margin-top: 4px; }
.hub-mt-10  { margin-top: 10px; }
.hub-mt-12  { margin-top: 12px; }
.hub-mt-14  { margin-top: 14px; }
.hub-mt-20  { margin-top: 20px; }
.hub-mb-0   { margin-bottom: 0; }
.hub-mb-4   { margin-bottom: 4px; }
.hub-mb-8   { margin-bottom: 8px; }
.hub-mb-12  { margin-bottom: 12px; }
.hub-mb-20  { margin-bottom: 20px; }
.hub-ml-6   { margin-left: 6px; }
.hub-ml-8   { margin-left: 8px; }

/* --- Padding --- */
.hub-p-0    { padding: 0; }
.hub-p-16   { padding: 16px; }
.hub-p-24   { padding: 24px; }
.hub-pt-0   { padding-top: 0; }

/* --- Width --- */
.hub-w-full { width: 100%; }
.hub-w-auto { width: auto; }
.hub-min-w-160 { min-width: 160px; }
.hub-min-w-200 { min-width: 200px; }
.hub-min-w-220 { min-width: 220px; }
.hub-min-w-60  { min-width: 60px; }
.hub-min-w-110 { min-width: 110px; }

/* --- Text --- */
.hub-text-xs    { font-size: 11px; }
.hub-text-sm    { font-size: 12px; }
.hub-text-smd   { font-size: 13px; }
.hub-text-base  { font-size: 14px; }
.hub-text-lg    { font-size: 16px; }
.hub-text-xl    { font-size: 18px; }
.hub-text-2xl   { font-size: 20px; }
.hub-text-3xl   { font-size: 22px; }
.hub-text-4xl   { font-size: 28px; }
.hub-font-500   { font-weight: 500; }
.hub-font-600   { font-weight: 600; }
.hub-font-700   { font-weight: 700; }
.hub-text-left  { text-align: left; }
.hub-lh-tight   { line-height: 1.2; }
.hub-tracking-wide { letter-spacing: 8px; }
.hub-font-mono  { font-family: monospace; }
.hub-break-all  { word-break: break-all; }

/* --- Cursor --- */
.hub-cursor-pointer { cursor: pointer; }

/* --- Misc --- */
.hub-opacity-50 { opacity: 0.5; }
.hub-no-border  { border: none; }
.hub-bg-none    { background: none; }

/* ═══════════════════════════════════════════════════════════
   COLOR ACCENT UTILITIES (theme-aware)
   ═══════════════════════════════════════════════════════════ */

/* Stat icon color variants */
.hub-stat-icon--primary  { background: var(--hub-primary-light); color: var(--hub-primary); }
.hub-stat-icon--success  { background: #e8f5e9; color: var(--hub-success); }
.hub-stat-icon--info     { background: #e3f2fd; color: var(--hub-info); }
.hub-stat-icon--danger   { background: #fce4ec; color: var(--hub-danger); }
.hub-stat-icon--purple   { background: #f3e5f5; color: #6a1b9a; }
.hub-stat-icon--warning  { background: #fff3e0; color: var(--hub-warning); }

[data-theme="dark"] .hub-stat-icon--primary  { background: #3e2200; }
[data-theme="dark"] .hub-stat-icon--success  { background: #1b3a1e; }
[data-theme="dark"] .hub-stat-icon--info     { background: #0d2748; }
[data-theme="dark"] .hub-stat-icon--danger   { background: #3a1520; }
[data-theme="dark"] .hub-stat-icon--purple   { background: #2a0845; }
[data-theme="dark"] .hub-stat-icon--warning  { background: #3a2500; }

/* Stat value color variants */
.hub-stat-value--primary { color: var(--hub-primary); }
.hub-stat-value--success { color: var(--hub-success); }
.hub-stat-value--info    { color: var(--hub-info); }
.hub-stat-value--warning { color: #f57c00; }
.hub-stat-value--green2  { color: #388e3c; }
.hub-stat-value--muted   { color: var(--hub-text-muted); }

/* OTP & lead badge chips */
.hub-chip-pending  { background: #fff3e0; color: #e65100; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.hub-chip-verified { background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }

[data-theme="dark"] .hub-chip-pending  { background: #3a2500; }
[data-theme="dark"] .hub-chip-verified { background: #1b3a1e; }

/* Stage pill on tables (color set dynamically) */
.hub-pipeline-count--ml { margin-left: 8px; }

/* --- Themed text accent colors --- */
.hub-text-primary { color: var(--hub-primary); }
.hub-text-info    { color: var(--hub-info); }
.hub-text-warning { color: var(--hub-warning); }

/* --- Themed logout link --- */
.hub-link-danger  { color: var(--hub-danger); }
.hub-link-danger:hover { color: #b71c1c; }

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE — auth toggle (from login.php <style>)
   ═══════════════════════════════════════════════════════════ */
.hub-auth-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--hub-border);
}
.hub-auth-opt {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: var(--hub-bg);
    color: var(--hub-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.hub-auth-opt.active { background: var(--hub-primary); color: #fff; }
.hub-auth-opt:hover:not(.active) { background: color-mix(in srgb, var(--hub-primary) 10%, var(--hub-bg)); }

/* Login helpers */
.hub-login-fullbtn { width: 100%; justify-content: center; margin-top: 8px; }
.hub-login-help    { text-align: center; margin-top: 14px; font-size: 12px; color: var(--hub-text-muted); }
.hub-login-theme-area { text-align: center; margin-top: 20px; }
.hub-login-theme-btn  { border: none; background: none; cursor: pointer; font-size: 18px; }

/* OTP step UI */
.hub-otp-hero      { text-align: center; margin-bottom: 20px; }
.hub-otp-hero-icon { font-size: 36px; margin-bottom: 8px; }
.hub-otp-hero-text { font-size: 14px; color: var(--hub-text-muted); }
.hub-otp-input     { text-align: center; font-size: 1.5rem; letter-spacing: 8px; font-weight: 700; }
.hub-otp-hint      { font-size: 13px; color: var(--hub-text-muted); margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════
   QR BOOKING FORM (from q.php <style>)
   ═══════════════════════════════════════════════════════════ */
.q-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 50%, #e8f5e9 100%);
    padding: 30px 16px;
}
[data-theme="dark"] .q-page {
    background: linear-gradient(135deg, var(--hub-bg) 0%, var(--hub-surface) 100%);
}
.q-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--hub-surface);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
[data-theme="dark"] .q-card { box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.q-header {
    background: linear-gradient(135deg, #e65100, #ff8f00);
    padding: 28px 30px;
    color: #fff;
    text-align: center;
}
.q-header img.q-logo { height: 36px; margin-bottom: 12px; }
.q-header h1 { font-size: 1.4rem; margin: 0 0 4px; font-weight: 700; }
.q-header p { margin: 0; font-size: 0.92rem; opacity: 0.9; }
.q-agent {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    background: rgba(230,81,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .q-agent { background: rgba(255,143,0,0.08); border-color: rgba(255,255,255,0.08); }
.q-agent-photo {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hub-primary);
    flex-shrink: 0;
}
.q-agent-photo.placeholder {
    background: var(--hub-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}
.q-agent-info { line-height: 1.4; }
.q-agent-info .name { font-weight: 600; font-size: 1.05rem; color: var(--hub-text); }
.q-agent-info .desig { font-size: 0.85rem; color: var(--hub-text-muted); }
.q-agent-info .label { font-size: 0.75rem; color: var(--hub-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.q-body { padding: 28px 30px; }
.q-body h2 { font-size: 1.15rem; margin-bottom: 20px; color: var(--hub-text); }
.q-form .form-group { margin-bottom: 16px; }
.q-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--hub-text); }
.q-form input, .q-form select, .q-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--hub-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--hub-surface-alt);
    color: var(--hub-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.q-form input:focus, .q-form select:focus, .q-form textarea:focus {
    outline: none;
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 3px rgba(230,81,0,0.1);
}
.q-form textarea { resize: vertical; min-height: 80px; }
.q-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.q-submit:hover { opacity: 0.92; }
.q-submit:active { transform: scale(0.98); }
.q-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.q-footer { text-align: center; padding: 16px 30px 24px; font-size: 0.8rem; color: var(--hub-text-muted); }
.q-footer a { color: var(--hub-primary); text-decoration: none; font-weight: 600; }
.q-success { text-align: center; padding: 50px 30px; }
.q-success .icon { font-size: 3.5rem; margin-bottom: 16px; }
.q-success h2 { color: var(--hub-success); margin-bottom: 10px; }
.q-success p { color: var(--hub-text-muted); line-height: 1.6; }
.q-success .booking-id {
    display: inline-block;
    background: #e8f5e9;
    color: var(--hub-success);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 1.1rem;
}
[data-theme="dark"] .q-success .booking-id { background: #1b3a1e; }
.q-alert { margin-bottom: 16px; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.q-alert-error { background: #fbe9e7; border-left: 4px solid #e53935; color: #c62828; }
.q-alert-info { background: #e3f2fd; border-left: 4px solid #1976d2; color: #1565c0; }
[data-theme="dark"] .q-alert-error { background: #3a1520; color: #ef9a9a; }
[data-theme="dark"] .q-alert-info  { background: #0d2748; color: #90caf9; }

/* OTP Modal */
.q-otp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.q-otp-overlay.active { display: flex; }
.q-otp-card {
    background: var(--hub-surface);
    border-radius: 16px;
    padding: 36px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
[data-theme="dark"] .q-otp-card { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.q-otp-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--hub-text); }
.q-otp-card .sub { font-size: 0.9rem; color: var(--hub-text-muted); margin-bottom: 24px; }
.q-otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.q-otp-inputs input {
    width: 52px; height: 56px;
    text-align: center;
    font-size: 1.5rem; font-weight: 700;
    border: 2px solid var(--hub-border);
    border-radius: 12px;
    background: var(--hub-surface-alt);
    color: var(--hub-text);
    transition: border-color 0.2s;
}
.q-otp-inputs input:focus { outline: none; border-color: var(--hub-primary); box-shadow: 0 0 0 3px rgba(230,81,0,0.1); }
.q-otp-error { color: var(--hub-danger); font-size: 0.85rem; margin-bottom: 12px; min-height: 20px; }
.q-otp-resend { font-size: 0.85rem; color: var(--hub-text-muted); margin-top: 16px; }
.q-otp-resend a { color: var(--hub-primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.q-otp-resend a.disabled { opacity: 0.5; pointer-events: none; }
.q-phone-clean { font-size: 0.8rem; color: var(--hub-text-muted); margin-top: 4px; min-height: 16px; }

/* q-form label span helper */
.q-label-hint { font-weight: 400; color: var(--hub-text-muted); }

@media (max-width: 480px) {
    .q-page { padding: 16px 10px; }
    .q-header, .q-body, .q-footer { padding-left: 20px; padding-right: 20px; }
    .q-agent { padding: 16px 20px; }
    .q-otp-inputs input { width: 46px; height: 50px; font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════
   MAP PICKER (from inc/map-picker.php <style>)
   ═══════════════════════════════════════════════════════════ */
.st-map-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--hub-border);
}
.st-map-container { width: 100%; z-index: 1; }
.st-map-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.st-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.st-map-btn-locate { background: #e3f2fd; color: #1565c0; }
.st-map-btn-locate:hover { background: #1565c0; color: #fff; }
.st-map-btn-save { background: #e8f5e9; color: #2e7d32; }
.st-map-btn-save:hover { background: #2e7d32; color: #fff; }
.st-map-btn-clear { background: #fce4ec; color: #c62828; }
.st-map-btn-clear:hover { background: #c62828; color: #fff; }
.st-map-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.st-map-coords { font-size: 11px; color: var(--hub-text-muted); font-family: monospace; }
.st-map-status { font-size: 12px; font-weight: 600; margin-top: 6px; min-height: 18px; }
.st-map-status.success { color: var(--hub-success); }
.st-map-status.error { color: var(--hub-danger); }
.st-map-search { display: flex; gap: 6px; margin-bottom: 8px; }
.st-map-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--hub-border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--hub-surface);
    color: var(--hub-text);
}
.st-map-search input::placeholder { color: var(--hub-text-muted); opacity: 1; }
.st-map-search input:focus { outline: none; border-color: #1565c0; }
[data-theme="dark"] .st-map-search input {
    background: var(--hub-surface-alt);
    color: var(--hub-text);
    border-color: var(--hub-border);
}
[data-theme="dark"] .st-map-search input::placeholder { color: var(--hub-text-muted); }
.st-map-search button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #1565c0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.st-map-search button:hover { background: #0d47a1; }

[data-theme="dark"] .st-map-btn-locate { background: #0d2748; }
[data-theme="dark"] .st-map-btn-save   { background: #1b3a1e; }
[data-theme="dark"] .st-map-btn-clear  { background: #3a1520; }

/* Map: half-width centered layout */
.st-map-half {
    width: 50%;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .st-map-half { width: 100%; }
}

/* Map fullscreen button */
.st-map-btn-fullscreen {
    background: #f3e5f5;
    color: #7b1fa2;
}
.st-map-btn-fullscreen:hover { background: #7b1fa2; color: #fff; }
[data-theme="dark"] .st-map-btn-fullscreen { background: #2a1433; }

/* Map fullscreen overlay */
.st-map-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--hub-bg, #fff);
    display: flex;
    flex-direction: column;
    padding: 0;
}
.st-map-fullscreen-overlay .st-map-wrap {
    flex: 1;
    border-radius: 0;
    border: none;
}
.st-map-fullscreen-overlay .st-map-container {
    height: 100% !important;
}
.st-map-fullscreen-overlay .st-map-fs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--hub-surface);
    border-bottom: 1px solid var(--hub-border);
    gap: 12px;
    flex-shrink: 0;
}
.st-map-fullscreen-overlay .st-map-fs-topbar h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
.st-map-fullscreen-overlay .st-map-controls {
    padding: 8px 16px;
    flex-shrink: 0;
    background: var(--hub-surface);
    border-top: 1px solid var(--hub-border);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOMER DASHBOARD (from my/index.php <style>)
   ═══════════════════════════════════════════════════════════ */

/* Mobile WebView Optimizations */
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; }
body.is-mobile { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
body.is-mobile input, body.is-mobile select, body.is-mobile textarea { font-size: 16px !important; }
body.is-mobile .hub-btn, body.is-mobile .my-nav a, body.is-mobile .my-agent-actions a,
body.is-mobile .my-essential-btn { min-height: 44px; display: inline-flex; align-items: center; }
.hub-my-wrap { -webkit-overflow-scrolling: touch; }

/* Customer Dashboard Core */
.my-nav {
    display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px;
    margin-bottom: 8px; border-bottom: 1px solid var(--hub-border);
    scrollbar-width: none; -ms-overflow-style: none;
}
.my-nav::-webkit-scrollbar { display: none; }
.my-nav a {
    white-space: nowrap; padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--hub-text-muted);
    text-decoration: none; transition: all .2s;
}
.my-nav a:hover { background: color-mix(in srgb, var(--hub-primary) 8%, transparent); color: var(--hub-primary); }
.my-nav a.active { background: var(--hub-primary); color: #fff; }

.my-section { scroll-margin-top: 70px; }
.my-section-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}

.my-agent-card { display: flex; gap: 20px; align-items: center; padding: 24px; }
.my-agent-photo {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--hub-primary); flex-shrink: 0;
}
.my-agent-photo.placeholder {
    background: var(--hub-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700;
}
.my-agent-name { font-size: 1.1rem; font-weight: 700; }
.my-agent-desig { font-size: 0.85rem; color: var(--hub-text-muted); margin-top: 2px; }
.my-agent-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.my-agent-actions a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600; text-decoration: none; transition: all .2s;
}
.my-agent-actions .btn-call { background: #fff3e0; color: #e65100; }
.my-agent-actions .btn-call:hover { background: #e65100; color: #fff; }
.my-agent-actions .btn-wa { background: #e8f5e9; color: #25d366; }
.my-agent-actions .btn-wa:hover { background: #25d366; color: #fff; }
.my-agent-actions .btn-email { background: #e3f2fd; color: #1565c0; }
.my-agent-actions .btn-email:hover { background: #1565c0; color: #fff; }

[data-theme="dark"] .my-agent-actions .btn-call { background: #3a2500; }
[data-theme="dark"] .my-agent-actions .btn-wa   { background: #1b3a1e; }
[data-theme="dark"] .my-agent-actions .btn-email { background: #0d2748; }

.my-pipeline { display: flex; flex-direction: column; gap: 0; }
.my-pipe-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; border-left: 3px solid var(--hub-border);
    position: relative; transition: all .2s;
}
.my-pipe-item.completed { border-left-color: #4caf50; }
.my-pipe-item.active {
    border-left-color: var(--hub-primary);
    background: color-mix(in srgb, var(--hub-primary) 5%, transparent);
    border-radius: 0 8px 8px 0;
}
.my-pipe-item.upcoming { opacity: 0.5; }
.my-pipe-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }
.my-pipe-info { flex: 1; min-width: 0; }
.my-pipe-label { font-weight: 600; font-size: 14px; }
.my-pipe-action { font-size: 12px; color: var(--hub-text-muted); margin-top: 3px; line-height: 1.5; }
.my-pipe-status {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 4px; display: inline-block; margin-top: 4px;
}
.my-pipe-status.completed { background: #e8f5e9; color: #2e7d32; }
.my-pipe-status.in_progress { background: #fff3e0; color: #e65100; }
.my-pipe-status.not_started { background: var(--hub-bg); color: var(--hub-text-muted); }
[data-theme="dark"] .my-pipe-status.completed { background: #1b3a1e; }
[data-theme="dark"] .my-pipe-status.in_progress { background: #3a2500; }

.my-next-step {
    background: linear-gradient(135deg, #fff3e0, #ffffff);
    border: 2px solid #ff8f00; border-radius: 12px; padding: 24px;
}
[data-theme="dark"] .my-next-step { background: linear-gradient(135deg, #3a2500, var(--hub-surface)); }
.my-next-step h3 { color: var(--hub-primary); margin-bottom: 8px; font-size: 1rem; }
.my-next-step p { font-size: 14px; color: var(--hub-text); line-height: 1.7; }

.my-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.my-doc-card {
    padding: 16px; border-radius: 10px;
    border: 1.5px solid var(--hub-border); transition: all .2s;
}
.my-doc-card:hover { border-color: var(--hub-primary); }
.my-doc-type { font-size: 12px; font-weight: 600; color: var(--hub-primary); text-transform: uppercase; margin-bottom: 4px; }
.my-doc-name { font-size: 13px; font-weight: 500; word-break: break-all; }
.my-doc-meta {
    font-size: 11px; color: var(--hub-text-muted); margin-top: 6px;
    display: flex; justify-content: space-between; align-items: center;
}
.my-doc-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.my-doc-badge.verified { background: #e8f5e9; color: #2e7d32; }
.my-doc-badge.pending  { background: #fff3e0; color: #e65100; }
[data-theme="dark"] .my-doc-badge.verified { background: #1b3a1e; }
[data-theme="dark"] .my-doc-badge.pending  { background: #3a2500; }

.my-upload-zone {
    border: 2px dashed var(--hub-border); border-radius: 12px;
    padding: 32px 24px; text-align: center; cursor: pointer; transition: all .2s;
}
.my-upload-zone:hover { border-color: var(--hub-primary); background: color-mix(in srgb, var(--hub-primary) 4%, transparent); }
.my-upload-zone.dragover { border-color: var(--hub-primary); background: color-mix(in srgb, var(--hub-primary) 8%, transparent); }

/* Essential items alert */
.my-essentials-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff8f00; border-radius: 14px; padding: 24px; margin-bottom: 20px;
}
[data-theme="dark"] .my-essentials-banner { background: linear-gradient(135deg, #3a2500, #2c1a00); border-color: #ff8f00; }
.my-essentials-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.my-essentials-header h3 { font-size: 1rem; font-weight: 700; color: #e65100; margin: 0; }
[data-theme="dark"] .my-essentials-header h3 { color: #ffb74d; }
.my-essentials-header p { font-size: 13px; color: #bf360c; margin: 4px 0 0; }
[data-theme="dark"] .my-essentials-header p { color: #ffcc80; }
.my-essentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.my-essential-card {
    background: rgba(255,255,255,0.85); border-radius: 10px; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    border: 1.5px solid #ffe0b2; transition: all .2s;
}
[data-theme="dark"] .my-essential-card { background: rgba(255,255,255,0.06); border-color: rgba(255,143,0,0.25); }
.my-essential-card:hover { border-color: #ff8f00; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,143,0,0.15); }
.my-essential-icon { font-size: 28px; }
.my-essential-label { font-size: 14px; font-weight: 700; color: #e65100; }
[data-theme="dark"] .my-essential-label { color: #ffb74d; }
.my-essential-desc { font-size: 12px; color: #6d4c41; line-height: 1.5; }
[data-theme="dark"] .my-essential-desc { color: #bcaaa4; }
.my-essential-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 16px; border-radius: 8px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: #e65100; text-decoration: none; transition: all .2s; align-self: flex-start;
}
.my-essential-btn:hover { background: #bf360c; color: #fff; }
.my-essentials-done {
    background: #e8f5e9; border: 2px solid #4caf50; border-radius: 14px;
    padding: 20px 24px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}
[data-theme="dark"] .my-essentials-done { background: rgba(76,175,80,0.1); border-color: #4caf50; }
.my-essentials-done .icon { font-size: 28px; }
.my-essentials-done .text { font-size: 14px; font-weight: 600; color: #2e7d32; }
[data-theme="dark"] .my-essentials-done .text { color: #81c784; }

/* ═══════════════════════════════════════════════════════════
   CUSTOMER DASHBOARD RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

/* Tablets & small desktops */
@media (max-width: 768px) {
    .hub-my-wrap { padding: 0 12px 24px; }
    .hub-card { margin-bottom: 14px; }
    .my-next-step { padding: 18px; }
    .my-doc-grid { grid-template-columns: 1fr; }
    .my-essentials-grid { grid-template-columns: 1fr; }
    .my-agent-card { gap: 14px; padding: 18px; }
    .my-agent-photo { width: 60px; height: 60px; }
}

/* Phones — full mobile WebView mode */
@media (max-width: 480px) {
    .hub-my-wrap { padding: 0 10px 20px; }
    .hub-my-header { padding: 12px 0; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
    .hub-my-header-left img { height: 22px; }
    .hub-my-header-right { gap: 8px; }
    .hub-my-header-right > span { display: none; }
    .my-nav { gap: 4px; padding: 6px 0 10px; margin-bottom: 6px; scroll-snap-type: x mandatory; }
    .my-nav a { padding: 10px 12px; font-size: 12px; border-radius: 20px; scroll-snap-align: start; min-height: 40px; }
    .my-section { scroll-margin-top: 60px; }
    .my-section-title { font-size: 1rem; margin-bottom: 12px; }
    .hub-card { border-radius: 10px; margin-bottom: 12px; }
    .hub-my-status-card { padding: 20px 14px 18px; }
    .hub-my-status-top { gap: 10px; }
    .hub-my-status-top span:first-child { font-size: 26px !important; }
    .hub-my-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hub-my-info-card { padding: 14px 10px; }
    .hub-my-info-label { font-size: 11px; }
    .hub-my-info-value { font-size: 14px; }
    .my-essentials-banner { padding: 16px; border-radius: 12px; margin-bottom: 14px; }
    .my-essentials-header { margin-bottom: 12px; }
    .my-essentials-header h3 { font-size: 0.9rem; }
    .my-essentials-header p { font-size: 12px; }
    .my-essentials-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .my-essential-card { padding: 14px; flex-direction: row; align-items: center; gap: 12px; }
    .my-essential-icon { font-size: 24px; flex-shrink: 0; }
    .my-essential-card > div:not(.my-essential-icon) { display: contents; }
    .my-essential-label { font-size: 13px; flex: 1; }
    .my-essential-desc { display: none; }
    .my-essential-btn { padding: 10px 16px; font-size: 11px; white-space: nowrap; min-height: 40px; }
    .my-essentials-done { padding: 14px 16px; border-radius: 10px; gap: 10px; }
    .my-essentials-done .icon { font-size: 22px; }
    .my-essentials-done .text { font-size: 13px; }
    .my-next-step { padding: 16px; border-radius: 10px; }
    .my-next-step h3 { font-size: 0.9rem; }
    .my-next-step p { font-size: 13px; line-height: 1.6; }
    .my-section#location .hub-card { padding: 14px; }
    .my-pipe-item { padding: 12px 14px; gap: 10px; }
    .my-pipe-icon { font-size: 18px; width: 24px; }
    .my-pipe-label { font-size: 13px; }
    .my-pipe-action { font-size: 11px; }
    .my-agent-card { flex-direction: column; text-align: center; padding: 16px; gap: 12px; }
    .my-agent-photo { width: 56px; height: 56px; }
    .my-agent-name { font-size: 1rem; }
    .my-agent-actions { justify-content: center; gap: 6px; }
    .my-agent-actions a { padding: 10px 16px; font-size: 12px; min-height: 42px; border-radius: 10px; }
    .my-section#documents .hub-card { padding: 14px; }
    #uploadForm > div:first-child { grid-template-columns: 1fr !important; }
    #uploadForm .hub-btn { width: 100%; justify-content: center; min-height: 44px; font-size: 14px; }
    .my-doc-grid { grid-template-columns: 1fr; gap: 10px; }
    .my-doc-card { padding: 14px; }
    .hub-table-wrap { position: relative; }
    .hub-table-wrap::after {
        content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 24px;
        background: linear-gradient(to left, var(--hub-surface), transparent);
        pointer-events: none;
    }
    .hub-table { font-size: 12px; }
    .hub-table th, .hub-table td { padding: 8px 10px; }
    .hub-timeline { padding-left: 22px; }
    .hub-timeline-dot { left: -18px; width: 12px; height: 12px; }
    .hub-my-wrap > div:last-child { padding: 20px 0 10px; font-size: 11px; }
}

/* Extra-small phones (320px–360px) */
@media (max-width: 360px) {
    .hub-my-wrap { padding: 0 8px 16px; }
    .hub-my-header-left img { height: 20px; }
    .my-nav a { padding: 8px 10px; font-size: 11px; }
    .hub-my-grid { grid-template-columns: 1fr; }
    .hub-my-info-card { padding: 12px 8px; }
    .my-essentials-banner { padding: 12px; }
    .my-essential-btn { padding: 8px 12px; font-size: 10px; }
    .my-agent-actions a { padding: 8px 12px; font-size: 11px; }
    .hub-card { padding: 12px; }
}

/* Landscape phone orientation fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hub-my-status-card { padding: 16px 14px; }
    .hub-my-status-top { margin-bottom: 12px; }
    .my-section { scroll-margin-top: 50px; }
}

/* ═══════════════════════════════════════════════════════════
   SEMANTIC COMPONENT CLASSES (replacing inline styles)
   ═══════════════════════════════════════════════════════════ */

/* --- Stage pills on tables (for customer-view / index) --- */
.hub-stage-pill { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--hub-surface-alt); border: 1px solid var(--hub-border); border-radius: 20px; font-size: 13px; }

/* --- Modal overlay --- */
.hub-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hub-modal-box { background: var(--hub-surface); border-radius: var(--hub-radius); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 28px; }
.hub-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hub-modal-title { font-size: 18px; font-weight: 700; }
.hub-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--hub-text); padding: 0; }
.hub-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

/* --- Location alert boxes on customer dashboard --- */
.hub-location-missing { background: #fff3e0; border-left: 4px solid #ff8f00; padding: 14px 16px; border-radius: 0 8px 8px 0; margin-bottom: 12px; font-size: 13px; color: #e65100; }
[data-theme="dark"] .hub-location-missing { background: #3a2500; color: #ffcc80; }
.hub-location-set { font-size: 13px; color: var(--hub-text-muted); margin-bottom: 12px; }

/* --- Map toggle button (customer view) --- */
.hub-map-toggle-btn { background: var(--hub-primary-light); color: var(--hub-primary); border: 1.5px solid var(--hub-primary); margin-bottom: 0; padding: 10px 18px; font-size: 13px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.hub-map-toggle-btn:hover { background: var(--hub-primary); color: #fff; }

/* --- Customer empty state --- */
.hub-customer-empty { text-align: center; padding: 60px 24px; }
.hub-customer-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* --- Upload form helpers --- */
.hub-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.hub-upload-label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; }

/* --- Document link --- */
.hub-doc-link { font-size: 12px; color: var(--hub-primary); font-weight: 600; display: inline-block; margin-top: 6px; }
.hub-doc-link:hover { text-decoration: underline; }

/* --- Payment status badge --- */
.hub-pay-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }

/* --- Teams form helpers --- */
.hub-details-summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--hub-text-muted); }
.hub-form-inline { display: inline; }

/* --- Leads select small --- */
.hub-select-sm { padding: 4px 8px; font-size: 12px; width: auto; min-width: 110px; }

/* --- Misc sized selects --- */
.hub-select-auto { width: auto; min-width: 160px; }

/* --- Brand colors --- */
.hub-text-whatsapp { color: #25d366; }
.hub-max-w-280 { max-width: 280px; }
.hub-d-inline-block { display: inline-block; }

/* Padding utilities for remaining edge cases */
.hub-py-24  { padding-top: 24px; padding-bottom: 0; }
.hub-py-16  { padding-top: 16px; padding-bottom: 0; }
.hub-p-24-0 { padding: 24px 0; }
.hub-p-16-0 { padding: 16px 0; }
.hub-p-32-0-16 { padding: 32px 0 16px; }
.hub-pt-20-px-24 { padding: 20px 24px 0; }
.hub-mt-6   { margin-top: 6px; }
.hub-mt-14  { margin-top: 14px; }

.hub-flex-0-160 { flex: 0 0 160px; }
.hub-w-120 { width: 120px; }
.hub-p-20-0 { padding: 20px 0; }
.hub-user-avatar-sm { width: 32px; height: 32px; font-size: 12px; }

.hub-w-200  { width: 200px; }
.hub-badge-stage-lg { font-size: 14px; padding: 6px 16px; }
.hub-font-700 { font-weight: 700; }
.hub-mb-4   { margin-bottom: 4px; }

/* --- Form overlay spinner (from inc/form-ui.php) --- */
.hub-form-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.hub-form-overlay.active { display: flex; }
.hub-form-overlay-box {
    background: var(--hub-surface);
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hub-form-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--hub-border);
    border-top: 4px solid var(--hub-info);
    border-radius: 50%;
    animation: hub-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
.hub-form-overlay-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hub-text);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   QUOTATION SECTION — Customer Portal
   ═══════════════════════════════════════════════════════════ */

.my-quotation-status {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
}
.my-quotation-status.pending  { background: var(--bg-warning, rgba(255,152,0,0.08)); }
.my-quotation-status.provided { background: var(--bg-info, rgba(33,150,243,0.08)); }
.my-quotation-status.accepted { background: var(--bg-success, rgba(76,175,80,0.08)); }
.my-quotation-icon { font-size: 2.5rem; margin-bottom: 8px; }
.my-quotation-status h3 { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--text-primary); }

.my-quotation-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    background: var(--bg-secondary, #f5f5f5);
    flex-wrap: wrap;
}
.my-quotation-doc-info { flex: 1; min-width: 180px; }

.my-quotation-accept {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-secondary, #f5f5f5);
    text-align: center;
}
.my-quotation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.my-quotation-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #388e3c;
    flex-shrink: 0;
}

/* Quotation button states */
#acceptBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   QUOTATION FINANCIAL SUMMARY — Staff View
   ═══════════════════════════════════════════════════════════ */

.hub-quotation-summary {
    padding: 16px;
    border-radius: 10px;
    background: var(--bg-secondary, #f5f5f5);
}
.hub-quotation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.hub-quotation-item {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
}
.hub-quotation-item.restricted {
    border-left: 3px solid #e65100;
}
.hub-quotation-label {
    font-size: 0.82rem;
    color: var(--text-muted, #888);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hub-quotation-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hub-badge-tiny {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #e65100;
    color: #fff;
    vertical-align: middle;
}

/* Quotation price display — Customer Portal */
.my-quotation-price {
    text-align: center;
    padding: 12px 0 4px;
}

/* ── Badge Variants (for roles & status) ── */
.hub-badge-success,
.hub-badge-danger,
.hub-badge-warning,
.hub-badge-info,
.hub-badge-muted {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.hub-badge-success { background: #e8f5e9; color: #2e7d32; }
.hub-badge-danger  { background: #fce4ec; color: #c62828; }
.hub-badge-warning { background: #fff3e0; color: #e65100; }
.hub-badge-info    { background: #e3f2fd; color: #1565c0; }
.hub-badge-muted   { background: #f5f5f5; color: #757575; }

[data-theme="dark"] .hub-badge-success { background: #1b3a1e; color: #81c784; }
[data-theme="dark"] .hub-badge-danger  { background: #3a1520; color: #ef9a9a; }
[data-theme="dark"] .hub-badge-warning { background: #3a2500; color: #ffb74d; }
[data-theme="dark"] .hub-badge-info    { background: #0d2744; color: #64b5f6; }
[data-theme="dark"] .hub-badge-muted   { background: #2a2a2a; color: #aaa; }

/* Capacity badge – prominent display on customer view */
.hub-capacity-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: opacity .15s;
}
.hub-capacity-badge:hover { opacity: .85; }
[data-theme="dark"] .hub-capacity-badge {
    background: linear-gradient(135deg, #e65100, #bf360c);
}
.hub-input-sm { height: 32px; padding: 4px 8px; font-size: 14px; }

/* Checkbox grid — for work capabilities, multi-select */
.hub-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.hub-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 5px 12px;
    border: 1px solid var(--hub-border, #ddd);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    user-select: none;
}
.hub-checkbox-label:hover { background: var(--hub-hover, #f5f5f5); }
.hub-checkbox-label input[type="checkbox"] { accent-color: var(--hub-primary, #1976d2); }
.hub-checkbox-label:has(input:checked) {
    background: #e3f2fd;
    border-color: #1976d2;
    font-weight: 600;
}
[data-theme="dark"] .hub-checkbox-label { border-color: #444; }
[data-theme="dark"] .hub-checkbox-label:hover { background: #2a2a2a; }
[data-theme="dark"] .hub-checkbox-label:has(input:checked) {
    background: #0d2744;
    border-color: #1976d2;
}

/* Service person tags */
.hub-sp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}
.hub-sp-tag .hub-sp-remove {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    line-height: 1;
}
.hub-sp-tag .hub-sp-remove:hover { color: #b71c1c; }
[data-theme="dark"] .hub-sp-tag { background: #1b3a1e; color: #81c784; }

.hub-w-160 { width: 160px; }
