/* ----- Dashboad style -----
---------------------------------------------------------------------------------*/

:root {
    --bg: #14130f;
    --surface: #1c1b16;
    --surface2: #242318;
    --border: #333228;
    --gold: #c9a84c;
    --gold-dim: rgba(201, 168, 76, 0.12);
    --red: #e8472a;
    --text: #f4f0e8;
    --muted: #8a836a;
    --dim: #4a4535;
    --success: #2ecc71;
    --danger: #e74c3c;
    --info: #3498db;
    --warning: #f39c12;
    --sw: 230px;
    --sc: 66px;
    --r: 14px;
    --rs: 10px;
    --kasi-font: "MedievalSharp", serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 14px;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* KASI WATERMARK BACKGROUND PATTERN */
.dash-content {
    position: relative;
}
.dash-content::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3C!-- pill/capsule --%3E%3Crect x='20' y='30' width='18' height='42' rx='9' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3C!-- gift box --%3E%3Crect x='80' y='20' width='32' height='28' rx='3' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3Crect x='80' y='14' width='32' height='10' rx='2' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3Cline x1='96' y1='14' x2='96' y2='48' stroke='%23262520' stroke-width='2'/%3E%3C!-- ice cream cone --%3E%3Cpath d='M140 90 L130 115 L150 115 Z' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3Cellipse cx='140' cy='87' rx='12' ry='10' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3C!-- pill 2 --%3E%3Crect x='55' y='110' width='16' height='38' rx='8' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3C!-- bag/shopping --%3E%3Cpath d='M100 130 h36 l-5 25 h-26 z' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3Cpath d='M108 130 c0-8 4-14 10-14 s10 6 10 14' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3C!-- small pill horizontal --%3E%3Crect x='15' y='140' width='38' height='16' rx='8' fill='none' stroke='%23262520' stroke-width='2.5'/%3E%3C!-- small circle dot --%3E%3Ccircle cx='160' cy='40' r='5' fill='none' stroke='%23262520' stroke-width='2'/%3E%3C!-- moto wheel --%3E%3Ccircle cx='30' cy='85' r='12' fill='none' stroke='%23262520' stroke-width='2'/%3E%3Ccircle cx='30' cy='85' r='4' fill='none' stroke='%23262520' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    background-repeat: repeat;
    opacity: 1;
}
.dash-content > * {
    position: relative;
    z-index: 1;
}

/* SIDEBAR */
.sidebar {
    width: var(--sw);
    background: var(--surface);
    border-right: 1px solid #c9a84c;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.sidebar.collapsed {
    width: var(--sc);
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}
/* logo emblem replaced by img */
.menu-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.menu-toggle:hover {
    color: var(--text);
}
.nav-section {
    padding: 14px 14px 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
    transition: opacity 0.2s;
}
.sidebar.collapsed .nav-section {
    opacity: 0;
}
.nav-menu {
    list-style: none;
    padding: 6px 10px;
    overflow-x: hidden;
}
.nav-item {
    margin-bottom: 2px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--rs);
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}
.nav-link:hover {
    color: var(--text);
    background: var(--surface2);
}
.nav-link.active {
    color: var(--gold);
    background: var(--gold-dim);
}
.nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
}
.nav-link i {
    font-size: 17px;
    flex-shrink: 0;
}
.nav-link span {
    font-size: 13.5px;
    transition: opacity 0.2s;
}
.sidebar.collapsed .nav-link span {
    opacity: 0;
    pointer-events: none;
}
.nav-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.sidebar.collapsed .nav-badge {
    opacity: 0;
}

/* MAIN */
.main-content {
    margin-left: var(--sw);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-content.expanded {
    margin-left: var(--sc);
}

/* TOP BAR */
.top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-sizing: border-box;
}
.menu-toggle-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
}

.top-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-btn {
    width: 38px;
    height: 38px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.action-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s;
}
.status-pill.online {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.3);
    color: var(--success);
}
.status-pill.offline {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.25);
    color: var(--danger);
}
.status-pill.busy {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.25);
    color: var(--warning);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Notification dropdown */
.notify-dropdown .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    min-width: 300px;
    padding: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.notify-hdr {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notify-hdr a {
    font-size: 11.5px;
    color: var(--gold);
    text-decoration: none;
    font-family: Arial, sans-serif;
}
.notify-body {
    max-height: 290px;
    overflow-y: auto;
}
.notify-body::-webkit-scrollbar {
    width: 3px;
}
.notify-body::-webkit-scrollbar-thumb {
    background: var(--border);
}
.notify-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: default;
}
.notify-item:last-child {
    border-bottom: none;
}
.notify-item:hover {
    background: var(--surface2);
}
.n-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.n-gold {
    background: var(--gold-dim);
    color: var(--gold);
}
.n-green {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}
.n-red {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}
.notify-item h6 {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 2px;
}
.notify-item small {
    font-size: 11px;
    color: var(--muted);
}

/* Profile dropdown */
.profile-dropdown .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    min-width: 195px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.profile-dropdown .dropdown-item {
    color: var(--muted);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.15s;
}
.profile-dropdown .dropdown-item:hover {
    background: var(--surface2);
    color: var(--text);
}
.profile-dropdown .dropdown-item.danger {
    color: var(--danger) !important;
}
.profile-dropdown .dropdown-header {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
    padding: 4px 12px 6px;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: var(--rs);
    border: 1px solid var(--border);
    background: var(--surface2);
    transition: border-color 0.2s;
}
.user-profile:hover {
    border-color: var(--gold);
}
.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--gold), #c99010);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.user-info h6 {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.user-info p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}

/* CONTENT */
.dash-content {
    padding: 26px;
    flex: 1;
}
.page-hdr {
    margin-bottom: 22px;
}
.page-hdr h1 {
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.page-hdr p {
    color: var(--muted);
    font-size: 13px;
}

/* HERO STATUS CARD */
.hero-card {
    background: var(--surface);
    border: 2px solid var(--red);
    border-radius: var(--r);
    padding: 22px 24px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: "🍕🍔🍱🌮🥗🍜🍣🥪";
    position: absolute;
    inset: 0;
    font-size: 28px;
    line-height: 52px;
    letter-spacing: 16px;
    opacity: 0.04;
    pointer-events: none;
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero-avatar {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 16px;
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
}
.hero-meta {
    flex: 1;
}
.hero-meta h2 {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.hero-meta p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 12px;
}
.hero-select-wrap {
    position: relative;
    max-width: 200px;
}
.hero-select {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: var(--rs);
    padding: 9px 36px 9px 14px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    appearance: none;
    cursor: pointer;
}
.hero-arrow {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 16px;
    pointer-events: none;
}
.hero-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}
.hero-stat {
    text-align: center;
}
.hero-stat-val {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    display: block;
}
.hero-stat-lbl {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

/* STATS GRID — app style filled cards */
.stats-grid {
    display: grid;
    /* 1 column by default for stats on tiny mobile */
    grid-template-columns: 1fr; 
    gap: 15px;
}
.stat-card {
    border-radius: 18px;
    padding: 18px;
    border: 2.5px solid transparent;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.sc-green {
    background: linear-gradient(145deg, #acd186 0%, #8fb86a 100%);
    border-color: #7da550;
}
.sc-red {
    background: linear-gradient(145deg, #e98794 0%, #d06070 100%);
    border-color: #c04060;
}
.sc-mustard {
    background: linear-gradient(145deg, #e8c44a 0%, #c9a030 100%);
    border-color: #a07818;
}

.stat-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.s-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.15);
    color: #111;
}
.stat-val {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin-bottom: 3px;
}
.stat-lbl {
    font-size: 12.5px;
    color: #1a1a0a;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.8;
}
.stat-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #2a2a1a;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* QUICK TILES */
.tiles-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.tile {
    background: var(--surface);
    border: 2px solid var(--red);
    border-radius: 16px;
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.tile:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}
.tile-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tile-lbl {
    font-family: Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

/* ACTIVE ORDER CARD */
.active-order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 22px;
}
.ao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--gold-dim);
}
.ao-header h3 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}
.ao-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}
.ao-badge.en-route {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
}
.ao-badge.pickup {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}
.ao-body {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ao-section h5 {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 8px;
}
.ao-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.ao-detail:last-child {
    margin-bottom: 0;
}
.ao-detail i {
    font-size: 15px;
    color: var(--gold);
    margin-top: 1px;
    flex-shrink: 0;
}
.ao-detail p {
    font-size: 13px;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}
.ao-detail span {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
}
.ao-actions {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}
.btn-gold {
    flex: 1;
    padding: 10px;
    border-radius: var(--rs);
    background: var(--gold);
    border: none;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-gold:hover {
    opacity: 0.85;
}
.btn-outline {
    padding: 10px 18px;
    border-radius: var(--rs);
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* DELIVERY HISTORY */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.table-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}
.table-hdr h3 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.fbtn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.fbtn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.ctable {
    width: 100%;
    border-collapse: collapse;
}
.ctable thead th {
    padding: 11px 16px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.ctable tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.ctable tbody tr:last-child {
    border-bottom: none;
}
.ctable tbody tr:hover {
    background: var(--surface2);
}
.ctable td {
    padding: 13px 16px;
    font-size: 13.5px;
    vertical-align: middle;
}
.sbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.sbadge i {
    font-size: 7px;
}
.sbadge.delivered {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}
.sbadge.cancelled {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}
.sbadge.delivering {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
}

/* EARNINGS CHART */
.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
}
.chart-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.chart-hdr h3 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* FOOTER */
footer {
    padding: 14px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--dim);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .stats-grid,
    .tiles-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
    }
    .menu-toggle-mobile {
        display: block;
    }
    .stats-grid,
    .tiles-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        display: none;
    }
    .ao-body {
        grid-template-columns: 1fr;
    }
    .dash-content {
        padding: 16px;
    }
}

/* PARTNER RESTAURANTS */
.partners-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.partners-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}
.partners-hdr h3 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.partner-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}
.partner-card:last-child {
    border-right: none;
}
.partner-card:hover {
    background: var(--surface2);
}
.partner-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.partner-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.partner-card:hover .partner-img-wrap img {
    transform: scale(1.04);
}
.partner-info {
    padding: 12px 14px;
}
.partner-info h4 {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 5px;
}
.partner-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--red);
    background: rgba(232, 71, 42, 0.1);
    border-radius: 20px;
    padding: 2px 8px;
}
.partner-loc i {
    font-size: 10px;
}
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-card:nth-child(2) {
        border-right: none;
    }
    .partner-card:nth-child(3) {
        border-top: 1px solid var(--border);
    }
    .partner-card:nth-child(4) {
        border-top: 1px solid var(--border);
        border-right: none;
    }
}

/* KASI FONT HEADINGS — MedievalSharp matching sbwleats.co.za */
.kasi-heading {
    font-family: "MedievalSharp", serif !important;
    font-weight: bold !important;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0.4px currentColor;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}
/* SIDEBAR LOGO IMAGE */
.sidebar-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.sidebar.collapsed .sidebar-logo-img {
    max-width: 40px;
    object-fit: cover;
    object-position: left center;
}
/* UNIFIED NAV BAR — one seamless full-width bar */
.sidebar-header,
.top-bar {
    background: linear-gradient(
        to bottom,
        #c8c9cb 0%,
        #8a8b8d 22%,
        #4a4b4d 50%,
        #222220 78%,
        #17161200 100%
    ) !important;
    border-bottom: 2px solid #c9a84c !important;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    height: 68px !important;
    min-height: 68px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
/* Remove the sidebar vertical divider so bar flows as one */
.sidebar {
    border-right: none !important;
}
/* Gold line runs under BOTH sidebar header and top bar */
.sidebar-header::after {
    display: none;
}
/* Nav links in top bar styled like the website */
.top-bar-actions .user-profile {
    background: transparent;
    border-color: rgba(201, 168, 76, 0.4);
}
.top-bar-actions .user-profile:hover {
    border-color: var(--gold);
}
.top-bar-actions .action-btn {
    background: transparent;
    border-color: rgba(201, 168, 76, 0.3);
}
.top-bar-actions .action-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}
/* Status pill in top bar */
.status-pill {
    border-width: 1px;
}
/* Search bar blends into the gradient bar */
.search-bar {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
}
.search-bar:focus-within {
    border-color: var(--gold) !important;
}
.search-bar input {
    color: var(--text) !important;
}

/* ---- MAPS STYLE -----
---------------------------------------------------------------------*/
/* Map body container */
#map_body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

/* Search bar */
#map-search-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #1c1b16;
    border: 1px solid #333228;
    border-radius: 14px;
    position: relative;
    z-index: 1000;
}

.map-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #242318;
    border: 1px solid #333228;
    border-radius: 10px;
    padding: 10px 12px;
}

.map-search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #f4f0e8;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.map-search-input-wrap input::placeholder {
    color: #8a836a;
}

#map-search-bar button {
    background: linear-gradient(135deg, #e8c44a, #c9a030);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    width: 100%;
}

/* Map itself */
#map {
    width: 100%;
    height: 400px;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

/* Responsive - taller map on bigger screens */
@media (min-width: 768px) {
    #map {
        height: 520px;
    }
}

/* ── PROFILE PAGE STYLES ── */

.profile-hero {
    background: linear-gradient(135deg, #1a1905 0%, #242318 60%, #1c1b16 100%);
    border: 1px solid #333228;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.12),
        transparent 70%
    );
    pointer-events: none;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #111;
    border: 3px solid rgba(201, 168, 76, 0.4);
    box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.08);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;

}

.profile-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2ecc71;
    border: 3px solid #1c1b16;
}

.profile-hero-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: #f4f0e8;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.profile-hero-info .driver-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    color: #c9a84c;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.profile-hero-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-hero-meta span {
    font-size: 12px;
    color: #8a836a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-hero-meta span i {
    color: #c9a84c;
    font-size: 11px;
}

/* ── STAT CARDS ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 576px) {
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.p-stat-card {
    /* background: #1c1b16;*/
    border: 1px solid #333228;
    color: black;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    transition:
        border-color 0.2s,
        transform 0.2s;
}

.box-green {
    background: linear-gradient(145deg, #acd186 0%, #8fb86a 100%);
    border-color: #7da550;
}

.box-red {
    background: linear-gradient(145deg, #e98794 0%, #d06070 100%);
    border-color: #c04060;
}

.box-mustard {
    background: linear-gradient(145deg, #e8c44a 0%, #c9a030 100%);
    border-color: #a07818;
}

.p-stat-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

.p-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
}

.p-stat-card .stat-value {
    font-size: 22px;
    font-weight: 800;
    /*color: #f4f0e8;*/
    line-height: 1;
    margin-bottom: 4px;
}

.p-stat-card .stat-label {
    font-size: 11px;
    /*color: #8a836a;*/
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── INFO SECTIONS ── */
.profile-section {
    background: #1c1b16;
    border: 1px solid #333228;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-section-hdr {
    padding: 16px 20px;
    border-bottom: 1px solid #333228;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-hdr .hdr-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 14px;
}

.profile-section-hdr h4 {
    font-size: 14px;
    font-weight: 700;
    color: #f4f0e8;
    margin: 0;
}

.profile-section-hdr .ms-auto a {
    font-size: 12px;
    color: #c9a84c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Info rows */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #2a2920;
    gap: 12px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-label {
    font-size: 12px;
    color: #8a836a;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row-label i {
    color: #555040;
    font-size: 12px;
    width: 14px;
}

.info-row-value {
    font-size: 13px;
    color: #f4f0e8;
    font-weight: 500;
    text-align: right;
}

.info-row-value.masked {
    font-family: monospace;
    letter-spacing: 2px;
    color: #8a836a;
}

/* Badge styles */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.25);
    color: #f1c40f;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* ── RATING BAR ── */
.rating-wrap {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-big {
    font-size: 42px;
    font-weight: 800;
    color: #c9a84c;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}

.rating-stars i {
    color: #c9a84c;
    font-size: 14px;
}
.rating-stars i.empty {
    color: #333228;
}

.rating-sub {
    font-size: 11px;
    color: #8a836a;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #8a836a;
}

.rating-bar-row .bar-track {
    flex: 1;
    height: 5px;
    background: #2a2920;
    border-radius: 99px;
    overflow: hidden;
}

.rating-bar-row .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e8c44a, #c9a030);
    border-radius: 99px;
}

/* ── RECENT ORDERS ── */
.order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #2a2920;
    transition: background 0.15s;
}

.order-row:last-child {
    border-bottom: none;
}
.order-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.order-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 14px;
    flex-shrink: 0;
}

.order-info {
    flex: 1;
}
.order-info .order-name {
    font-size: 13px;
    font-weight: 600;
    color: #f4f0e8;
    margin-bottom: 2px;
}
.order-info .order-meta {
    font-size: 11px;
    color: #8a836a;
}

.order-right {
    text-align: right;
}
.order-right .order-amount {
    font-size: 13px;
    font-weight: 700;
    color: #c9a84c;
}
.order-right .order-date {
    font-size: 11px;
    color: #555040;
}

/* ── ACTION BUTTONS ── */
.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.action-tile {
    background: #1c1b16;
    border: 1px solid #333228;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.action-tile:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: #22211a;
}

.action-tile .tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.action-tile .tile-label {
    font-size: 13px;
    font-weight: 600;
    color: #f4f0e8;
    line-height: 1.2;
}

.action-tile .tile-sub {
    font-size: 11px;
    color: #8a836a;
}

/* ── DANGER ZONE ── */
.danger-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.06);
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.5);
}

/* mask toggle */
.mask-toggle {
    background: none;
    border: none;
    color: #555040;
    cursor: pointer;
    padding: 0 0 0 8px;
    font-size: 13px;
    transition: color 0.15s;
}
.mask-toggle:hover {
    color: #c9a84c;
}

/* ── PAGE-SPECIFIC ORDERS STYLES ── */

/* Tab bar */
.orders-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.orders-tabs::-webkit-scrollbar {
    display: none;
}

.otab {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    background: none;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.otab:hover {
    color: var(--text);
    background: var(--surface2);
}
.otab.active {
    background: var(--gold-dim);
    color: var(--gold);
}
.otab .tab-count {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 20px;
}
.otab.active .tab-count {
    background: rgba(201, 168, 76, 0.2);
}

/* Search + filter bar */
.orders-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.search-wrap {
    flex: 1;
    position: relative;
}
.search-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}
.search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px 9px 36px;
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 13px;
    transition: border-color 0.2s;
    outline: none;
}
.search-input::placeholder {
    color: var(--muted);
}
.search-input:focus {
    border-color: var(--gold);
}
.filter-btn {
    padding: 9px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.2s;
}
.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Tab panels */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* ── BROWSE ORDER CARD ── */
.browse-grid {
    display: grid;
    /* 1 column by default (Mobile-first) */
    grid-template-columns: 1fr; 
    gap: 15px;
    margin-top: 15px;
}

.browse-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.browse-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-2px);
}
.bc-top {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bc-restaurant {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bc-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--surface2);
    flex-shrink: 0;
}
.bc-rest-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}
.bc-rest-addr {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}
.bc-body {
    padding: 14px 16px;
}
.bc-items {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
}
.bc-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.bc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}
.bc-meta-item i {
    color: var(--gold);
    font-size: 13px;
}
.bc-meta-item strong {
    color: var(--text);
}
.bc-route {
    background: var(--surface2);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bc-route-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.bc-route-row i {
    color: var(--gold);
    font-size: 13px;
    width: 14px;
}
.bc-route-row span {
    color: var(--muted);
    min-width: 42px;
}
.bc-route-row strong {
    color: var(--text);
    font-size: 12.5px;
}
.bc-route-divider {
    border-left: 1px dashed var(--border);
    height: 10px;
    margin-left: 7px;
}
.bc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bc-earn {
    font-size: 20px;
    font-weight: 800;
    color: var(--success);
}
.bc-earn-lbl {
    font-size: 11px;
    color: var(--muted);
    display: block;
}
.btn-accept {
    padding: 9px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #acd186, #8fb86a);
    border: none;
    color: #1a3a0a;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.15s;
}
.btn-accept:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.btn-decline {
    padding: 9px 14px;
    border-radius: 10px;
    background: none;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-decline:hover {
    background: rgba(231, 76, 60, 0.08);
}

/* urgency badge on browse card */
.bc-urgency {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.bc-urgency.hot {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}
.bc-urgency.normal {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
}
.bc-urgency.busy {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

/* ── ACTIVE ORDER PANEL ── */
.active-orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.active-ord-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.active-ord-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
}
.aoc-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aoc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.aoc-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}
.aoc-time {
    font-size: 11.5px;
    color: var(--muted);
}
.aoc-body {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.aoc-section h5 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 10px;
}
.aoc-detail {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 8px;
}
.aoc-detail:last-child {
    margin-bottom: 0;
}
.aoc-detail i {
    font-size: 14px;
    color: var(--gold);
    margin-top: 1px;
    flex-shrink: 0;
}
.aoc-detail p {
    font-size: 12.5px;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}
.aoc-detail span {
    font-size: 11px;
    color: var(--muted);
    display: block;
}
.aoc-progress {
    padding: 0 18px 16px;
}
.progress-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 6px;
}
.pstep {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.pstep-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--border);
    background: var(--surface2);
    color: var(--muted);
    z-index: 1;
    transition: all 0.3s;
}
.pstep.done .pstep-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.pstep.current .pstep-dot {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}
.pstep-lbl {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}
.pstep.done .pstep-lbl,
.pstep.current .pstep-lbl {
    color: var(--text);
}
.pstep-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: -16px;
    position: relative;
    z-index: 0;
}
.pstep-line.done {
    background: var(--success);
}
.aoc-actions {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}
.btn-arrived {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: var(--gold);
    border: none;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-arrived:hover {
    opacity: 0.85;
}
.btn-delivered {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #acd186, #8fb86a);
    border: none;
    color: #1a3a0a;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-delivered:hover {
    opacity: 0.85;
}

/* ── HISTORY TABLE ── */
.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.hf-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: none;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.hf-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}
.hf-btn:hover:not(.active) {
    border-color: var(--muted);
    color: var(--text);
}

/* ── COMPLETED / CANCELLED CARDS ── */
.oc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.oc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.15s;
}
.oc-card:hover {
    background: var(--surface2);
}
.oc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.oc-icon.completed {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}
.oc-icon.cancelled {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}
.oc-info {
    flex: 1;
}
.oc-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.oc-sub {
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.oc-sub i {
    font-size: 11px;
}
.oc-right {
    text-align: right;
    flex-shrink: 0;
}
.oc-earn {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    display: block;
}
.oc-earn.lost {
    color: var(--danger);
}
.oc-date {
    font-size: 11px;
    color: var(--muted);
}

/* empty state */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}
.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
    opacity: 0.3;
}
.empty-state p {
    font-size: 14px;
    margin: 0;
}
.empty-state small {
    font-size: 12px;
    opacity: 0.6;
}

/* top-bar height fix */
.top-bar {
    height: 64px;
}



/* ══════════════════════════════════════════
   media queries for responsive design 
══════════════════════════════════════════ */

@media (min-width: 576px) {
    .stats-grid {
        /* Split stats into 3 columns once there's room */
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (min-width: 768px) {
    .browse-grid {
        /* Split order cards into 2 columns on tablets and desktop */
        grid-template-columns: repeat(2, 1fr); 
    }
}