:root {
    --orange: #ff5a1f;
    --orange-dark: #e9470d;
    --ink: #171821;
    --muted: #777783;
    --line: #e8e7eb;
    --surface: #fff;
    --canvas: #f5f4f7;
    --green: #168a59;
    --red: #c83d3d;
    --purple: #7256d8;
    --shadow: 0 12px 35px rgba(31, 30, 40, .08);
    --radius: 22px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

.partner-body {
    min-height: 100vh
}

.partner-shell {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--canvas)
}

.partner-topbar {
    height: 76px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 244, 247, .9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(232, 231, 235, .7)
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff762f, var(--orange));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(255, 90, 31, .28)
}

.brand strong {
    display: block;
    font-size: 16px
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
    letter-spacing: .05em;
    text-transform: uppercase
}

.avatar-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #221e2c;
    color: #fff;
    font-weight: 800;
    overflow: hidden
}

.avatar-button img,
.large-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.partner-main {
    padding: 28px 28px 110px
}

.flash-stack {
    position: fixed;
    top: 86px;
    right: 22px;
    z-index: 40;
    display: grid;
    gap: 8px;
    max-width: 380px
}

.flash {
    padding: 12px 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 13px
}

.flash-error,
.flash-danger {
    border-left: 4px solid var(--red)
}

.flash-success {
    border-left: 4px solid var(--green)
}

.flash-info {
    border-left: 4px solid #3478d4
}

.eyebrow {
    display: block;
    color: var(--orange);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 7px
}

.eyebrow.light {
    color: #ffd2c2
}

.welcome-row,
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px
}

.welcome-row h1,
.page-heading h1,
.detail-hero h1 {
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
    margin: 0 0 7px;
    letter-spacing: -.035em
}

.welcome-row p,
.page-heading p,
.detail-hero p {
    margin: 0;
    color: var(--muted)
}

.outlet-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line)
}

.outlet-pill:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 7px
}

.outlet-pill.open:before {
    background: #22a66c
}

.outlet-pill.closed:before {
    background: #aaa
}

.hero-card {
    min-height: 210px;
    border-radius: 30px;
    padding: 30px;
    color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 24%), linear-gradient(135deg, #252130, #15131c);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 45px rgba(25, 20, 35, .18);
    position: relative;
    overflow: hidden
}

.hero-card:after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 36px solid rgba(255, 90, 31, .12);
    border-radius: 50%;
    right: -45px;
    bottom: -90px
}

.hero-copy {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1
}

.hero-copy>span {
    color: #cbc6d4;
    font-size: 14px
}

.hero-copy>strong {
    font-size: 64px;
    line-height: 1;
    margin: 10px 0 8px
}

.hero-copy small {
    color: #ddd8e5
}

.hero-ring {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, .13);
    border-top-color: var(--orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.hero-ring span {
    font-size: 30px;
    font-weight: 800
}

.hero-ring small {
    color: #d6d1dd
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 18px 0 34px
}

.quick-grid a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
    transition: .2s
}

.quick-grid a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow)
}

.quick-grid strong {
    font-size: 22px
}

.quick-grid small {
    grid-column: 2;
    color: var(--muted);
    margin-top: -12px
}

.quick-icon {
    grid-row: 1/3;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900
}

.quick-icon.orange {
    background: #fff0e9;
    color: var(--orange)
}

.quick-icon.purple {
    background: #f0edff;
    color: var(--purple)
}

.quick-icon.green {
    background: #e8f8f1;
    color: var(--green)
}

.quick-icon.yellow {
    background: #fff6d9;
    color: #b98500
}

.section-block {
    margin-top: 24px
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 15px
}

.section-heading h2 {
    margin: 0;
    font-size: 23px
}

.section-heading a {
    color: var(--orange);
    font-weight: 700;
    font-size: 13px
}

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

.order-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.order-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    transition: .18s;
    min-width: 0
}

.order-card:hover {
    transform: translateY(-2px);
    border-color: #ffd0bf;
    box-shadow: var(--shadow)
}

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

.order-card-top small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px
}

.order-card-top strong {
    font-size: 16px
}

.status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 7px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #f0eef3;
    color: #5f5b67
}

.status-order_placed {
    background: #fff0e9;
    color: #d9460e
}

.status-confirmed,
.status-preparing {
    background: #eeeaff;
    color: #654bd1
}

.status-dispatched {
    background: #e8f4ff;
    color: #2470ac
}

.status-delivered {
    background: #e8f8f1;
    color: #11784c
}

.status-cancelled,
.status-undelivered,
.status-wrong_details {
    background: #fdecec;
    color: #b93333
}

.order-route {
    margin: 16px 0;
    padding: 13px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    font-size: 12px;
    color: #55515d
}

.order-route span:last-child {
    text-align: right;
    color: var(--muted)
}

.order-card-bottom {
    align-items: center;
    font-size: 12px;
    color: var(--muted)
}

.order-card-bottom strong {
    font-size: 17px;
    color: var(--ink)
}

.item-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px
}

.order-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 12px
}

.search-box {
    background: #fff;
    border: 1px solid var(--line);
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden
}

.search-box>span {
    font-size: 20px;
    margin-left: 15px;
    color: var(--muted)
}

.search-box input {
    border: 0;
    outline: 0;
    min-width: 0;
    flex: 1;
    padding: 0 11px;
    background: transparent
}

.search-box button {
    height: 100%;
    border: 0;
    background: var(--ink);
    color: #fff;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer
}

.date-input {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink)
}

.filter-tabs,
.period-tabs {
    display: flex;
    gap: 5px;
    overflow: auto;
    padding: 4px;
    background: #ecebef;
    border-radius: 14px;
    margin-bottom: 18px;
    scrollbar-width: none
}

.filter-tabs a,
.period-tabs a {
    flex: 1;
    min-width: max-content;
    text-align: center;
    padding: 10px 14px;
    border-radius: 11px;
    color: #6d6975;
    font-size: 12px;
    font-weight: 700
}

.filter-tabs a.active,
.period-tabs a.active {
    background: #fff;
    color: var(--orange);
    box-shadow: 0 3px 12px rgba(20, 20, 28, .08)
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px
}

.pagination a,
.text-button {
    color: var(--orange);
    font-weight: 800;
    font-size: 13px
}

.pagination small {
    color: var(--muted)
}

.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    text-align: center;
    padding: 46px 20px
}

.empty-state>span {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    background: #fff0e9;
    color: var(--orange);
    font-size: 25px
}

.empty-state h3,
.empty-state h1 {
    margin: 0 0 8px
}

.empty-state p {
    color: var(--muted);
    margin: 0 0 15px
}

.empty-state.small {
    padding: 28px
}

.page-error {
    margin-top: 8vh
}

.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px
}

.detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff, #faf9fb);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px
}

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

.detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px
}

.full-card {
    grid-column: 1/-1
}

.card-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px
}

.card-title>span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff0e9;
    color: var(--orange);
    display: grid;
    place-items: center;
    font-weight: 800
}

.card-title h2 {
    font-size: 16px;
    margin: 0
}

.journey-line {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line)
}

.journey-line:last-child {
    border: 0
}

.journey-line small,
.detail-list dt {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px
}

.journey-line strong {
    font-size: 13px
}

.detail-list {
    margin: 0
}

.detail-list>div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f0eff2
}

.detail-list>div:last-child {
    border: 0
}

.detail-list dd {
    margin: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    word-break: break-word
}

.item-lines>div,
.bill-lines>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    font-size: 13px
}

.item-lines {
    border-bottom: 1px dashed var(--line);
    padding-bottom: 6px
}

.item-lines b {
    color: var(--orange);
    margin-right: 7px
}

.bill-lines {
    padding-top: 7px;
    color: var(--muted)
}

.bill-total {
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 16px !important;
    margin-top: 5px
}

.instructions {
    margin: 0;
    color: #55515d;
    line-height: 1.65
}

.timeline {
    display: flex;
    gap: 0;
    overflow: auto
}

.timeline>div {
    min-width: 150px;
    position: relative;
    padding-top: 23px
}

.timeline>div:before {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    right: 0;
    height: 2px;
    background: #ece9ef
}

.timeline>div>span {
    position: absolute;
    top: 1px;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px #fff0e9
}

.timeline strong,
.timeline small {
    display: block;
    font-size: 11px
}

.timeline small {
    color: var(--muted);
    margin-top: 4px
}

.earnings-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden
}

.earnings-hero:after {
    content: "₹";
    position: absolute;
    right: 25px;
    top: 2px;
    font-size: 150px;
    font-weight: 900;
    color: #fff3ee;
    z-index: 0
}

.earnings-hero>* {
    position: relative;
    z-index: 1
}

.earnings-hero>span {
    color: var(--muted)
}

.earnings-hero>strong {
    font-size: 48px;
    margin: 8px 0
}

.earnings-hero>small {
    color: var(--muted)
}

.earnings-message {
    background: #fff2ca;
    border-radius: 13px;
    padding: 13px;
    margin-top: 24px;
    font-size: 13px
}

.money-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0
}

.money-grid>div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 17px
}

.money-grid span,
.money-grid strong {
    display: block
}

.money-grid span {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 7px
}

.money-grid strong {
    font-size: 19px
}

.earning-days {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0 18px
}

.earning-days>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px dashed var(--line)
}

.earning-days>div:last-child {
    border: 0
}

.earning-days span strong,
.earning-days span small {
    display: block
}

.earning-days span strong {
    font-size: 13px
}

.earning-days span small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px
}

.calculation-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    margin: 18px auto;
    max-width: 540px
}

.account-hero {
    text-align: center;
    padding: 22px 0
}

.large-avatar {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    background: #221e2c;
    color: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 auto 16px;
    font-size: 30px;
    font-weight: 900
}

.account-hero h1 {
    margin: 0 0 5px
}

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

.account-card {
    max-width: 650px;
    margin: 0 auto
}

.logout-button {
    max-width: 650px;
    margin: 14px auto;
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid #ffd1d1;
    color: #bc3333;
    border-radius: 15px;
    padding: 14px;
    font-weight: 800;
    font-size: 13px
}

.centered {
    text-align: center
}

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

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1180px);
    height: 76px;
    padding: 8px max(18px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    z-index: 30
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #928e98;
    font-size: 10px;
    font-weight: 700
}

.bottom-nav a.active {
    color: var(--orange)
}

.nav-icon {
    font-size: 21px;
    line-height: 1
}

.login-body {
    min-height: 100vh;
    background: #fff
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr .85fr
}

.login-visual {
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .12), transparent 25%), linear-gradient(145deg, #ff6a2f, #ee4612);
    color: #fff;
    padding: 42px clamp(32px, 6vw, 90px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden
}

.login-visual:after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 80px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    right: -210px;
    bottom: -150px
}

.login-brand {
    font-weight: 900;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 10px
}

.login-brand .brand-mark {
    background: #fff;
    color: var(--orange)
}

.visual-copy {
    position: relative;
    z-index: 2
}

.visual-copy h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.055em;
    margin: 12px 0 22px
}

.visual-copy p {
    font-size: 17px;
    max-width: 480px;
    line-height: 1.55;
    color: #ffe9e1
}

.floating-order-card {
    position: relative;
    z-index: 2;
    max-width: 420px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    backdrop-filter: blur(14px)
}

.floating-order-card div {
    flex: 1
}

.floating-order-card small,
.floating-order-card strong {
    display: block
}

.floating-order-card small {
    color: #ffe1d5;
    margin-bottom: 4px
}

.live-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, .15)
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 35px
}

.login-card {
    width: min(100%, 420px)
}

.mobile-login-brand {
    display: none
}

.login-card h2 {
    font-size: 38px;
    margin: 0 0 10px;
    letter-spacing: -.035em
}

.login-card>p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 26px
}

.google-button {
    width: 100%;
    min-height: 54px;
    border: 1px solid #dcd9e0;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 7px 20px rgba(20, 20, 28, .06);
    transition: .2s
}

.google-button:hover {
    border-color: #aaa5af;
    transform: translateY(-1px)
}

.google-button svg {
    width: 21px
}

.google-button:disabled {
    opacity: .55
}

.secure-note {
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    background: #eff9f4;
    color: #277451;
    text-align: center;
    font-size: 11px;
    font-weight: 700
}

.secure-note span {
    margin-right: 5px
}

.login-card .support-copy {
    text-align: center;
    margin: 24px 0 0
}

.message-body {
    min-height: 100vh;
    background: linear-gradient(145deg, #f8f6f9, #fff);
    display: grid;
    place-items: center;
    padding: 22px
}

.message-card {
    width: min(100%, 480px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow)
}

.message-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: 900
}

.message-icon.denied {
    background: #fdeaea;
    color: var(--red)
}

.message-card h1 {
    font-size: 32px;
    margin: 0 0 12px
}

.message-card p {
    color: var(--muted);
    line-height: 1.6
}

.message-card p strong {
    color: var(--ink);
    word-break: break-word
}

.primary-button {
    display: block;
    background: var(--orange);
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-top: 24px;
    font-weight: 800
}

.secondary-link {
    display: block;
    color: var(--orange);
    font-weight: 700;
    margin: 17px
}

.message-card>small {
    display: block;
    color: var(--muted);
    line-height: 1.5
}

@media(min-width:900px) {
    .bottom-nav {
        width: auto;
        left: 24px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        height: auto;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 20px;
        flex-direction: column;
        box-shadow: var(--shadow)
    }

    .bottom-nav a {
        width: 64px;
        height: 62px
    }

    .partner-shell {
        padding-left: 82px
    }

    .partner-topbar {
        margin-left: -82px;
        padding-left: 110px
    }

    .partner-main {
        padding-bottom: 45px
    }
}

@media(max-width:760px) {
    .partner-topbar {
        height: 64px;
        padding: 0 18px
    }

    .partner-main {
        padding: 20px 16px 100px
    }

    .welcome-row {
        align-items: center
    }

    .welcome-row h1,
    .page-heading h1,
    .detail-hero h1 {
        font-size: 27px
    }

    .welcome-row p {
        font-size: 12px
    }

    .outlet-pill {
        padding: 7px 9px;
        font-size: 10px
    }

    .hero-card {
        min-height: 178px;
        padding: 23px;
        border-radius: 24px
    }

    .hero-copy>strong {
        font-size: 52px
    }

    .hero-ring {
        width: 90px;
        height: 90px;
        border-width: 8px
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .quick-grid a {
        padding: 14px
    }

    .order-list,
    .order-list.compact {
        grid-template-columns: 1fr
    }

    .detail-grid {
        grid-template-columns: 1fr
    }

    .full-card {
        grid-column: auto
    }

    .detail-hero {
        padding: 18px
    }

    .money-grid {
        grid-template-columns: 1fr 1fr
    }

    .money-grid>div:first-child {
        grid-column: 1/-1
    }

    .order-filters {
        flex-wrap: wrap
    }

    .date-input {
        height: 46px;
        flex: 1
    }

    .search-box {
        flex-basis: 100%
    }

    .flash-stack {
        top: 72px;
        left: 16px;
        right: 16px
    }

    .brand small {
        display: none
    }
}

@media(max-width:860px) {
    .login-layout {
        display: block;
        background: linear-gradient(160deg, #ff6a2f 0, #ee4612 35%, #fff 35%);
        padding: 24px;
        min-height: 100vh
    }

    .login-visual {
        display: none
    }

    .login-panel {
        min-height: calc(100vh - 48px);
        padding: 0;
        align-items: center
    }

    .login-card {
        background: #fff;
        border-radius: 28px;
        padding: 28px 24px;
        box-shadow: 0 25px 60px rgba(83, 29, 12, .18)
    }

    .mobile-login-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 42px
    }

    .login-card h2 {
        font-size: 32px
    }

    .login-card .eyebrow {
        margin-top: 0
    }
}

@media(max-width:430px) {
    .hero-ring {
        width: 80px;
        height: 80px
    }

    .quick-grid strong {
        font-size: 19px
    }

    .order-card {
        padding: 15px
    }

    .order-card-top {
        align-items: flex-start
    }

    .status {
        font-size: 9px
    }

    .journey-line {
        grid-template-columns: 1.35fr 1fr
    }

    .message-card {
        padding: 28px 20px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

/* Premium, compact partner authentication experience */
.login-body {
    font-family: Poppins, Inter, "Segoe UI", sans-serif
}

.login-layout {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr)
}

.login-visual {
    padding: clamp(28px, 4vw, 54px) clamp(34px, 6vw, 86px);
    background: radial-gradient(circle at 82% 14%, rgba(255, 255, 255, .16), transparent 24%), linear-gradient(145deg, #ff6b35 0, #f4511e 48%, #dd350b 100%)
}

.login-visual:before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    left: -190px;
    top: 28%
}

.login-brand {
    width: max-content;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.04em;
    position: relative;
    z-index: 2
}

.login-brand .brand-logo {
    background: #fff;
    box-shadow: 0 8px 24px rgba(91, 20, 0, .18)
}

.visual-copy h1 {
    font-size: clamp(40px, 5vw, 68px);
    margin: 10px 0 16px;
    max-width: 650px
}

.visual-copy p {
    font-size: 15px;
    line-height: 1.65;
    margin: 0
}

.portal-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 25px
}

.portal-points span {
    font-size: 11px;
    font-weight: 600;
    color: #fff0ea
}

.portal-points b {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 7px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    font-size: 9px
}

.floating-order-card {
    max-width: 410px;
    border-radius: 16px;
    padding: 13px 15px
}

.floating-order-card small {
    font-size: 10px
}

.floating-order-card strong {
    font-size: 12px
}

.order-arrow {
    font-size: 20px
}

.login-panel {
    position: relative;
    padding: 32px 34px 86px;
    background: linear-gradient(145deg, #fff 0, #fff 70%, #fff8f5 100%)
}

.login-card {
    width: min(100%, 390px)
}

.login-card h2 {
    font-size: 36px;
    line-height: 1.12;
    margin-bottom: 8px
}

.login-card>p.login-intro {
    font-size: 12px;
    line-height: 1.65;
    margin: 0 0 20px
}

.login-card>.flash {
    margin-bottom: 12px
}

.google-button,
.register-button {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-weight: 700;
    font-size: 13px;
    transition: transform .18s, box-shadow .18s, border-color .18s, background .18s
}

.google-button {
    box-shadow: 0 6px 18px rgba(20, 20, 28, .055)
}

.google-button:hover {
    box-shadow: 0 9px 24px rgba(20, 20, 28, .09)
}

.google-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    color: #96919b;
    font-size: 9px;
    font-weight: 600
}

.login-divider:before,
.login-divider:after {
    content: "";
    height: 1px;
    background: #ebe9ed;
    flex: 1
}

.register-button {
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid #ffb69d;
    color: #df420f;
    background: #fff8f5
}

.register-button:hover {
    background: #fff1eb;
    border-color: #ff936e;
    transform: translateY(-1px)
}

.register-button span {
    font-size: 18px
}

.google-button:focus-visible,
.register-button:focus-visible,
.login-brand:focus-visible,
.mobile-login-brand:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .32);
    outline-offset: 3px
}

.login-brand:focus-visible {
    outline-color: rgba(255, 255, 255, .72)
}

.secure-note {
    margin-top: 14px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 9px
}

.login-card .support-copy {
    margin: 15px 0 0;
    font-size: 9px
}

.login-footer {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: max(20px, env(safe-area-inset-bottom));
    color: #99959e;
    text-align: center;
    font-size: 8px;
    line-height: 1.7
}

@media(max-width:860px) {
    .login-layout {
        min-height: 100svh;
        padding: 18px;
        background: linear-gradient(160deg, #ff6a2f 0, #e9410f 32%, #fff 32%)
    }

    .login-panel {
        min-height: calc(100svh - 36px);
        padding: 24px 0 76px;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 22px 56px rgba(83, 29, 12, .18)
    }

    .login-card {
        padding: 0 22px;
        background: transparent;
        border-radius: 0;
        box-shadow: none
    }

    .mobile-login-brand {
        width: max-content;
        margin-bottom: 30px;
        font-size: 16px;
        letter-spacing: -.035em
    }

    .mobile-login-brand .brand-logo {
        width: 34px;
        height: 34px
    }

    .login-card h2 {
        font-size: 30px
    }

    .login-footer {
        bottom: max(15px, env(safe-area-inset-bottom))
    }
}

@media(max-width:390px) {
    .login-layout {
        padding: 10px
    }

    .login-panel {
        min-height: calc(100svh - 20px);
        padding-top: 18px;
        border-radius: 20px
    }

    .login-card {
        padding: 0 17px
    }

    .mobile-login-brand {
        margin-bottom: 22px
    }

    .login-card h2 {
        font-size: 27px
    }

    .google-button,
    .register-button {
        min-height: 47px
    }

    .secure-note {
        margin-top: 11px
    }
}

/* Centered login-only layout */
.login-layout {
    display: block;
    min-height: 100svh;
    background: linear-gradient(145deg, #fff7f3 0, #fff 48%, #fff4ef 100%)
}

.login-panel {
    min-height: 100svh;
    padding: 44px 24px 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #fff 0, #fff 28%, transparent 62%)
}

.login-card {
    width: min(100%, 390px)
}

.mobile-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 0 auto 34px;
    gap: 10px;
    font-size: 19px;
    letter-spacing: -.04em
}

.mobile-login-brand .brand-logo {
    width: 40px;
    height: 40px
}

.login-card>.eyebrow,
.login-card>h2,
.login-card>.login-intro {
    text-align: center
}

.login-footer {
    position: absolute
}

@media(max-width:860px) {
    .login-layout {
        padding: 0;
        background: linear-gradient(145deg, #fff7f3, #fff)
    }

    .login-panel {
        min-height: 100svh;
        padding: 28px 18px 78px;
        border-radius: 0;
        box-shadow: none;
        background: radial-gradient(circle at 50% 38%, #fff 0, #fff 34%, transparent 68%)
    }

    .login-card {
        padding: 0
    }

    .mobile-login-brand {
        display: flex;
        margin-bottom: 30px
    }
}

@media(max-width:390px) {
    .login-layout {
        padding: 0
    }

    .login-panel {
        min-height: 100svh;
        padding: 22px 17px 74px;
        border-radius: 0
    }

    .login-card {
        padding: 0
    }

    .mobile-login-brand {
        margin-bottom: 24px
    }
}

/* Low-contrast restaurant doodle wallpaper */
.login-layout {
    position: relative;
    isolation: isolate;
    background: #fffaf6
}

.login-layout:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("../partner-login-pattern.png");
    background-repeat: repeat;
    background-position: center;
    background-size: min(540px, 88vw) auto;
    opacity: .78;
    pointer-events: none
}

.login-panel {
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .97) 0, rgba(255, 255, 255, .94) 24%, rgba(255, 255, 255, .68) 48%, rgba(255, 250, 246, .18) 74%, transparent 100%)
}

@media(max-width:860px) {
    .login-layout {
        background: #fffaf6
    }

    .login-panel {
        background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .98) 0, rgba(255, 255, 255, .95) 32%, rgba(255, 255, 255, .72) 58%, rgba(255, 250, 246, .22) 82%, transparent 100%)
    }

    .login-layout:before {
        background-size: 410px auto;
        opacity: .95
    }
}

@media(max-width:390px) {
    .login-layout:before {
        background-size: 360px auto;
        opacity: .22
    }
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(255, 90, 31, .22)
}

.welcome-row h1 {
    font-size: 18px
}

.welcome-row p {
    font-size: 9px
}

.orders-page-heading {
    align-items: center
}

.orders-page-heading h1 {
    font-size: 12px;
    letter-spacing: 0;
    margin-bottom: 4px
}

.orders-page-heading p {
    font-size: 10px
}

.filter-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    height: 42px;
    padding: 0 15px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 16px rgba(25, 25, 35, .05)
}

.filter-button span {
    color: var(--orange);
    font-size: 17px
}

.filter-button i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    right: 7px;
    top: 7px;
    box-shadow: 0 0 0 3px #fff
}

.filter-modal[hidden] {
    display: none
}

.filter-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px
}

.filter-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(17, 15, 23, .52);
    backdrop-filter: blur(4px);
    cursor: default
}

.filter-sheet {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: 24px;
    box-shadow: 0 28px 80px rgba(15, 12, 20, .25);
    animation: filter-in .18s ease-out
}

.filter-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px
}

.filter-sheet-head h2 {
    font-size: 23px;
    margin: 0
}

.filter-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f3f1f5;
    color: #68636e;
    font-size: 24px;
    line-height: 1;
    cursor: pointer
}

.filter-group {
    border: 0;
    padding: 0;
    margin: 0 0 22px
}

.filter-group legend {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px
}

.filter-group>p {
    font-size: 10px;
    color: var(--muted);
    margin: 8px 2px 0
}

.popup-date-field {
    height: 54px;
    border: 1px solid #dcd9e1;
    border-radius: 14px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

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

.popup-date-field input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700
}

.status-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px
}

.status-choice-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.status-choice-grid span {
    display: block;
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer
}

.status-choice-grid input:checked+span {
    border-color: #ffb69c;
    background: #fff0e9;
    color: var(--orange)
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 18px;
    border-top: 1px solid var(--line)
}

.filter-actions>a {
    margin-right: auto;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800
}

.filter-actions button {
    height: 42px;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer
}

.cancel-filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted)
}

.apply-filter {
    border: 0;
    background: var(--orange);
    color: #fff
}

.modal-open {
    overflow: hidden
}

@keyframes filter-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:560px) {
    .filter-modal {
        place-items: end center;
        padding: 0
    }

    .filter-sheet {
        width: 100%;
        max-height: 88vh;
        border-radius: 25px 25px 0 0;
        padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
        animation: filter-up .22s ease-out
    }

    .status-choice-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .filter-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-bottom: 2px
    }

    @keyframes filter-up {
        from {
            transform: translateY(100%)
        }

        to {
            transform: none
        }
    }
}