:root {
    --delivery-red: #e63946;
    --delivery-red-dark: #b00020;
    --delivery-red-deep: #7f1023;
    --delivery-ink: #0f172a;
    --delivery-muted: #64748b;
    --delivery-muted-strong: #334155;
    --delivery-surface: #ffffff;
    --delivery-surface-soft: rgba(255, 255, 255, 0.76);
    --delivery-border: rgba(148, 163, 184, 0.28);
    --delivery-line: rgba(255, 255, 255, 0.08);
    --delivery-bg-top: #f8fafc;
    --delivery-bg-bottom: #e2e8f0;
    --delivery-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --delivery-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --delivery-radius-xl: 30px;
    --delivery-radius-lg: 24px;
    --delivery-radius-md: 18px;
    --delivery-radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--delivery-ink);
    background: linear-gradient(180deg, var(--delivery-bg-top) 0%, var(--delivery-bg-bottom) 100%);
}

.delivery-auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(230, 57, 70, 0.18), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    display: grid;
    place-items: center;
    padding: 1.15rem;
}

.delivery-auth-wrap {
    width: 100%;
    max-width: 480px;
}

.delivery-auth-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 1.35rem;
    box-shadow: var(--delivery-shadow);
    backdrop-filter: blur(18px);
}

.delivery-auth-card::before {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.16) 0%, transparent 72%);
    pointer-events: none;
}

.delivery-auth-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.delivery-auth-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--delivery-red), var(--delivery-red-dark));
    box-shadow: 0 0 0 10px rgba(230, 57, 70, 0.12);
    margin-top: 0.42rem;
}

.delivery-auth-head h1 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.15;
}

.delivery-auth-head p {
    margin: 0.34rem 0 0;
    color: var(--delivery-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.delivery-auth-card .form-control {
    min-height: 50px;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.delivery-auth-card .form-control:focus {
    border-color: rgba(230, 57, 70, 0.48);
    box-shadow: 0 0 0 0.24rem rgba(230, 57, 70, 0.12);
}

.delivery-auth-card .btn-danger {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--delivery-red), var(--delivery-red-dark));
    border: 0;
}

.delivery-auth-foot {
    margin-top: 0.95rem;
    display: flex;
    justify-content: flex-start;
}

.delivery-panel-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(230, 57, 70, 0.14), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #e5ebf3 100%);
}

.delivery-panel-stage {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
}

.delivery-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
    opacity: 0.85;
    z-index: -2;
}

.delivery-bg-orb--one {
    top: -160px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
}

.delivery-bg-orb--two {
    right: -120px;
    top: 80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 72%);
}

.delivery-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 72%);
    pointer-events: none;
    z-index: -3;
}

.delivery-shell {
    width: min(1360px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 20px 0 34px;
    display: grid;
    gap: 18px;
}

.delivery-topbar,
.delivery-card,
.delivery-profile-card,
.delivery-sync-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: var(--delivery-surface-soft);
    box-shadow: var(--delivery-shadow-soft);
    backdrop-filter: blur(18px);
}

.delivery-topbar {
    padding: 18px 22px;
    border-radius: var(--delivery-radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.delivery-topbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.delivery-brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, var(--delivery-red), var(--delivery-red-dark));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(176, 0, 32, 0.22);
    flex: 0 0 auto;
}

.delivery-brand-mark i {
    font-size: 1.42rem;
}

.delivery-brand-copy {
    min-width: 0;
}

.delivery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--delivery-red-dark);
}

.delivery-brand-copy h1 {
    margin: 4px 0 0;
    font-size: clamp(1.34rem, 2vw, 1.82rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.delivery-brand-copy p {
    margin: 6px 0 0;
    color: var(--delivery-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 62ch;
}

.delivery-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.delivery-topbar-actions .btn {
    min-height: 46px;
    border-radius: 14px;
    padding-inline: 18px;
    font-weight: 600;
    box-shadow: none;
}

.delivery-alert {
    border-radius: 16px;
    border: 0;
    box-shadow: var(--delivery-shadow-soft);
}

.delivery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.delivery-hero-main {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: var(--delivery-radius-xl);
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12) 0%, transparent 28%),
        linear-gradient(135deg, #101828 0%, #172033 44%, var(--delivery-red-deep) 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.delivery-hero-main::after {
    content: "";
    position: absolute;
    inset: auto -70px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 72%);
    pointer-events: none;
}

.delivery-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.delivery-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.delivery-hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 700;
    max-width: 12ch;
}

.delivery-hero-copy p {
    margin: 16px 0 0;
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    font-size: 0.96rem;
}

.delivery-hero-highlights {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.delivery-highlight-card {
    min-height: 140px;
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.delivery-highlight-label {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
}

.delivery-highlight-card strong {
    display: block;
    font-size: clamp(1.6rem, 2vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.delivery-highlight-card small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
}

.delivery-hero-side {
    display: grid;
    gap: 18px;
}

.delivery-profile-card,
.delivery-sync-card {
    border-radius: var(--delivery-radius-lg);
    padding: 22px;
}

.delivery-profile-card {
    display: grid;
    gap: 18px;
}

.delivery-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.delivery-profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(230, 57, 70, 0.06));
    border: 1px solid rgba(230, 57, 70, 0.16);
    color: var(--delivery-red-dark);
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.delivery-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.delivery-profile-copy h3 {
    margin: 5px 0 0;
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.delivery-profile-copy p {
    margin: 8px 0 0;
    color: var(--delivery-muted);
    font-size: 0.92rem;
}

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

.delivery-profile-pill {
    min-height: 52px;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--delivery-muted-strong);
    font-size: 0.86rem;
}

.delivery-profile-pill i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    color: var(--delivery-red-dark);
    flex: 0 0 auto;
}

.delivery-sync-card {
    display: grid;
    gap: 18px;
}

.delivery-sync-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.delivery-live-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.2);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.delivery-live-indicator .dot.is-live {
    background: #16a34a;
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12);
}

.delivery-live-indicator small {
    color: var(--delivery-muted-strong);
    font-size: 0.8rem;
    font-weight: 600;
}

.delivery-sync-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--delivery-red-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delivery-sync-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.delivery-sync-stat {
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.delivery-sync-stat span {
    display: block;
    color: var(--delivery-muted);
    font-size: 0.78rem;
}

.delivery-sync-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--delivery-ink);
    font-size: 1.22rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.delivery-sync-stat--wide {
    grid-column: 1 / -1;
}

.delivery-sync-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed rgba(148, 163, 184, 0.36);
}

.delivery-sync-footer span {
    color: var(--delivery-muted);
    font-size: 0.8rem;
}

.delivery-sync-footer strong {
    color: var(--delivery-muted-strong);
    font-size: 0.82rem;
}

.delivery-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
}

.delivery-side-stack {
    display: grid;
    gap: 18px;
}

.delivery-card {
    border-radius: var(--delivery-radius-lg);
    padding: 22px;
    min-width: 0;
}

.delivery-card--orders,
.delivery-card--history,
.delivery-card--insights {
    overflow: hidden;
}

.delivery-card--orders::before,
.delivery-card--history::before,
.delivery-card--insights::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.28), transparent 72%);
    pointer-events: none;
}

.delivery-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.delivery-card-head h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.15;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.delivery-card-head h3 i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.09);
    color: var(--delivery-red-dark);
    flex: 0 0 auto;
}

.delivery-card-head p {
    margin: 8px 0 0;
    color: var(--delivery-muted);
    font-size: 0.86rem;
}

.delivery-card-head small {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--delivery-muted-strong);
    font-size: 0.75rem;
    font-weight: 600;
}

.delivery-board-strip,
.delivery-history-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.delivery-mini-stat,
.delivery-history-highlight {
    position: relative;
    min-height: 96px;
    border-radius: 18px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.delivery-mini-stat::after,
.delivery-history-highlight::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, var(--delivery-red), rgba(230, 57, 70, 0.16));
}

.delivery-mini-stat span,
.delivery-history-highlight span {
    color: var(--delivery-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.delivery-mini-stat strong,
.delivery-history-highlight strong {
    display: block;
    color: var(--delivery-ink);
    font-size: 1.26rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.delivery-orders-list,
.delivery-history-list {
    display: grid;
    gap: 14px;
    max-height: 72vh;
    overflow: auto;
    padding-right: 4px;
}

.delivery-orders-list::-webkit-scrollbar,
.delivery-history-list::-webkit-scrollbar {
    width: 8px;
}

.delivery-orders-list::-webkit-scrollbar-thumb,
.delivery-history-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
    border-radius: 999px;
}

.delivery-order-card,
.delivery-history-item {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.delivery-order-card {
    position: relative;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.delivery-order-card::before {
    content: "";
    position: absolute;
    inset: 14px auto 14px 14px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--delivery-red), rgba(230, 57, 70, 0.16));
}

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

.delivery-order-code {
    display: grid;
    gap: 4px;
    padding-left: 14px;
}

.delivery-order-code-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--delivery-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.delivery-order-code strong {
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.delivery-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.delivery-status-pill--warning {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.delivery-status-pill--info {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.delivery-status-pill--primary {
    background: rgba(99, 102, 241, 0.14);
    color: #4338ca;
}

.delivery-status-pill--secondary {
    background: rgba(71, 85, 105, 0.12);
    color: #334155;
}

.delivery-status-pill--success {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.delivery-status-pill--danger {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

.delivery-order-customer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 14px;
}

.delivery-order-chip-row,
.delivery-history-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 14px;
}

.delivery-order-chip {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--delivery-muted-strong);
    font-size: 0.75rem;
    font-weight: 600;
}

.delivery-order-chip i {
    color: var(--delivery-red-dark);
}

.delivery-order-customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.08);
    color: var(--delivery-red-dark);
    font-size: 1rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.delivery-order-customer-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.delivery-order-customer-copy small {
    color: var(--delivery-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.delivery-order-customer-copy strong {
    font-size: 0.96rem;
    line-height: 1.1;
}

.delivery-order-customer-copy span {
    color: var(--delivery-muted-strong);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.delivery-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-left: 14px;
}

.delivery-order-info {
    min-height: 78px;
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.delivery-order-info i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--delivery-red-dark);
    flex: 0 0 auto;
}

.delivery-order-info-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.delivery-order-info-copy small {
    color: var(--delivery-muted);
    font-size: 0.76rem;
}

.delivery-order-info-copy span {
    color: var(--delivery-muted-strong);
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.delivery-order-footer {
    padding-top: 16px;
    padding-left: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.delivery-order-total-wrap {
    display: grid;
    gap: 4px;
}

.delivery-order-total-label {
    color: var(--delivery-muted);
    font-size: 0.76rem;
}

.delivery-order-total {
    font-size: 1.16rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--delivery-red-dark);
}

.delivery-order-total-wrap small {
    color: var(--delivery-muted-strong);
    font-size: 0.78rem;
}

.delivery-order-actions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.delivery-order-actions .btn {
    min-height: 42px;
    border-radius: 14px;
    padding-inline: 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

.delivery-history-item {
    position: relative;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.delivery-history-item::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 12px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.12));
}

.delivery-history-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-left: 14px;
}

.delivery-history-summary {
    display: grid;
    gap: 6px;
}

.delivery-history-summary strong {
    font-size: 0.94rem;
    line-height: 1.15;
}

.delivery-history-summary span {
    color: var(--delivery-muted-strong);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.delivery-history-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 14px;
}

.delivery-history-meta-item {
    min-height: 68px;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: grid;
    gap: 4px;
}

.delivery-history-meta-item small {
    color: var(--delivery-muted);
    font-size: 0.74rem;
}

.delivery-history-meta-item span {
    color: var(--delivery-muted-strong);
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.delivery-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.delivery-insight-item {
    position: relative;
    min-height: 104px;
    border-radius: 18px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0.03) 100%);
    border: 1px solid rgba(230, 57, 70, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
}

.delivery-insight-item span {
    color: var(--delivery-muted-strong);
    font-size: 0.8rem;
}

.delivery-insight-item strong {
    font-size: 1.22rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.delivery-insight-item::after {
    content: "";
    position: absolute;
    inset: auto -22px -22px auto;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, transparent 72%);
    pointer-events: none;
}

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

.delivery-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.delivery-guide-step {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--delivery-red), var(--delivery-red-dark));
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.delivery-guide-item strong {
    display: block;
    font-size: 0.9rem;
}

.delivery-guide-item p {
    margin: 6px 0 0;
    color: var(--delivery-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.delivery-empty {
    border: 1px dashed rgba(148, 163, 184, 0.44);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--delivery-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 18px;
    text-align: center;
}

.delivery-toast-wrap {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1090;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 22px));
}

.delivery-toast {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.92);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--delivery-shadow);
    backdrop-filter: blur(16px);
    animation: deliveryToastIn 0.22s ease;
}

.delivery-toast i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.08);
    color: var(--delivery-red-dark);
    flex: 0 0 auto;
}

.delivery-toast strong {
    display: block;
    font-size: 0.86rem;
}

.delivery-toast small {
    display: block;
    color: var(--delivery-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.delivery-toast.is-success i {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.delivery-toast.is-danger i {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

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

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

    .delivery-content-grid {
        grid-template-columns: 1fr;
    }

    .delivery-orders-list,
    .delivery-history-list {
        max-height: none;
    }
}

@media (max-width: 900px) {
    .delivery-shell {
        width: min(100vw - 20px, 1360px);
    }

    .delivery-hero-main {
        padding: 24px;
    }

    .delivery-hero-highlights,
    .delivery-sync-grid,
    .delivery-board-strip,
    .delivery-history-overview,
    .delivery-order-grid,
    .delivery-history-meta,
    .delivery-insight-grid {
        grid-template-columns: 1fr;
    }

    .delivery-sync-stat--wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .delivery-shell {
        gap: 14px;
        padding: 14px 0 24px;
    }

    .delivery-topbar,
    .delivery-card,
    .delivery-profile-card,
    .delivery-sync-card {
        border-radius: 22px;
    }

    .delivery-topbar {
        padding: 16px;
    }

    .delivery-topbar-brand {
        align-items: flex-start;
    }

    .delivery-brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .delivery-topbar-actions,
    .delivery-topbar-actions .btn,
    .delivery-topbar-actions a {
        width: 100%;
    }

    .delivery-topbar-actions .btn,
    .delivery-topbar-actions a {
        justify-content: center;
    }

    .delivery-hero-main,
    .delivery-card,
    .delivery-profile-card,
    .delivery-sync-card {
        padding: 18px;
    }

    .delivery-hero-copy h2 {
        max-width: none;
        font-size: 2rem;
    }

    .delivery-profile-head,
    .delivery-order-top,
    .delivery-order-footer,
    .delivery-history-top,
    .delivery-sync-head,
    .delivery-sync-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .delivery-live-indicator,
    .delivery-sync-badge,
    .delivery-card-head small {
        width: 100%;
        justify-content: center;
    }

    .delivery-card-head {
        margin-bottom: 16px;
    }

    .delivery-order-actions,
    .delivery-order-actions .btn {
        width: 100%;
    }

    .delivery-order-chip-row,
    .delivery-history-chip-row {
        padding-left: 0;
    }

    .delivery-toast-wrap {
        left: 12px;
        right: 12px;
        width: auto;
    }
}
