/* ==========================================================================
   Toing Plus — warm paper, deep pine, persimmon.
   Palette: Paper (#F3EFE5), Surface (#FFFCF4), Pine (#0F1F1A),
            Pine Green (#0E5A4A), Persimmon (#C94E2E), Gold (#E9C46A),
            Jade (#1E8A63), Danger (#C44545)
   ========================================================================== */

:root {
    --bg-main: #F3EFE5;
    --bg-card: #ffffff;
    --bg-input: #F6F1E6;
    --bg-glass: rgba(255, 255, 255, 0.94);
    --bg-active: #EDF4EE;
    --border-strong: #DED6C6;
    --border-color: rgba(222, 214, 198, 0.85);

    --text-main: #15231F;
    --text-muted: #69776F;

    --swiggy-blue: #0E5A4A;
    --swiggy-skyblue: #C94E2E;
    --swiggy-gradient: linear-gradient(135deg, #0E5A4A 0%, #C94E2E 100%);
    --swiggy-glow: rgba(14, 90, 74, 0.12);

    --accent-green: #1E8A63;
    --accent-red: #C44545;
    --accent-blue: #0E5A4A;
    --accent-skyblue: #C94E2E;
    --accent-purple: #147A63;

    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ==========================================================================
   Global Reset & Scrollbar Removal
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* ==========================================================================
   #app Shell Container (Max-Width 480px, Centered)
   ========================================================================== */

#app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 84px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* ==========================================================================
   Loader (Glassmorphism Overlay)
   ========================================================================== */

.app-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250, 251, 253, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(14, 90, 74, 0.2);
    border-top-color: #0E5A4A;
    animation: loaderRotate 0.75s linear infinite;
}

.loader-msg {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    font-variant: small-caps;
    letter-spacing: 0.6px;
    color: #0E5A4A;
}

@keyframes loaderRotate {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header (Brand + Swiggy PRO Inline + Status Phone Badge)
   ========================================================================== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

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

.brand-badge-modern {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-squircle {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(14, 90, 74, 0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-squircle:hover {
    transform: rotate(6deg) scale(1.06);
}

.brand-s-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-text-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-name-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    letter-spacing: -0.2px;
    line-height: 1;
}

.pro-inline-tag {
    font-family: var(--font-heading);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(14, 90, 74, 0.12);
    color: #0A4236;
    border: 1px solid rgba(14, 90, 74, 0.25);
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

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

.header-phone-badge {
    background: var(--bg-input);
    border: 1px solid rgba(14, 90, 74, 0.3);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.header-phone-badge.active {
    background: var(--bg-active);
    border: 1px solid rgba(14, 90, 74, 0.3);
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(14, 90, 74, 0.08);
}

/* ==========================================================================
   Main Content Body & Tab Views
   ========================================================================== */

.app-body {
    flex: 1;
    padding: 14px 14px 10px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.tab-view {
    display: none;
    animation: fadeSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-view.active {
    display: block;
}

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

/* ==========================================================================
   Section Labels & Count Badges
   ========================================================================== */

.section-label-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    letter-spacing: 0.2px;
}

.section-count-pill {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    background: rgba(14, 90, 74, 0.1);
    color: #0A4236;
    border: 1px solid rgba(14, 90, 74, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Cards (Soft Light Elevation)
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: rgba(14, 90, 74, 0.35);
}

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

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}

.card-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.card-icon-badge.blue {
    background: rgba(14, 90, 74, 0.12);
    color: #0A4236;
}

.card-icon-badge.purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

/* ==========================================================================
   Login Tab Track Switcher (.slim-switcher / .login-toggle-track)
   ========================================================================== */

.slim-switcher,
#login-toggle-track {
    display: flex;
    background: var(--bg-input);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    gap: 3px;
}

.slim-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    outline: none;
    transition: all 0.25s ease;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
}

.slim-tab.active {
    background: var(--swiggy-gradient);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 90, 74, 0.25);
}

/* ==========================================================================
   Fields & Inputs
   ========================================================================== */

.field-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s ease;
    height: 46px;
}

.field-box:focus-within {
    border-color: rgba(14, 90, 74, 0.6);
}

.search-field-pill {
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    height: 42px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.search-field-pill:focus-within {
    border-color: rgba(14, 90, 74, 0.6);
}

.search-field-pill input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.search-field-pill input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.field-prefix {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    font-family: var(--font-heading);
}

.field-divider {
    width: 1.5px;
    height: 20px;
    background: var(--border-color);
}

.field-box input,
.field-box textarea {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 0;
    width: 100%;
}

.field-box input::placeholder,
.field-box textarea::placeholder {
    color: #7B8881;
    font-weight: 500;
}

.field-box textarea {
    resize: none;
    font-family: monospace;
    font-size: 11.5px;
    line-height: 1.45;
}

.search-field {
    height: 42px;
    border-radius: 12px;
    margin-bottom: 0;
}

.field-icon {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.field-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(14, 90, 74, 0.12);
    color: #0A4236;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.field-icon-badge.green  { background: rgba(30, 138, 99, 0.14); color: #1E8A63; }
.field-icon-badge.amber  { background: rgba(245, 158, 11, 0.14); color: #D99A2B; }
.field-icon-badge.purple { background: rgba(168, 85, 247, 0.14); color: #147A63; }
.field-icon-badge.blue   { background: rgba(14, 90, 74, 0.14); color: #0A4236; }
.field-icon-badge.teal   { background: rgba(20, 184, 166, 0.14); color: #14b8a6; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.btn-primary,
.btn-glow-submit-wide {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    background: var(--swiggy-gradient);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(14, 90, 74, 0.28);
    transition: all 0.2s ease;
    outline: none;
    margin-top: 10px;
}

.btn-glow-submit-wide:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(14, 90, 74, 0.35);
}

.btn-glow-submit-wide:active,
.btn-primary:active {
    transform: scale(0.98);
}

.btn-sub {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-sub:hover {
    background: var(--bg-card);
    border-color: #0E5A4A;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
}

.btn-danger {
    background: var(--accent-red);
    color: #ffffff;
}

.export-pill-btn {
    background: rgba(14, 90, 74, 0.1);
    color: #0A4236;
    border: 1px solid rgba(14, 90, 74, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
}

.export-pill-btn:hover {
    background: #0E5A4A;
    color: #ffffff;
}

/* ==========================================================================
   Full Page Empty States
   ========================================================================== */

.full-page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
    padding: 24px;
}

.fpe-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(14, 90, 74, 0.1);
    border: 2px solid rgba(14, 90, 74, 0.22);
    color: #0A4236;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fpe-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
}

.fpe-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 250px;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* ==========================================================================
   Account Cards
   ========================================================================== */

.account-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.account-card:hover {
    border-color: rgba(14, 90, 74, 0.35);
    transform: translateY(-1px);
}

.account-card.active {
    border: 1px solid var(--accent-green);
    background-color: rgba(30, 138, 99, 0.05);
}

.account-card.expired { opacity: .72; }
.account-card.expired:hover { transform: none; }

.account-card.ordered {
    border: 1px solid rgba(30, 138, 99, 0.25);
}

.acc-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(14, 90, 74, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A4236;
    font-size: 13px;
    flex-shrink: 0;
}

.acc-avatar.active {
    background: rgba(30, 138, 99, 0.15);
    color: #1E8A63;
}

.acc-avatar.expired {
    background: rgba(239, 68, 68, 0.14);
    color: var(--accent-red);
}

.acc-avatar.ordered {
    background: rgba(30, 138, 99, 0.12);
    color: #1E8A63;
}

.acc-title-text {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.acc-sub-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.account-card.active .radio-circle {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.radio-checkmark {
    font-size: 10px;
    color: #ffffff;
    font-weight: bold;
    display: none;
}

.account-card.active .radio-checkmark {
    display: block;
}

/* round dot on the avatar corner: empty ring when not selected, green when selected */
.acc-av-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
.acc-tick {
    position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid var(--border-strong); background: var(--bg-card);
    display: grid; place-items: center; font-size: 8px; color: transparent; transition: all 0.2s ease;
}
.acc-tick.on { background: var(--accent-green); border-color: var(--accent-green); color: #ffffff; }

/* All / Fresh / Used tabs */
.acc-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.acc-tab {
    flex: 0 0 auto; height: 24px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-muted); font-size: 10.5px; font-weight: 800; font-family: var(--font-heading);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: all 0.2s ease;
}
.acc-tab i { font-size: 9.5px; }
.acc-tab span { font-size: 10.5px; }
.acc-tab:active { transform: scale(0.97); }
.sheet-acc-tabs { gap: 6px; margin-bottom: 8px; }
.acc-tab.on { color: #ffffff; border-color: var(--accent-green); background: linear-gradient(135deg, #1E8A63, #147A63); box-shadow: 0 2px 6px rgba(30, 138, 99, 0.25); }
.acc-tab.acc-del-all { margin-left: auto; width: 28px; padding: 0; color: var(--accent-red, #C44545); border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.acc-tab.acc-del-all i { font-size: 11px; }

/* small Mark Used / Mark Fresh toggle on each account card */
.account-card { gap: 8px; }
.acc-main { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.acc-text { min-width: 0; }
.acc-title-text, .acc-sub-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.acc-status-toggle {
    display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 20px; font-size: 9.5px; font-weight: 800;
    font-family: var(--font-heading); white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease;
}
.acc-status-toggle i { font-size: 8.5px; }
.acc-status-toggle.to-used { color: var(--text-muted); background: var(--bg-input); border-color: var(--border-color); }
.acc-status-toggle.to-fresh { color: #147A63; background: rgba(30, 138, 99, 0.12); border-color: rgba(30, 138, 99, 0.3); }
.acc-status-toggle:active { transform: scale(0.95); }
.acc-fc-col { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }

.account-card-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.account-card-delete-btn:hover {
    color: var(--accent-red);
}

/* ==========================================================================
   Address Cards & Stack
   ========================================================================== */

.address-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-action-card:hover {
    border-color: #0E5A4A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 90, 74, 0.08);
}

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

.action-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.action-card-icon.blue { background: rgba(14, 90, 74, 0.12); color: #0A4236; }
.action-card-icon.purple { background: rgba(168, 85, 247, 0.12); color: #147A63; }

.action-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.action-card-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.action-card-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

.addr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.addr-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.addr-label {
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 4px;
}

.addr-label.global { background: rgba(14, 90, 74, 0.12); color: #0A4236; }
.addr-label.account { background: rgba(30, 138, 99, 0.12); color: #1E8A63; }

.addr-name-row {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

.addr-details-row {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.addr-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 6px;
    border-radius: 6px;
}

.addr-delete-btn:hover { color: var(--accent-red); }

/* ==========================================================================
   Leaflet Map Engine & GPS Button
   ========================================================================== */

.page-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.back-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-top-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.leaflet-map-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.gps-floating-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid #0E5A4A;
    color: #0A4236;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(14, 90, 74, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 12px;
    height: 42px;
}

.map-search-icon { color: #0A4236; font-size: 13px; margin-right: 8px; }

.map-search-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
}

.map-search-dropdown {
    position: absolute;
    top: 48px; left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    max-height: 200px;
    overflow-y: auto;
}

.map-search-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-search-item:hover { background: var(--bg-input); }

.annotation-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }

.tag-pill {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 11.5px;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-pill.active {
    background: #0E5A4A;
    color: #ffffff;
    border-color: #0E5A4A;
}

/* ==========================================================================
   Bottom Navigation Bar (Vector SVG Stroke Icons)
   ========================================================================== */

.nav-bar-6,
.nav-bar-5 {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 64px;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    display: grid;
    align-items: center;
    z-index: 200;
    padding: 0 2px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.nav-bar-6 {
    grid-template-columns: repeat(6, 1fr);
}

.nav-bar-5 {
    grid-template-columns: repeat(5, 1fr);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    height: 100%;
    transition: color 0.2s ease, transform 0.15s ease;
    padding: 6px 0;
    outline: none;
}

.nav-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.nav-ico svg {
    display: block;
}

.nav-tab span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
    font-family: var(--font-heading);
}

.nav-tab.active {
    color: #0A4236;
}

.nav-tab.active .nav-ico {
    transform: translateY(-1px) scale(1.08);
}

.nav-cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #C44545;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Center Quick Action Button */
.nav-buy-holder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-buy-btn {
    top: -12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--swiggy-gradient);
    color: #fff;
    border: 3px solid var(--bg-card);
    box-shadow: 0 3px 10px rgba(14, 90, 74, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   Modals & Bottom Sheet Overlays
   ========================================================================== */

.bottom-sheet-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(21, 35, 31, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 4000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.bottom-sheet-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    animation: slideUpSheet 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

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

.bottom-sheet-drag-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 99px;
    margin: 10px auto 4px;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close-btn,
.sheet-close-btn {
    background: var(--bg-input);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-filter-bar-wrap {
    padding: 8px 16px;
    overflow-x: auto;
}

.sheet-filter-bar {
    display: flex;
    gap: 6px;
}

.filter-pill {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill.active {
    background: #0E5A4A;
    color: #ffffff;
    border-color: #0E5A4A;
}

/* ==========================================================================
   Registered Account Confirmation Modal
   ========================================================================== */

.confirm-modal-card {
    width: 90%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.confirm-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(14, 90, 74, 0.12);
    color: #0A4236;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.confirm-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.confirm-submsg {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 18px;
}

.confirm-btns-row {
    display: flex;
    gap: 10px;
}

.btn-cancel-modal {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-continue-modal {
    background: #0E5A4A;
    color: #ffffff;
}

/* ==========================================================================
   Toast Notification Banner
   ========================================================================== */

/* Top clean toast banner - same size, slide and 1s progress line as blinkit_bot */
.timeline-toast-banner {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 330px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 7px 12px 6px 12px;
    box-shadow: 0 10px 30px rgba(21, 35, 31, 0.14);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: top 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: top, opacity;
}

.timeline-toast-banner.show { top: 14px; }

.timeline-toast-body { display: flex; align-items: center; gap: 10px; }

.timeline-toast-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(30, 138, 99, 0.14);
    color: #1E8A63;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    flex-shrink: 0;
}

.timeline-toast-msg {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.timeline-toast-progress {
    height: 2.5px;
    background: #1E8A63;
    width: 100%;
    margin-top: 6px;
    border-radius: 2px;
    transition: width 1s linear;
}


/* ==========================================================================
   Night theme (toggle in header)
   ========================================================================== */
[data-theme="dark"] {
    --bg-main: #0B1713;
    --bg-card: #122620;
    --bg-input: #1A332C;
    --bg-glass: rgba(11, 18, 32, 0.92);
    --bg-active: rgba(14, 90, 74, 0.12);
    --border-color: rgba(154, 166, 159, 0.14);
    --border-strong: rgba(154, 166, 159, 0.22);
    --text-main: #E9F1EB;
    --text-muted: #A9B8B0;
}

.icon-toggle {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.icon-toggle:active { transform: scale(0.92); }


/* ── Access-key gate / maintenance ───────────────────── */
.auth-gate { position: fixed; inset: 0; z-index: 10000; background: var(--bg-main); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-gate-card { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; box-shadow: 0 10px 40px rgba(14, 90, 74, 0.12); }
.auth-gate-card h2 { font-family: var(--font-heading); font-size: 20px; margin: 10px 0 6px; color: var(--text-main); }
.auth-gate-card p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.auth-gate-logo { width: 54px; height: 54px; margin: 0 auto; border-radius: 16px; background: var(--swiggy-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.auth-gate-error { color: var(--accent-red); font-size: 12px; font-weight: 700; min-height: 16px; margin-top: 8px; }

/* ── Section headers (Saved Accounts / Saved Addresses) — blinkit style ── */
.section-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.section-head-icon { flex-shrink: 0; display: inline-flex; font-size: 13px; color: #0A4236; }
[data-theme="dark"] .section-head-icon { color: var(--swiggy-blue); }
.section-head-title { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.section-head-line { flex: 1; height: 1.5px; min-width: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--swiggy-blue), rgba(14, 90, 74, 0)); opacity: .7; }
.section-head .count-badge { border: none; flex-shrink: 0; min-width: 22px; text-align: center; border-radius: 20px; font-size: 10.5px; padding: 2px 7px; }
.section-head-action { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 0; font-size: 12px; font-weight: 700; cursor: pointer; color: #0A4236; background: none; border: none; transition: opacity .2s; }
[data-theme="dark"] .section-head-action { color: var(--swiggy-blue); }
.section-head-action:active { opacity: .6; }

.count-badge { background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-sm); }

.mini-search { display: flex; align-items: center; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 10px; padding: 0 10px; height: 38px; }
.mini-search input { width: 100%; border: none; background: transparent; color: var(--text-main); font-size: 12.5px; font-weight: 600; outline: none; }


/* ==========================================================================
   Blinkit-style add-address cards + motion layer
   ========================================================================== */
.store-links-container { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.store-link-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
    overflow: hidden;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.store-link-card.sky-card:hover { border-color: rgba(14, 90, 74, 0.6); box-shadow: 0 6px 18px rgba(14, 90, 74, 0.22); }
.store-link-card.green-card:hover { border-color: rgba(30, 138, 99, 0.5); box-shadow: 0 6px 18px rgba(30, 138, 99, 0.22); }

.card-left { display: flex; align-items: center; gap: 10px; text-align: left; flex: 1; min-width: 0; }
.card-icon-box { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; transition: transform 0.25s ease; }
.card-icon-box.sky { background: rgba(14, 90, 74, 0.14); border: 1px solid rgba(14, 90, 74, 0.32); color: #0A4236; }
.card-icon-box.green { background: rgba(30, 138, 99, 0.14); border: 1px solid rgba(30, 138, 99, 0.3); color: var(--accent-green); }
[data-theme="dark"] .card-icon-box.sky { color: var(--swiggy-blue); }
.card-info { display: flex; flex-direction: column; min-width: 0; }
.store-link-card .card-title { font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; line-height: 1.25; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-link-card .card-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-link-card:hover .card-icon-box { transform: scale(1.08); }

.open-pill-btn { padding: 5px 11px; border-radius: 16px; font-family: var(--font-heading); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; gap: 4px; flex-shrink: 0; transition: all 0.2s ease; }
.open-pill-btn.sky { background: rgba(14, 90, 74, 0.14); color: #0A4236; border: 1px solid rgba(14, 90, 74, 0.32); }
.open-pill-btn.green { background: rgba(30, 138, 99, 0.14); color: var(--accent-green); border: 1px solid rgba(30, 138, 99, 0.3); }
[data-theme="dark"] .open-pill-btn.sky { color: var(--swiggy-blue); }
.store-link-card.sky-card:hover .open-pill-btn.sky { background: var(--swiggy-blue); color: #fff; }
.store-link-card.green-card:hover .open-pill-btn.green { background: var(--accent-green); color: #fff; }
.open-pill-btn i { font-size: 9.5px; }

/* ── Motion layer (ported from blinkit_bot) ── */
html { scroll-behavior: smooth; }
.card, .store-link-card, .account-card, .order-card, .addr-card, .cart-item {
    animation: riseIn .42s cubic-bezier(.22, 1, .36, 1) both;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.store-link-card:hover { transform: translateY(-2px); }
.store-link-card:active, .account-card:active, .addr-card:active { transform: scale(.985); }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.card:nth-child(2), .account-card:nth-child(2), .order-card:nth-child(2), .addr-card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3), .account-card:nth-child(3), .order-card:nth-child(3), .addr-card:nth-child(3) { animation-delay: .10s; }
.card:nth-child(4), .account-card:nth-child(4), .order-card:nth-child(4), .addr-card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(n+5), .account-card:nth-child(n+5), .order-card:nth-child(n+5), .addr-card:nth-child(n+5) { animation-delay: .2s; }

.btn-glow-submit-wide, .icon-toggle, .nav-tab, .open-pill-btn { transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease; }
.btn-glow-submit-wide:active, .open-pill-btn:active { transform: scale(.95); }
.btn-glow-submit-wide { position: relative; overflow: hidden; }
.btn-glow-submit-wide::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    animation: btnSheen 3.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnSheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

input, textarea, select { transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease; }

.fpe-ring { animation: pinBounce 2.4s ease-in-out infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.modal-overlay, .bottom-sheet-overlay { animation: backdropIn .25s ease both; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

.nav-tab i, .nav-tab svg { transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.nav-tab.active i, .nav-tab.active svg { transform: translateY(-2px) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Add Account card (sizes & text from blinkit_bot) ── */
#loginCard { margin-bottom: 12px; }
.login-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.login-head-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(14, 90, 74, 0.12); display: flex; align-items: center; justify-content: center; color: #0A4236; }
.login-head-icon i { font-size: 13px; }
[data-theme="dark"] .login-head-icon { color: var(--swiggy-blue); }
.login-head-title { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--text-main); }

.login-pill-track { display: flex; background: var(--bg-input); padding: 3px; border-radius: 20px; border: 1px solid var(--border-color); gap: 2px; }
.login-pill { border: none; padding: 5px 12px; border-radius: 16px; font-size: 10px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 5px; outline: none; line-height: 1; background: transparent; color: var(--text-muted); transition: all 0.25s ease; letter-spacing: 0.3px; font-family: var(--font-body); }
.login-pill i { font-size: 9px; }
.login-pill.active { background: var(--swiggy-blue); color: #fff; box-shadow: 0 1px 4px rgba(14, 90, 74, 0.4); }

.login-label { font-size: 11.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; display: block; margin-bottom: 6px; }
.login-label-row { font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.login-edit { color: #0A4236; cursor: pointer; font-weight: 800; }
[data-theme="dark"] .login-edit { color: var(--swiggy-blue); }

.login-phone-box { display: flex; align-items: center; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: border-color .2s ease; }
.login-phone-box:focus-within { border-color: rgba(14, 90, 74, 0.6); }
.login-phone-prefix { padding: 0 10px 0 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-right: 1.5px solid var(--border-color); height: 44px; display: flex; align-items: center; flex-shrink: 0; font-family: var(--font-heading); }
.login-phone-box input { flex: 1; min-width: 0; border: none; background: transparent; padding: 0 14px; height: 44px; font-size: 14px; font-weight: 500; color: var(--text-main); outline: none; letter-spacing: 0.5px; box-shadow: none; }

.login-otp-input, .login-code-input { height: 44px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-main); outline: none; box-sizing: border-box; transition: border-color .2s ease; }
.login-otp-input { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; text-align: center; letter-spacing: 4px; }
.login-code-input { width: 100%; padding: 0 14px; font-size: 12.5px; font-weight: 600; }
.login-otp-input:focus, .login-code-input:focus { border-color: rgba(14, 90, 74, 0.6); }

.login-btn { width: 100%; height: 42px; border: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; cursor: pointer; color: #fff; background: var(--swiggy-gradient); box-shadow: 0 3px 10px rgba(14, 90, 74, 0.28); position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .2s ease; }
.login-btn:active { transform: scale(.95); }
.login-btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); animation: btnSheen 3.6s ease-in-out infinite; pointer-events: none; }

/* Text fields inside a box never draw their own border / focus ring */
.field-box input, .field-box textarea, .mini-search input, .search-field-pill input,
.map-search-wrap input, .login-phone-box input {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

/* ── Confirm popup (blinkit_bot customConfirm) ── */
.hidden { display: none !important; }
.confirm-backdrop { position: fixed; inset: 0; z-index: 7000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(21, 35, 31, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: backdropIn .25s ease both; }
.confirm-box { width: 300px; max-width: 100%; text-align: center; padding: 20px 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(21, 35, 31, 0.18); animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes modalPop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.confirm-ico { width: 36px; height: 36px; background: var(--swiggy-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px auto; }
.confirm-ico i { color: #fff; font-size: 18px; font-weight: 900; }
.confirm-title { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text-main); margin: 0 0 6px 0; letter-spacing: 0.5px; }
.confirm-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 16px 0; line-height: 1.4; padding: 0 4px; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btn { flex: 1; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; letter-spacing: 0.5px; font-family: var(--font-heading); transition: transform .15s ease; }
.confirm-btn:active { transform: scale(.95); }
.confirm-btn.cancel { background: #e5e7eb; color: #374151; }
[data-theme="dark"] .confirm-btn.cancel { background: var(--bg-input); color: var(--text-main); }
.confirm-btn.ok { background: var(--swiggy-blue); color: #fff; box-shadow: 0 3px 10px rgba(14, 90, 74, 0.4); }

/* ── Address tags (blinkit_bot): label tag on every address, "Account address" on the account's own ── */
.addr-label { font-family: var(--font-heading); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; padding: 2px 6px; display: inline-block; }
.addr-label.home { background-color: var(--swiggy-blue); color: #ffffff; border: none; }
.addr-label.work { background-color: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-main); }
.addr-acc-tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; font-family: var(--font-heading); color: #1E8A63; background: rgba(30, 138, 99, 0.12); vertical-align: middle; }

.login-json-input { height: auto; padding: 10px 14px; resize: none; font-family: monospace; font-size: 11.5px; font-weight: 500; line-height: 1.45; display: block; }


/* ==========================================================================
   Restaurant Search tab
   ========================================================================== */
.sr-loc-bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; text-align: left; color: var(--text-main); }
.sr-loc-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--swiggy-glow); color: var(--swiggy-blue); font-size: 14px; flex-shrink: 0; }
.sr-loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-loc-label { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.sr-loc-title { font-size: 13.5px; font-weight: 800; font-family: var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-loc-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-loc-chev { color: var(--swiggy-blue); font-size: 11px; }
.sr-search { height: 44px; border-radius: 14px; margin-bottom: 12px; }
.sr-search input { font-size: 14px; }
.sr-clear { border: none; background: var(--border-strong); color: var(--text-muted); width: 20px; height: 20px; border-radius: 50%; font-size: 10px; cursor: pointer; }

.sr-skel { height: 66px; border-radius: var(--radius-md); margin-bottom: 8px; background: linear-gradient(90deg, var(--bg-input) 25%, var(--border-strong) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: srShim 1.2s infinite; }
.sr-skel.tall { height: 110px; }
@keyframes srShim { to { background-position: -200% 0; } }

.sr-msg { text-align: center; padding: 38px 20px; }
.sr-msg-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 20px; color: var(--swiggy-blue); background: var(--swiggy-glow); }
.sr-msg-title { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--text-main); }
.sr-msg-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.sr-empty-line { padding: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

.sr-count, .sr-recent-head { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); margin: 4px 2px 8px; display: flex; justify-content: space-between; align-items: center; }
.sr-recent-head button { border: none; background: none; color: var(--swiggy-blue); font-weight: 800; font-size: 11px; cursor: pointer; }
.sr-recent { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 4px; border: none; border-bottom: 1px solid var(--border-color); background: none; color: var(--text-main); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.sr-recent i { color: var(--text-muted); font-size: 12px; }

.sr-rest { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); text-align: left; cursor: pointer; color: var(--text-main); transition: transform .12s, border-color .12s; }
.sr-rest:active { transform: scale(.985); border-color: var(--swiggy-blue); }
.sr-rest-img { position: relative; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--bg-input); display: grid; place-items: center; color: var(--text-muted); }
.sr-rest-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-rest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-rest-name { font-family: var(--font-heading); font-size: 14px; font-weight: 800; line-height: 1.25; }
.sr-rest-name mark { background: none; color: var(--swiggy-blue); }
.sr-rest-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); }
.sr-rating { display: inline-flex; align-items: center; gap: 3px; background: var(--accent-green); color: #fff; font-weight: 800; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; }
.sr-rating i { font-size: 8px; }
.sr-dot { opacity: .5; }
.sr-rest-go { color: var(--text-muted); font-size: 11px; }

.sr-menu-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sr-menu-top-title { flex: 1; font-family: var(--font-heading); font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-veg-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; font-weight: 800; color: var(--text-muted); }
.sr-veg-switch input { display: none; }
.sr-veg-track { width: 34px; height: 20px; border-radius: 20px; background: var(--border-strong); position: relative; transition: background .2s; }
.sr-veg-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sr-veg-switch input:checked + .sr-veg-track { background: var(--accent-green); }
.sr-veg-switch input:checked + .sr-veg-track .sr-veg-knob { transform: translateX(14px); }

.sr-mh { padding: 14px; margin-bottom: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.sr-mh-name { font-family: var(--font-heading); font-size: 18px; font-weight: 800; }
.sr-mh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.sr-mh-cuisine { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.sr-mh-area { margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }
.sr-mh-area i { color: var(--swiggy-blue); margin-right: 5px; }
.sr-warn { margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--accent-red); background: rgba(255,77,77,.1); }

.sr-cat { margin-bottom: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.sr-cat-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border: none; background: none; color: var(--text-main); font-family: var(--font-heading); font-weight: 800; font-size: 14px; cursor: pointer; text-align: left; }
.sr-cat-head small { color: var(--text-muted); font-weight: 700; }
.sr-cat-head i { font-size: 11px; color: var(--text-muted); transition: transform .2s; }
.sr-cat.open .sr-cat-head i { transform: rotate(180deg); }
.sr-cat-body { display: none; padding: 0 14px 4px; }
.sr-cat.open .sr-cat-body { display: block; }

.sr-dish { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border-color); }
.sr-dish.oos { opacity: .55; }
.sr-dish-info { flex: 1; min-width: 0; }
.sr-dish-name { font-size: 14px; font-weight: 700; margin-top: 4px; }
.sr-dish-price { font-size: 13px; font-weight: 700; margin-top: 2px; }
.sr-dish-price s { margin-left: 6px; color: var(--text-muted); font-weight: 500; font-size: 12px; }
.sr-dish-desc { margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-dish-side { position: relative; width: 112px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.sr-dish-img { width: 112px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--bg-input); }
.sr-dish-act { display: flex; justify-content: center; }
.sr-dish-img + .sr-dish-act { margin-top: -16px; position: relative; }
.sr-custom-note { margin-top: 4px; font-size: 9.5px; color: var(--text-muted); font-weight: 600; }
.sr-oos { font-size: 11px; font-weight: 800; color: var(--text-muted); padding: 8px 0; }

.sr-diet { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid; border-radius: 3px; flex-shrink: 0; }
.sr-diet i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sr-diet.veg { color: #1E8A63; }
.sr-diet.nonveg { color: #C44545; }

.sr-add { min-width: 86px; height: 34px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--accent-green); font-weight: 900; font-size: 13px; letter-spacing: .4px; box-shadow: 0 4px 12px rgba(21, 35, 31, .1); cursor: pointer; }
.sr-add:active { transform: scale(.95); }
.sr-step { display: inline-flex; align-items: center; justify-content: space-between; min-width: 86px; height: 34px; border-radius: 10px; background: var(--accent-green); color: #fff; box-shadow: 0 4px 12px rgba(30, 138, 99, .35); overflow: hidden; }
.sr-step button { width: 30px; height: 100%; border: none; background: none; color: #fff; font-size: 11px; cursor: pointer; }
.sr-step button:active { background: rgba(0,0,0,.15); }
.sr-step span { font-weight: 900; font-size: 13px; min-width: 18px; text-align: center; }
.sr-step.sm { min-width: 74px; height: 30px; background: var(--bg-card); color: var(--accent-green); border: 1px solid var(--accent-green); box-shadow: none; }
.sr-step.sm button { color: var(--accent-green); width: 26px; }

.sr-cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--accent-green); color: #fff; box-shadow: 0 10px 28px rgba(30, 138, 99, .4); cursor: pointer; animation: srRise .25s ease-out; }
.sr-cart-bar-left { display: flex; flex-direction: column; min-width: 0; }
.sr-cart-bar-count { font-size: 11px; font-weight: 700; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.sr-cart-bar-total { font-family: var(--font-heading); font-size: 16px; font-weight: 900; }
.sr-cart-bar-go { font-weight: 900; font-size: 13px; display: flex; align-items: center; gap: 6px; }
@keyframes srRise { from { transform: translateY(20px); opacity: 0; } }

.sr-sheet-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(2,6,23,.55); backdrop-filter: blur(3px); }
.sr-sheet { width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--bg-main); border-radius: 24px 24px 0 0; animation: srSlide .25s ease-out; }
@keyframes srSlide { from { transform: translateY(100%); } }
.sr-sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 12px; }
.sr-sheet-title { font-family: var(--font-heading); font-size: 17px; font-weight: 800; margin-bottom: 12px; }

.sr-gps-row, .sr-addr-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; text-align: left; color: var(--text-main); }
.sr-gps-row { border-color: var(--swiggy-blue); background: var(--bg-active); }
.sr-gps-ico, .sr-addr-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--swiggy-gradient); color: #fff; font-size: 15px; flex-shrink: 0; }
.sr-addr-ico { background: var(--bg-input); color: var(--swiggy-blue); }
.sr-gps-text, .sr-addr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-gps-title, .sr-addr-body b { font-size: 14px; font-weight: 800; }
.sr-gps-sub, .sr-addr-body small { font-size: 11.5px; color: var(--text-muted); }
.sr-addr-row.on { border-color: var(--swiggy-blue); }
.sr-addr-check { color: var(--swiggy-blue); }

.sr-cart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.sr-cart-rest { font-family: var(--font-heading); font-size: 17px; font-weight: 800; }
.sr-cart-loc { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.sr-cart-loc i { color: var(--swiggy-blue); margin-right: 5px; }
.sr-link-danger { border: none; background: none; color: var(--accent-red); font-weight: 800; font-size: 12px; cursor: pointer; }
.sr-cart-lines { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 4px 12px; }
.sr-cart-line { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border-color); }
.sr-cart-line:last-child { border-bottom: none; }
.sr-cart-line-info { flex: 1; min-width: 0; }
.sr-cart-line-name { font-size: 13px; font-weight: 700; }
.sr-cart-line-addons { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.sr-cart-line-price { min-width: 56px; text-align: right; font-size: 13px; font-weight: 800; }
.sr-bill { margin-top: 12px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: opacity .2s; }
.sr-bill.loading { opacity: .6; }
.sr-bill-title { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.sr-bill-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; color: var(--text-muted); }
.sr-bill-row.disc { color: var(--accent-green); }
.sr-bill-row.total { margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed var(--border-strong); font-size: 15px; font-weight: 900; color: var(--text-main); }
.sr-bill-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.sr-bill-msg { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--accent-green); background: rgba(30, 138, 99, .1); }

.sr-addon-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.sr-ag { margin-bottom: 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 6px 12px; }
.sr-ag-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.sr-ag-head small { font-size: 10.5px; color: var(--text-muted); font-weight: 700; }
.sr-choice { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 0; border: none; border-top: 1px solid var(--border-color); background: none; color: var(--text-main); cursor: pointer; text-align: left; }
.sr-choice:disabled { opacity: .4; }
.sr-choice-name { flex: 1; font-size: 13px; font-weight: 600; }
.sr-choice-price { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.sr-tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 10px; color: transparent; }
.sr-tick.sq { border-radius: 6px; }
.sr-choice.on .sr-tick { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.sr-addon-go { position: sticky; bottom: 0; width: 100%; display: flex; justify-content: space-between; padding: 14px 18px; border: none; border-radius: 14px; background: var(--accent-green); color: #fff; font-weight: 900; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px rgba(30, 138, 99, .35); }
.sr-addon-go:disabled { background: var(--border-strong); color: var(--text-muted); box-shadow: none; }

/* ---- Search tab: home, polish ---- */
@keyframes srFade { from { opacity: 0; transform: translateY(10px); } }

.sr-place-search { margin-bottom: 10px; }
#srPlaceResults:empty { display: none; }

.sr-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 20px 18px; margin-bottom: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #0E5A4A 0%, #0E5A4A 55%, #C94E2E 100%); box-shadow: 0 12px 28px rgba(14, 90, 74, .35); }
.sr-hero::after { content: ""; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sr-hero-text { display: flex; flex-direction: column; gap: 4px; z-index: 1; max-width: 70%; }
.sr-hero-text b { font-family: var(--font-heading); font-size: 24px; font-weight: 900; }
.sr-hero-text span { font-size: 12.5px; font-weight: 600; opacity: .92; }
.sr-hero-emoji { font-size: 46px; z-index: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }

.sr-sec-title { font-family: var(--font-heading); font-size: 15px; font-weight: 800; margin: 4px 2px 12px; color: var(--text-main); }
.sr-crave-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; margin-bottom: 20px; }
.sr-crave { display: flex; flex-direction: column; align-items: center; gap: 6px; border: none; background: none; cursor: pointer; color: var(--text-main); font-size: 11.5px; font-weight: 700; animation: srFade .35s both; }
.sr-crave-img { width: 100%; max-width: 70px; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; font-size: 32px; box-shadow: 0 6px 14px rgba(21, 35, 31, .1); transition: transform .15s; }
.sr-crave:active .sr-crave-img { transform: scale(.92); }

.sr-brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.sr-brand { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-card); cursor: pointer; text-align: left; color: var(--text-main); transition: transform .12s, border-color .12s; }
.sr-brand:active { transform: scale(.97); border-color: var(--swiggy-blue); }
.sr-brand-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 900; font-size: 18px; flex-shrink: 0; }
.sr-brand-name { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.sr-tip { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--bg-active); }
.sr-tip i { color: var(--swiggy-blue); }

/* results */
.sr-count { font-size: 12px; letter-spacing: .3px; }
.sr-rest { padding: 12px; gap: 14px; border-radius: 20px; box-shadow: 0 4px 14px rgba(21, 35, 31, .05); animation: srFade .35s both; }
.sr-rest-img { width: 76px; height: 76px; border-radius: 18px; font-size: 22px; box-shadow: 0 4px 10px rgba(21, 35, 31, .12); }
.sr-rest-name { font-size: 15.5px; }
.sr-rest-meta { margin-top: 2px; }
.sr-rest-go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); color: var(--swiggy-blue); }

/* menu header */
.sr-mh { padding: 0; overflow: hidden; border-radius: 22px; box-shadow: 0 8px 22px rgba(21, 35, 31, .08); }
.sr-mh-cover { position: relative; height: 120px; background: var(--swiggy-gradient); }
.sr-mh-cover img { width: 100%; height: 100%; object-fit: cover; }
.sr-mh-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.55), rgba(2,6,23,0) 60%); }
.sr-mh-badge { position: absolute; z-index: 1; left: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--swiggy-blue); }
.sr-mh > :not(.sr-mh-cover) { margin-left: 16px; margin-right: 16px; }
.sr-mh-name { margin-top: 14px; font-size: 20px; }
.sr-mh-area { margin-bottom: 14px; }
.sr-mh > .sr-warn { margin-bottom: 14px; }

/* menu list */
.sr-menu-top { position: sticky; top: 0; z-index: 20; margin: -4px -4px 10px; padding: 8px 4px; background: var(--bg-glass); backdrop-filter: blur(10px); }
.sr-cat { border-radius: 20px; box-shadow: 0 3px 12px rgba(21, 35, 31, .04); }
.sr-cat-head { padding: 15px 16px; font-size: 15px; }
.sr-cat-body { padding: 0 16px 4px; }
.sr-dish { padding: 16px 0; }
.sr-dish-name { font-size: 14.5px; font-weight: 800; }
.sr-dish-img { border-radius: 16px; box-shadow: 0 4px 12px rgba(21, 35, 31, .12); }
.sr-sheet { border-radius: 28px 28px 0 0; }

/* restaurant open / closed status */
.sr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; font-size: 12px; }
.sr-status b { font-weight: 800; }
.sr-status span { font-weight: 600; opacity: .85; }
.sr-status.open { color: #147A63; background: rgba(30, 138, 99, .12); }
.sr-status.soon { color: #A66B18; background: rgba(245,158,11,.14); }
.sr-status.closed { color: var(--accent-red); background: rgba(255,77,77,.12); }
.sr-add.off { color: var(--text-muted); box-shadow: none; background: var(--bg-input); cursor: not-allowed; font-size: 11px; }
.sr-mh:has(.sr-status.closed) .sr-mh-cover img { filter: grayscale(1); }

/* ==========================================================================
   Search tab — v3 polish (layout fit + icons + motion)
   ========================================================================== */
.sr-rest-body, .sr-loc-text, .sr-addr-body, .sr-cart-line-info, .sr-dish-info, .sr-brand-name { min-width: 0; }
#view-search { overflow-x: hidden; }
#view-search .sr-rest-name, #view-search .sr-mh-name, #view-search .sr-sec-title, .sr-sheet-title, .sr-cart-rest { font-family: var(--font-heading); letter-spacing: -.2px; }

/* keep floating UI inside the 480px app column */
.sr-cart-bar { left: 0; right: 0; margin: 0 auto; width: calc(100% - 24px); max-width: 456px; box-sizing: border-box; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: linear-gradient(135deg, #147A63, #1E8A63 60%, #63C3A0); z-index: 190; }
.sr-cart-bar-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 16px; flex-shrink: 0; }
.sr-cart-bar-left { flex: 1; }
.sr-cart-bar-count { max-width: 100%; }
.sr-cart-bar-go { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: 12.5px; white-space: nowrap; }
.sr-cart-bar-go i { transition: transform .2s; }
.sr-cart-bar:active .sr-cart-bar-go i { transform: translateX(3px); }
.sr-sheet-backdrop { z-index: 4500; }
.sr-sheet { max-width: 480px; box-sizing: border-box; overflow-x: hidden; }
.sr-sheet-title { display: flex; align-items: center; gap: 10px; }
.sr-sheet-title-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--swiggy-gradient); color: #fff; font-size: 14px; }

/* shared bits */
.sr-live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); margin-right: 7px; flex-shrink: 0; }
.sr-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: srPing 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes srPing { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.sr-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--swiggy-blue); margin: 0 7px; vertical-align: middle; opacity: .8; }
.sr-muted { color: var(--text-muted); font-weight: 600; }
.sr-sec-bar { display: inline-block; width: 4px; height: 16px; border-radius: 4px; background: var(--swiggy-gradient); margin-right: 9px; vertical-align: -2px; flex-shrink: 0; }
.sr-sec-title { display: flex; align-items: center; font-size: 16px; }

/* search input */
.sr-search { transition: border-color .2s, box-shadow .2s, background .2s; }
.sr-search:focus-within { border-color: var(--swiggy-blue); background: var(--bg-card); box-shadow: 0 0 0 4px var(--swiggy-glow); }
.sr-search:focus-within .fa-magnifying-glass { color: var(--swiggy-blue) !important; }
.sr-loc-bar { transition: border-color .2s, transform .12s; }
.sr-loc-bar:active { transform: scale(.99); border-color: var(--swiggy-blue); }
.sr-loc-ico { animation: srBob 2.6s ease-in-out infinite; }
@keyframes srBob { 50% { transform: translateY(-2px); } }

/* hero */
.sr-hero { padding: 18px 16px; min-height: 128px; background: linear-gradient(135deg, #0A4236 0%, #0E5A4A 45%, #0E5A4A 100%); }
.sr-hero::before { content: ""; position: absolute; left: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.sr-hero-text { max-width: 62%; }
.sr-hero-kicker { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-size: 10px !important; font-weight: 800 !important; letter-spacing: .5px; text-transform: uppercase; }
.sr-hero-kicker .sr-live-dot { background: #CDEBDD; width: 6px; height: 6px; }
.sr-hero-text b { font-size: 21px; line-height: 1.15; }
.sr-hero-art { position: relative; width: 96px; height: 96px; flex-shrink: 0; z-index: 1; }
.sr-hero-core { position: absolute; inset: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0A4236; font-size: 22px; box-shadow: 0 8px 20px rgba(2,132,199,.4); }
.sr-orbit { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,.15); animation: srFloat 3s ease-in-out infinite; }
.sr-orbit.o1 { top: 0; left: 4px; color: #C44545; }
.sr-orbit.o2 { top: 8px; right: 0; color: #C94E2E; animation-delay: .6s; }
.sr-orbit.o3 { bottom: 0; left: 30px; color: #7A4A12; animation-delay: 1.2s; }
@keyframes srFloat { 50% { transform: translateY(-6px) rotate(-8deg); } }

/* cravings */
.sr-crave-row { gap: 14px 8px; }
.sr-crave-img { --c: var(--swiggy-blue); max-width: 64px; border-radius: 20px; font-size: 24px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 18%, transparent); }
.sr-crave:hover .sr-crave-img i, .sr-crave:active .sr-crave-img i { animation: srWiggle .45s; }
@keyframes srWiggle { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(10deg) scale(1.1); } }
.sr-crave-name { font-size: 11.5px; font-weight: 700; color: var(--text-main); }

/* brands */
.sr-brand { animation: srFade .35s both; padding: 10px 10px 10px 8px; }
.sr-brand-logo { font-size: 15px; box-shadow: 0 4px 10px rgba(21, 35, 31, .15); }
.sr-brand-name { flex: 1; display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr-brand-name small { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.sr-brand-go { font-size: 10px; color: var(--text-muted); transition: transform .2s, color .2s; }
.sr-brand:hover .sr-brand-go { transform: translateX(3px); color: var(--swiggy-blue); }
.sr-tip-ico { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-card); color: var(--swiggy-blue); flex-shrink: 0; }
.sr-tip i { color: inherit; }

/* results */
.sr-count { justify-content: flex-start; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; }
.sr-rest:hover { border-color: color-mix(in srgb, var(--swiggy-blue) 50%, var(--border-color)); }
.sr-rest-body { gap: 4px; }
.sr-rest-name { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rest-name mark { color: var(--swiggy-blue); background: linear-gradient(transparent 62%, var(--swiggy-glow) 62%); }
.sr-rest-area { font-size: 11.5px; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rest-area i { color: #C44545; margin-right: 5px; font-size: 10px; }
.sr-rating { background: linear-gradient(135deg, #1E8A63, #2A9E75); padding: 2px 7px; border-radius: 7px; box-shadow: 0 2px 6px rgba(22,163,74,.3); }
.sr-rest-go { flex-shrink: 0; font-size: 11px; transition: transform .2s, background .2s, color .2s; }
.sr-rest:hover .sr-rest-go { background: var(--swiggy-blue); color: #fff; transform: translateX(2px); }

/* menu header */
.sr-mh-cover { height: 132px; }
.sr-mh-rating { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 10px; background: #1E8A63; color: #fff; font-weight: 900; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.sr-mh-rating small { font-weight: 600; font-size: 10.5px; opacity: .9; margin-left: 2px; }
.sr-mh-rating i { font-size: 10px; }
.sr-mh-cuisine { display: flex; flex-wrap: wrap; align-items: center; font-size: 12.5px; font-weight: 600; color: #C94E2E; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sr-chip { --c: var(--swiggy-blue); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.sr-chip.blue { --c: #0E5A4A; } .sr-chip.purple { --c: #0E5A4A; } .sr-chip.amber { --c: #A66B18; }
.sr-mh-area { margin-top: 10px; }
.sr-mh-area i { color: #C44545; }
.sr-status { position: relative; }
.sr-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.sr-status.open .sr-status-dot::after, .sr-status.soon .sr-status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: srPing 1.6s infinite; }
.sr-status > i { display: none; }

/* categories + dishes */
.sr-cat-title { display: flex; align-items: center; }
.sr-cat-title small { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--bg-input); font-size: 11px; }
.sr-cat-head i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); }
.sr-cat.open .sr-cat-body { animation: srFade .25s both; }
.sr-dish-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 800; }
.sr-dish-price s { margin-left: 0; }
.sr-off { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #0A4236; background: var(--swiggy-glow); }
.sr-off i { font-size: 9px; }
.sr-custom-note i { color: var(--swiggy-blue); margin-right: 2px; }
.sr-add { transition: transform .12s, background .2s, color .2s; }
.sr-add:hover:not(:disabled) { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }
.sr-step { background: linear-gradient(135deg, #147A63, #1E8A63); }
.sr-dish-act.bump > * { animation: srBump .28s ease-out; }
@keyframes srBump { 40% { transform: scale(1.12); } }

/* cart sheet */
.sr-cart-head { align-items: center; gap: 12px; }
.sr-cart-head-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--swiggy-glow); color: var(--swiggy-blue); font-size: 18px; flex-shrink: 0; }
.sr-cart-head-text { flex: 1; overflow: hidden; }
.sr-cart-rest { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-cart-loc { display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.sr-cart-loc i { color: #C44545; }
.sr-link-danger { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,77,77,.1); font-size: 13px; flex-shrink: 0; }
.sr-cart-line { align-items: flex-start; }
.sr-cart-line .sr-diet { margin-top: 2px; }
.sr-cart-line-price { min-width: 0; text-align: left; margin-top: 4px; color: var(--text-main); }
.sr-cart-line .sr-step.sm { flex-shrink: 0; }
.sr-bill-msg { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; border: 1px dashed rgba(30, 138, 99, .4); }
.sr-bill-title { display: flex; align-items: center; gap: 8px; }
.sr-bill-title > i { color: var(--swiggy-blue); }
.sr-sync { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--swiggy-blue); font-weight: 700; }
.sr-bill-row span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.sr-bill-row span:first-child i { width: 14px; text-align: center; font-size: 11px; color: var(--text-muted); opacity: .8; }
.sr-bill-row.disc span:first-child i { color: var(--accent-green); }
.sr-bill-hint { display: flex; align-items: center; }

/* location sheet rows */
.sr-addr-row { transition: border-color .2s, transform .12s; animation: srFade .3s both; }
.sr-addr-row:active { transform: scale(.985); }
.sr-addr-body b, .sr-addr-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-gps-ico i { animation: srSpinSlow 4s linear infinite; }
@keyframes srSpinSlow { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    #view-search *, .sr-sheet, .sr-cart-bar { animation: none !important; transition: none !important; }
}

/* place search rows */
.sr-addr-row.loading { opacity: .6; pointer-events: none; }
.sr-addr-row.loading .sr-addr-ico i { animation: srSpinSlow 1s linear infinite; }
.sr-addr-body b mark { background: none; color: var(--swiggy-blue); }

/* ==========================================================================
   Search tab — v4: real home feed, address-tab icons, clear buttons
   ========================================================================== */
.sr-clear-x { width: 22px; height: 22px; flex-shrink: 0; border: none; border-radius: 50%; display: grid; place-items: center; background: var(--border-strong); color: var(--text-muted); font-size: 11px; cursor: pointer; transition: background .15s, color .15s, transform .12s; animation: srPop .18s ease-out; }
.sr-clear-x:hover { background: var(--accent-red); color: #fff; }
.sr-clear-x:active { transform: scale(.88); }
@keyframes srPop { from { transform: scale(.4); opacity: 0; } }

/* address-tab look in the location sheet */
.sr-sheet-title-ico svg { display: block; }
.sr-addr-ico.pin { background: var(--swiggy-glow); color: var(--swiggy-blue); }
.sr-addr-ico.pin svg { display: block; }
.sr-saved { align-items: flex-start; }
.sr-saved .sr-addr-body { gap: 3px; }
.sr-saved-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sr-saved-name { font-size: 12.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-saved-name em { font-style: normal; font-weight: 500; color: var(--text-muted); }
.sr-saved small { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }

/* skeleton shapes */
.sr-skel.banner { height: 150px; border-radius: 20px; margin-bottom: 18px; }
.sr-skel.round { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; }

/* offer banners (real Swiggy merch images) */
.sr-banner-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -2px 18px; padding: 2px; }
.sr-banner { flex: 0 0 78%; scroll-snap-align: start; border: none; padding: 0; border-radius: 20px; overflow: hidden; background: var(--bg-input); cursor: pointer; box-shadow: 0 6px 18px rgba(21, 35, 31, .1); animation: srFade .35s both; transition: transform .15s; }
.sr-banner:active { transform: scale(.98); }
.sr-banner img { display: block; width: 100%; height: auto; }

/* cuisines — real images, two scrolling rows */
.sr-cuisine-row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 76px; gap: 6px 10px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 2px; }
.sr-cuisine-row:has(.sr-skel) { grid-template-rows: auto; }
.sr-cuisine { display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; cursor: pointer; color: var(--text-main); font-size: 11.5px; font-weight: 700; animation: srFade .35s both; }
.sr-cuisine img { width: 72px; height: 86px; object-fit: contain; transition: transform .2s; }
.sr-cuisine:active img { transform: scale(.9); }
.sr-cuisine span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; }

.sr-sec-count { margin-left: auto; display: inline-flex; align-items: center; font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--accent-green); }

/* restaurant cards (Swiggy listing style) */
.sr-rcard { width: 100%; display: flex; gap: 14px; padding: 10px 0 18px; border: none; background: none; text-align: left; cursor: pointer; color: var(--text-main); animation: srFade .35s both; transition: transform .12s; }
.sr-rcard:active { transform: scale(.985); }
.sr-rcard-img { position: relative; width: 120px; height: 140px; flex-shrink: 0; border-radius: 18px; overflow: hidden; background: var(--bg-input); display: grid; place-items: center; color: var(--text-muted); font-size: 22px; box-shadow: 0 6px 16px rgba(21, 35, 31, .14); }
.sr-rcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-rcard-img::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
.sr-rcard-offer { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 7px; font-family: var(--font-heading); font-size: 13.5px; font-weight: 900; line-height: 1.05; color: #fff; text-transform: uppercase; letter-spacing: -.2px; }
.sr-rcard-closed { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(21, 35, 31, .8); }
.sr-rcard.closed .sr-rcard-img img { filter: grayscale(1); }
.sr-rcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.sr-rcard-name { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.2px; }
.sr-rcard-name .sr-diet { width: 13px; height: 13px; }
.sr-rcard-name .sr-diet i { width: 5px; height: 5px; }
.sr-rcard-meta { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.sr-rcard-meta b { font-weight: 800; }
.sr-star { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #1E8A63; color: #fff; font-size: 8.5px; }
.sr-rcard-sub { display: flex; align-items: center; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rcard-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 3px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.sr-rcard-status.open { color: #147A63; background: rgba(30, 138, 99, .12); }
.sr-rcard-status.soon { color: #A66B18; background: rgba(245,158,11,.14); }
.sr-rcard-status.closed { color: var(--accent-red); background: rgba(255,77,77,.12); }
.sr-rcard-status .sr-status-dot { width: 6px; height: 6px; }
.sr-rcard-status.open .sr-status-dot::after, .sr-rcard-status.soon .sr-status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: srPing 1.6s infinite; }

/* search idle state (blinkit_bot style) */
.full-page-empty.compact { min-height: 0; padding: 36px 20px 18px; }
.sr-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 12px 20px; }
.sr-quick-chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .15s ease; }
.sr-quick-chip:hover { border-color: var(--swiggy-blue); color: var(--swiggy-blue); }
.sr-quick-chip:active { transform: scale(.94); }

/* ==========================================================================
   Search tab — v5: borderless sheet icons, result cards, menu header
   ========================================================================== */
/* icons in the location sheet: plain glyphs, no tile/border */
.sr-sheet-title-ico, .sr-gps-ico, .sr-addr-ico, .sr-addr-ico.pin { width: 26px; height: auto; background: none !important; border: none; box-shadow: none; border-radius: 0; color: var(--swiggy-blue); }
.sr-sheet-title-ico svg { width: 22px; height: 22px; }
.sr-gps-ico { font-size: 18px; }
.sr-gps-ico i { animation: none; }
.sr-gps-row { border: none; background: var(--bg-active); }
.sr-addr-row { border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; background: none; margin-bottom: 0; padding: 13px 4px; }
.sr-addr-row:last-child { border-bottom: none; }
.sr-addr-row.on { background: var(--bg-active); border-radius: 12px; }
#srLocList, #srPlaceResults { background: var(--bg-card); border-radius: var(--radius-md); padding: 0 10px; }
#srLocList:empty, #srPlaceResults:empty { display: none; }

/* search tab without the web header */
#view-search { padding-top: 6px; }

/* result list uses the listing cards */
#srResults .sr-rcard { border-bottom: 1px solid var(--border-color); padding: 14px 0; }
#srResults .sr-rcard:last-child { border-bottom: none; }
.sr-rcard-img { width: 108px; height: 124px; }
.sr-rcard-name mark { background: none; color: var(--swiggy-blue); }
.sr-rcard-status em, .sr-mh2-status em { font-style: normal; font-weight: 600; opacity: .8; margin-left: 4px; }
.sr-rcard-status em::before, .sr-mh2-status em::before { content: "· "; }

/* menu header */
.sr-mh2 { margin: 0 -2px 14px; }
.sr-mh2-cover { position: relative; height: 180px; border-radius: 22px; overflow: hidden; background: var(--swiggy-gradient); display: grid; place-items: center; color: #fff; font-size: 34px; box-shadow: 0 10px 24px rgba(21, 35, 31, .15); }
.sr-mh2-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-mh2-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.sr-mh2.closed .sr-mh2-cover img { filter: grayscale(1) brightness(.85); }
.sr-mh2-closed { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 11px; border-radius: 10px; background: rgba(21, 35, 31, .85); color: #fff; font-size: 11.5px; font-weight: 800; }
.sr-mh2-card { position: relative; z-index: 2; margin: -42px 12px 0; padding: 16px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 12px 28px rgba(21, 35, 31, .12); animation: srFade .3s both; }
.sr-mh2-name { font-family: var(--font-heading); font-size: 21px; font-weight: 900; letter-spacing: -.3px; line-height: 1.15; }
.sr-mh2-rating { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13.5px; }
.sr-mh2-rating b { font-weight: 800; }
.sr-mh2-cuisine { margin-top: 6px; font-size: 13px; font-weight: 700; color: #C94E2E; }
.sr-mh2-timeline { display: flex; gap: 10px; margin-top: 12px; }
.sr-tl-dots { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.sr-tl-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.sr-tl-dots i { width: 1.5px; flex: 1; min-height: 16px; background: var(--border-strong); }
.sr-tl-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.sr-tl-rows div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.sr-tl-rows b { font-weight: 800; flex-shrink: 0; }
.sr-tl-rows span { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-mh2-status { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 800; }
.sr-mh2-status.open { color: #147A63; background: rgba(30, 138, 99, .12); }
.sr-mh2-status.soon { color: #A66B18; background: rgba(245,158,11,.14); }
.sr-mh2-status.closed { color: var(--accent-red); background: rgba(255,77,77,.12); }
.sr-mh2-status .sr-status-dot { width: 8px; height: 8px; }
.sr-mh2-status.open .sr-status-dot::after, .sr-mh2-status.soon .sr-status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: srPing 1.6s infinite; }

/* ==========================================================================
   Search tab — v6: header back, loc bar hides, idle bowl, blinkit loader
   ========================================================================== */
#view-search { padding-top: 0; }
.sr-loc-bar { max-height: 80px; transition: max-height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease; }
.sr-loc-bar.sr-hide { max-height: 0; opacity: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; pointer-events: none; }

/* blinkit_bot inline loader, in Swiggy blue */
.inline-loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 0; font-size: 12.5px; font-weight: 600; }
.inline-loader .ring { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 3px dotted var(--swiggy-blue); animation: srSpinSlow 1s linear infinite; }
.inline-loader .il-text { background: linear-gradient(90deg, var(--text-muted) 30%, var(--text-main) 50%, var(--text-muted) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: srShine 1.6s linear infinite; }
@keyframes srShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* idle state */
.sr-idle { text-align: center; padding: 26px 8px 10px; }
.sr-bowl { position: relative; width: 74px; margin: 18px auto 10px; animation: srBowl 3s ease-in-out infinite; }
.sr-bowl svg { display: block; filter: drop-shadow(0 8px 12px rgba(14, 90, 74, .35)); }
@keyframes srBowl { 50% { transform: translateY(-4px) rotate(-2deg); } }
.sr-steam { position: absolute; bottom: 38px; width: 4px; height: 18px; border-radius: 4px; background: var(--swiggy-skyblue); opacity: 0; animation: srSteam 2.4s ease-in infinite; }
.sr-steam.s1 { left: 22px; }
.sr-steam.s2 { left: 35px; height: 22px; animation-delay: .6s; }
.sr-steam.s3 { left: 48px; animation-delay: 1.2s; }
@keyframes srSteam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 30% { opacity: .8; } 100% { opacity: 0; transform: translateY(-16px) scaleY(1.1) skewX(-12deg); } }
.sr-idle-title { font-family: var(--font-heading); font-size: 19px; font-weight: 900; letter-spacing: -.3px; color: var(--text-main); }
.sr-idle-line { min-height: 18px; margin: 6px auto 18px; max-width: 280px; font-size: 13px; font-weight: 600; font-style: italic; color: var(--text-muted); transition: opacity .3s ease, transform .3s ease; }
.sr-idle-line.out { opacity: 0; transform: translateY(-6px); }
.sr-quick-chip { display: inline-flex; align-items: center; gap: 7px; animation: srPopIn .35s both; }
.sr-quick-chip i { color: var(--c); font-size: 12px; transition: transform .2s; }
.sr-quick-chip:hover { border-color: var(--c); color: var(--c); }
.sr-quick-chip:hover i { transform: rotate(-12deg) scale(1.15); }
@keyframes srPopIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* ==========================================================================
   Search tab — v7: result cards, idle state
   ========================================================================== */
.sr-count { display: flex; align-items: center; margin: 2px 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.sr-count b { color: var(--text-main); font-weight: 800; }
.sr-count-open { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #147A63; background: rgba(30, 138, 99, .12); }
.sr-count-open .sr-status-dot { width: 6px; height: 6px; }
.sr-count-open .sr-status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: srPing 1.6s infinite; }

/* result card */
.sr-rc { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-card); color: var(--text-main); text-align: left; cursor: pointer; box-shadow: 0 2px 10px rgba(21, 35, 31, .04); animation: srFade .35s both; transition: transform .12s, box-shadow .2s, border-color .2s; }
.sr-rc:hover { border-color: color-mix(in srgb, var(--swiggy-blue) 40%, var(--border-color)); box-shadow: 0 6px 18px rgba(21, 35, 31, .08); }
.sr-rc:active { transform: scale(.985); }
.sr-rc-img { position: relative; width: 84px; height: 84px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--bg-input); display: grid; place-items: center; color: var(--text-muted); font-size: 20px; }
.sr-rc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-rc.closed .sr-rc-img img { filter: grayscale(1); opacity: .75; }
.sr-rc-closed { position: absolute; inset: auto 0 0; padding: 4px 0; text-align: center; font-size: 9.5px; font-weight: 900; letter-spacing: 1px; color: #fff; background: rgba(21, 35, 31, .78); }
.sr-rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sr-rc-name { font-family: var(--font-heading); font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rc-name mark { background: none; color: var(--swiggy-blue); }
.sr-rc.closed .sr-rc-name { color: var(--text-muted); }
.sr-rc-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.sr-rc-rating { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: #1E8A63; color: #fff; font-weight: 800; font-size: 11px; }
.sr-rc-rating i { font-size: 8px; }
.sr-rc.closed .sr-rc-rating { background: var(--text-muted); }
.sr-rc-time { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text-main); }
.sr-rc-time i { color: var(--swiggy-blue); font-size: 10.5px; }
.sr-rc-line { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rc-line i { font-size: 9.5px; color: #C44545; }
.sr-rc-line .sr-dot { margin: 0 4px; }
.sr-rc-state { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; margin-top: 2px; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rc-state i { font-size: 10px; }
.sr-rc-state.open { color: #147A63; }
.sr-rc-state.open .sr-status-dot { width: 6px; height: 6px; }
.sr-rc-state.soon { color: #A66B18; }
.sr-rc-state.closed { color: var(--accent-red); }
.sr-rc-go { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); color: var(--text-muted); font-size: 10px; transition: background .2s, color .2s, transform .2s; }
.sr-rc:hover .sr-rc-go { background: var(--swiggy-blue); color: #fff; transform: translateX(2px); }

/* idle state */
.sr-idle { text-align: center; padding: 30px 8px 12px; }
.sr-idle-art { position: relative; width: 92px; height: 92px; margin: 6px auto 16px; }
.sr-idle-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--swiggy-glow); }
.sr-idle-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--swiggy-blue) 35%, transparent); animation: srSpinSlow 18s linear infinite; }
.sr-idle-store { position: absolute; inset: 0; display: grid; place-items: center; color: var(--swiggy-blue); font-size: 32px; }
.sr-idle-lens { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-card); color: var(--swiggy-blue); font-size: 16px; box-shadow: 0 6px 16px rgba(21, 35, 31, .15); animation: srLens 4s ease-in-out infinite; }
@keyframes srLens {
    0%, 100% { top: -6px; left: 60px; }
    33% { top: 54px; left: 62px; }
    66% { top: 40px; left: -8px; }
}
.sr-idle-title { font-family: var(--font-heading); font-size: 19px; font-weight: 900; letter-spacing: -.3px; color: var(--text-main); }
.sr-idle-sub { margin: 5px auto 20px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.sr-steps { display: flex; align-items: center; justify-content: center; gap: 6px; }
.sr-step-i { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; background: var(--bg-card); border: 1px solid var(--border-color); font-size: 11.5px; font-weight: 700; color: var(--text-main); animation: srPopIn .4s both; }
.sr-step-i i { color: var(--swiggy-blue); font-size: 11px; }
.sr-step-line { width: 14px; height: 0; border-top: 2px dotted var(--border-strong); flex-shrink: 0; }

/* restaurant page: blinkit_bot style back pill + page heading */
.sr-menu-top { position: static; margin: 0 0 10px; padding: 0; background: none; backdrop-filter: none; }
.sr-back-pill { display: inline-flex; align-items: center; gap: 5px; width: auto; height: auto; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); font-family: var(--font-heading); font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .12s, border-color .2s; }
.sr-back-pill i { font-size: 10px; }
.sr-back-pill:hover { border-color: var(--swiggy-blue); }
.sr-back-pill:active { transform: scale(.96); }
.sr-page-head { margin: 4px 2px 10px; }
.sr-page-title { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--text-main); }
.sr-page-sub { margin-top: 2px; font-size: 10.5px; color: var(--text-muted); }

/* idle: plain empty state + chips (overrides the earlier animated version) */
.sr-quick-label { text-align: center; margin: 4px 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.sr-quick-chip { display: inline-flex; align-items: center; gap: 0; animation: none; font-family: var(--font-heading); font-weight: 700; }
.sr-quick-chip:hover { border-color: var(--swiggy-blue); color: var(--swiggy-blue); }

/* ==========================================================================
   Restaurant page — v8: top bar, category headings, dish cards
   ========================================================================== */
.sr-menu-top { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.sr-back { width: 36px; height: 36px; flex-shrink: 0; border: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-card); color: var(--text-main); font-size: 14px; cursor: pointer; box-shadow: 0 2px 10px rgba(21, 35, 31, .08); transition: transform .12s, color .2s; }
.sr-back:hover { color: var(--swiggy-blue); }
.sr-back:active { transform: scale(.9); }
.sr-menu-top-title { flex: 1; min-width: 0; font-family: var(--font-heading); font-size: 15px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* category */
.sr-mc { margin-bottom: 6px; }
.sr-mc-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 14px 2px 10px; border: none; background: none; color: var(--text-main); cursor: pointer; text-align: left; }
.sr-mc-name { font-family: var(--font-heading); font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.sr-mc-count { padding: 1px 8px; border-radius: 99px; background: var(--bg-input); color: var(--text-muted); font-size: 11px; font-weight: 700; }
.sr-mc-head i { margin-left: auto; font-size: 11px; color: var(--text-muted); transition: transform .2s; }
.sr-mc.open .sr-mc-head i { transform: rotate(180deg); }
.sr-mc-body { display: none; }
.sr-mc.open .sr-mc-body { display: block; }

/* dish card */
.sr-dc { display: flex; gap: 14px; padding: 14px; margin-bottom: 10px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(21, 35, 31, .04); animation: srFade .3s both; }
.sr-dc.noimg { align-items: center; }
.sr-dc-info { flex: 1; min-width: 0; }
.sr-dc-name { margin-top: 6px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--text-main); }
.sr-dc-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 14px; }
.sr-dc-price b { font-weight: 800; color: var(--text-main); }
.sr-dc-price s { font-size: 12px; color: var(--text-muted); }
.sr-dc-off { font-size: 11px; font-weight: 800; color: #147A63; }
.sr-dc-desc { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-dc-side { width: 116px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.sr-dc.noimg .sr-dc-side { width: auto; }
.sr-dc-img { width: 116px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--bg-input); }
.sr-dc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-dc-act { display: flex; justify-content: center; }
.sr-dc-img + .sr-dc-act { margin-top: -18px; position: relative; z-index: 1; }
.sr-dc-act .sr-add { min-width: 92px; height: 36px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-card); color: #1E8A63; font-size: 14px; font-weight: 900; letter-spacing: .5px; box-shadow: 0 3px 10px rgba(21, 35, 31, .12); }
.sr-dc-act .sr-add:hover:not(:disabled) { background: #1E8A63; color: #fff; border-color: #1E8A63; }
.sr-dc-act .sr-add.off { color: var(--text-muted); font-size: 11px; background: var(--bg-input); box-shadow: none; }
.sr-dc-act .sr-step { min-width: 92px; height: 36px; border-radius: 10px; background: #1E8A63; box-shadow: 0 3px 10px rgba(22,163,74,.35); }
.sr-dc-custom { margin-top: 5px; font-size: 10px; font-weight: 600; color: var(--text-muted); }
.sr-dc-soldout { display: inline-block; padding: 7px 12px; border-radius: 10px; background: var(--bg-input); color: var(--text-muted); font-size: 11px; font-weight: 800; }
.sr-dc-img + .sr-dc-act .sr-dc-soldout { box-shadow: 0 3px 10px rgba(21, 35, 31, .1); background: var(--bg-card); }
.sr-dc.oos .sr-dc-img img { filter: grayscale(1); opacity: .6; }
.sr-dc.oos .sr-dc-name, .sr-dc.oos .sr-dc-price b { color: var(--text-muted); }
.sr-dc-act.bump > * { animation: srBump .28s ease-out; }

/* ==========================================================================
   Restaurant page header — v9: photo background + outlet notification card
   ========================================================================== */
.sr-rh { position: relative; min-height: 210px; margin-bottom: 14px; border-radius: 24px; overflow: hidden; background: var(--swiggy-gradient); box-shadow: 0 12px 28px rgba(21, 35, 31, .18); animation: srFade .35s both; }
.sr-rh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: srKen 14s ease-in-out infinite alternate; }
@keyframes srKen { to { transform: scale(1.12) translate(-2%, -2%); } }
.sr-rh.closed .sr-rh-bg { filter: grayscale(1) brightness(.8); }
.sr-rh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.05) 0%, rgba(2,6,23,.35) 45%, rgba(2,6,23,.85) 100%); }
.sr-rh-content { position: relative; z-index: 1; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 16px; }
.sr-rh-top { display: flex; align-items: flex-end; gap: 10px; }
.sr-rh-name { flex: 1; min-width: 0; font-family: var(--font-heading); font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: -.4px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.sr-rh-rating { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 12px; background: #1E8A63; color: #fff; font-family: var(--font-heading); font-size: 15px; font-weight: 900; box-shadow: 0 6px 16px rgba(22,163,74,.45); animation: srPopIn .45s .15s both; }
.sr-rh-rating i { font-size: 11px; animation: srStar 2.8s ease-in-out infinite; }
.sr-rh-rating small { padding-left: 6px; margin-left: 1px; border-left: 1px solid rgba(255, 255, 255, .45); font-family: var(--font-body); font-size: 11px; font-weight: 700; opacity: .95; }
@keyframes srStar { 0%, 70%, 100% { transform: rotate(0) scale(1); } 80% { transform: rotate(-20deg) scale(1.3); } 90% { transform: rotate(14deg) scale(1.15); } }
.sr-rh.closed .sr-rh-rating { background: rgba(255, 255, 255, .22); box-shadow: none; }

/* outlet notification card */
.sr-rh-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; animation: srNote .5s .25s both; }
@keyframes srNote { from { opacity: 0; transform: translateY(14px); } }
.sr-rh-note-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--swiggy-blue); font-size: 14px; }
.sr-rh-note-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-rh-note-text b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rh-note-text span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; opacity: .9; }
.sr-rh-note-text span i { font-size: 10px; }
.sr-rh-state { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 5px 10px; border-radius: 11px; font-size: 12px; font-weight: 800; }
.sr-rh-state .sr-status-dot { position: absolute; }
.sr-rh-state { position: relative; padding-left: 20px; }
.sr-rh-state .sr-status-dot { left: 9px; top: 11px; width: 6px; height: 6px; }
.sr-rh-state small { font-size: 10px; font-weight: 600; opacity: .9; }
.sr-rh-state.open { background: rgba(30, 138, 99, .9); }
.sr-rh-state.soon { background: rgba(245,158,11,.92); }
.sr-rh-state.closed { background: rgba(239,68,68,.9); }
.sr-rh-state.open .sr-status-dot::after, .sr-rh-state.soon .sr-status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: srPing 1.6s infinite; }

/* restaurant header text — v10: solid, readable info card on the photo */
.sr-rh, .sr-rh-content { min-height: 230px; }
.sr-rh-content { gap: 10px; padding: 14px; }
.sr-rh-shade { background: linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,.25) 40%, rgba(2,6,23,.8) 100%); }
.sr-rh-top { align-items: center; padding: 0 2px; }
.sr-rh-name { font-size: 21px; font-weight: 800; letter-spacing: -.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-rh-rating { padding: 5px 9px; border-radius: 10px; font-size: 14px; }
.sr-rh-info { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--bg-card); color: var(--text-main); box-shadow: 0 8px 20px rgba(2,6,23,.25); animation: srNote .45s .2s both; }
.sr-rh-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sr-rh-cell.grow { flex: 1; }
.sr-rh-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--swiggy-glow); color: var(--swiggy-blue); font-size: 15px; }
.sr-rh-txt { display: flex; flex-direction: column; min-width: 0; }
.sr-rh-txt.right { align-items: flex-end; text-align: right; }
.sr-rh-txt small { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.sr-rh-txt b { margin-top: 1px; font-family: var(--font-heading); font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rh-txt b em { font-style: normal; font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--text-muted); }
.sr-rh-sep { width: 1px; align-self: stretch; margin: 4px 0; background: var(--border-color); }
.sr-rh-closed { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; background: rgba(239,68,68,.92); color: #fff; font-size: 12px; animation: srNote .45s .3s both; }
.sr-rh-closed span { font-weight: 600; opacity: .92; }
.sr-rh-closed span::before { content: "· "; }

/* close (x) on bottom sheets */
.sr-sheet-close { margin-left: auto; width: 32px; height: 32px; flex-shrink: 0; border: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); color: var(--text-muted); font-size: 14px; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.sr-sheet-close:hover { background: var(--accent-red); color: #fff; }
.sr-sheet-close:active { transform: scale(.88); }

/* ==========================================================================
   Cart tab (cart.js)
   ========================================================================== */
#view-cart .card { margin-bottom: 12px; }
.sc-card-title { display: flex; align-items: center; gap: 7px; font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--text-main); margin-bottom: 4px; }
.sc-card-title i { color: var(--swiggy-blue); font-size: 13px; }
.sc-card-sub { font-size: 11px; line-height: 1.4; color: var(--text-muted); margin-bottom: 12px; }
.sc-input { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-main); font-size: 13px; font-weight: 600; outline: none; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.sc-input:focus { border-color: var(--swiggy-blue); box-shadow: 0 0 0 4px var(--swiggy-glow); }
.sc-btn-primary { width: 100%; height: 42px; margin-top: 10px; border: none; border-radius: 12px; background: var(--swiggy-gradient); color: #fff; font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(14, 90, 74, .3); transition: transform .12s; }
.sc-btn-primary:active { transform: scale(.98); }
.sc-link-card { border-color: color-mix(in srgb, var(--swiggy-blue) 45%, var(--border-color)); }

/* preferences */
.sc-prefs { padding: 4px 14px; }
.sc-pref { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; border-bottom: 1px dashed var(--border-color); }
.sc-pref:last-child { border-bottom: none; }
.sc-pref input { display: none; }
.sc-pref-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--swiggy-glow); color: var(--swiggy-blue); font-size: 14px; }
.sc-pref-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-pref-text b { font-size: 13px; font-weight: 800; color: var(--text-main); }
.sc-pref-text small { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sc-switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; border-radius: 23px; background: var(--border-strong); transition: background .2s; }
.sc-switch span { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sc-pref input:checked + .sc-switch { background: var(--swiggy-blue); }
.sc-pref input:checked + .sc-switch span { transform: translateX(17px); }

/* order */
.sc-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 8px; font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: var(--text-main); }
.sc-head span { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.sc-order { padding: 12px 14px 6px; }
.sc-rest { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.sc-rest-img { position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bg-input); display: grid; place-items: center; color: var(--text-muted); }
.sc-rest-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-rest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-rest-text b { font-family: var(--font-heading); font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rest-text small { font-size: 11px; color: var(--text-muted); }
.sc-icon-btn { width: 32px; height: 32px; border: none; border-radius: 10px; background: rgba(255,77,77,.1); color: var(--accent-red); cursor: pointer; font-size: 12px; }
.sc-line { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border-color); }
.sc-line .sr-diet { margin-top: 2px; }
.sc-line-info { flex: 1; min-width: 0; }
.sc-line-name { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--text-main); }
.sc-line-addons { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
.sc-line-price { margin-top: 4px; font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; color: var(--text-main); }
.sc-qty { display: flex; align-items: center; height: 30px; flex-shrink: 0; border-radius: 8px; background: #1E8A63; box-shadow: 0 2px 6px rgba(22,163,74,.25); overflow: hidden; }
.sc-qty button { width: 28px; height: 100%; border: none; background: none; color: #fff; font-size: 10px; cursor: pointer; }
.sc-qty button:active { background: rgba(0,0,0,.15); }
.sc-qty span { min-width: 18px; text-align: center; color: #fff; font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.sc-add-more { width: 100%; padding: 11px 0; border: none; background: none; color: var(--swiggy-blue); font-size: 12px; font-weight: 800; cursor: pointer; text-align: left; }

/* rows: deliver-to, coupon */
.sc-row, .sc-coupon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.sc-row-ico, .sc-coupon-ico, .sc-pay-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--swiggy-glow); color: var(--swiggy-blue); font-size: 15px; }
.sc-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.sc-row-text small { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.sc-row-text b { font-size: 13px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row-text em { font-style: normal; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row-text em .inline-loader { justify-content: flex-start; padding: 2px 0 0; font-size: 11px; }
.sc-row-go { color: var(--text-muted); font-size: 11px; }
.sc-hint { display: flex; align-items: center; gap: 7px; margin: -4px 2px 12px; font-size: 11px; font-weight: 600; color: #A66B18; }
.sc-coupon.applied { border-color: rgba(30, 138, 99, .4); background: color-mix(in srgb, #1E8A63 6%, var(--bg-card)); cursor: default; }
.sc-coupon.applied .sc-coupon-ico { background: rgba(30, 138, 99, .14); color: #147A63; }
.sc-coupon.applied em { color: #147A63; font-weight: 700; }
.sc-link-btn { border: none; background: none; color: var(--swiggy-blue); font-size: 12px; font-weight: 800; cursor: pointer; }

.sc-incognito { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: default; }
.sc-incognito.applied .sc-coupon-ico { background: rgba(30, 138, 99, .14); color: #147A63; }
/* incognito card: normal white card, the incognito figure as the icon */
/* struck-through amount in the order bill (the app's original price) */
.sc-bill-strike { color: #7B8881; font-size: 0.92em; margin-right: 3px; }
/* incognito card: white card, incognito figure as the icon; animated only while incognito is on */
.sc-incog-ico { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(0,0,0,.05); color: #69776F; transition: background .25s, color .25s; }
.sc-incog-ico svg { overflow: visible; }
.sc-incognito.on .sc-incog-ico { background: linear-gradient(135deg, #0E5A4A, #0E5A4A); color: #fff; animation: incPulse 2.4s ease-in-out infinite; }
.sc-incognito.on .sc-incog-ico svg { animation: incBob 2.6s ease-in-out infinite; }
.sc-incognito.on .inc-lens { animation: incGlint 2.6s ease-in-out infinite; }
.sc-incognito .inc-hat { transform-origin: 12px 9.5px; }
.sc-incognito.on .inc-hat { animation: incTip 2.6s ease-in-out infinite; }
.sc-incognito .sc-switch span { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes incPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(10, 66, 54, .45); } 50% { box-shadow: 0 0 0 7px rgba(10, 66, 54, 0); } }
@keyframes incBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes incTip { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
@keyframes incGlint { 0%,100% { fill: rgba(255, 255, 255, 0); } 50% { fill: rgba(255, 255, 255, .55); } }
@media (prefers-reduced-motion: reduce) {
    .sc-incognito.on .sc-incog-ico, .sc-incognito.on .sc-incog-ico svg, .sc-incognito.on .inc-lens, .sc-incognito.on .inc-hat { animation: none; }
}
.sc-switch { flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; border: none; padding: 2px; background: var(--border-color, #CFC7B8); cursor: pointer; display: flex; align-items: center; transition: background .15s; }
.sc-switch.on { background: var(--swiggy-blue); justify-content: flex-end; }
.sc-switch-dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* bill */
.sc-bill { padding: 14px; transition: opacity .2s; }
.sc-bill.loading { opacity: .6; }
.sc-bill-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; color: var(--text-muted); }
.sc-bill-row.save { color: #147A63; font-weight: 700; }
.sc-bill-row.total { margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed var(--border-strong); font-family: var(--font-heading); font-size: 16px; font-weight: 900; color: var(--text-main); }
.sc-bill-wait .inline-loader { justify-content: flex-start; padding: 8px 0 2px; }
.sc-saved { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #147A63; background: rgba(30, 138, 99, .1); }

/* payment */
.sc-pay { padding: 14px; }
.sc-pay .sc-card-title { margin-bottom: 10px; }
.sc-pay-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 8px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); cursor: pointer; transition: border-color .2s, background .2s; }
.sc-pay-opt:last-child { margin-bottom: 0; }
.sc-pay-opt.on { border-color: var(--swiggy-blue); background: var(--bg-active); }
.sc-pay-opt.off { opacity: .55; cursor: not-allowed; }
.sc-pay-opt.off .sc-pay-ico { background: var(--bg-input); color: var(--text-muted); }
.sc-radio { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); }
.sc-pay-opt.on .sc-radio { border: 5px solid var(--swiggy-blue); }
.sc-na { padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; color: var(--accent-red); background: rgba(255,77,77,.1); white-space: nowrap; }

/* floating pay bar (inside the 480px column, above the nav) */
.sc-pay-bar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); max-width: 456px; z-index: 190; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(21, 35, 31, .18); box-sizing: border-box; animation: srRise .25s ease-out; }
.sc-pay-bar-left { display: flex; flex-direction: column; }
.sc-pay-bar-left small { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.sc-pay-bar-left b { font-family: var(--font-heading); font-size: 18px; font-weight: 900; color: var(--text-main); }
.sc-pay-btn { height: 44px; padding: 0 20px; border: none; border-radius: 13px; background: linear-gradient(135deg, #147A63, #1E8A63); color: #fff; font-family: var(--font-heading); font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 16px rgba(30, 138, 99, .35); }
.sc-pay-btn:disabled { background: var(--border-strong); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }

/* coupons sheet */
.sr-sheet-title-ico i { font-size: 18px; }
.sc-cp-manual { display: flex; gap: 8px; margin-bottom: 12px; }
.sc-cp-manual .sc-input { flex: 1; text-transform: uppercase; }
.sc-cp { padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--swiggy-blue); }
.sc-cp.on { border-left-color: #1E8A63; background: color-mix(in srgb, #1E8A63 6%, var(--bg-card)); }
.sc-cp.off { opacity: .6; border-left-color: var(--border-strong); }
.sc-cp-top { display: flex; align-items: center; gap: 8px; }
.sc-cp-code { padding: 3px 9px; border-radius: 8px; border: 1px dashed var(--swiggy-blue); color: var(--swiggy-blue); font-family: var(--font-heading); font-size: 13px; font-weight: 900; letter-spacing: .4px; }
.sc-cp.off .sc-cp-code { border-color: var(--border-strong); color: var(--text-muted); }
.sc-cp-ribbon { font-size: 10.5px; font-weight: 800; color: #A66B18; }
.sc-cp-apply { margin-left: auto; padding: 7px 14px; border: none; border-radius: 9px; background: var(--swiggy-blue); color: #fff; font-size: 11.5px; font-weight: 900; cursor: pointer; }
.sc-cp-apply:disabled { opacity: .5; }
.sc-cp-applied { margin-left: auto; font-size: 11px; font-weight: 800; color: #147A63; }
.sc-cp-sub { margin-top: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.sc-cp-desc { margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.sc-bill-row s { margin-right: 6px; font-weight: 500; color: var(--text-muted); opacity: .8; }
.sc-bill-note { font-style: normal; margin-left: 6px; font-size: 10.5px; color: var(--text-muted); }

/* ==========================================================================
   Cart tab — v2: compact, address on top, one-line incognito
   ========================================================================== */
#view-cart .card { margin-bottom: 10px; }

/* delivery address (blinkit_bot style) */
.sc-addr-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border-color: color-mix(in srgb, var(--swiggy-blue) 40%, var(--border-color)); }
.sc-addr-ico { color: var(--swiggy-blue); font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }
.sc-addr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-addr-text b { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; letter-spacing: .3px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-addr-text small { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-addr-card.warn small { color: #A66B18; font-weight: 600; }
.sc-addr-go { color: var(--text-muted); font-size: 12px; }

/* group link: input + round go button in one row */
.sc-link-card { padding: 12px 14px; }
.sc-link-card .sc-card-title { font-size: 13px; }
.sc-link-card .sc-card-sub { margin-bottom: 8px; font-size: 10.5px; }
.sc-link-row { display: flex; gap: 8px; }
.sc-link-row .sc-input { height: 38px; font-size: 12px; border-radius: 10px; }
.sc-link-btn-go { width: 38px; height: 38px; flex-shrink: 0; border: none; border-radius: 10px; background: var(--swiggy-blue); color: #fff; font-size: 13px; cursor: pointer; }
.sc-link-btn-go:active { transform: scale(.94); }

/* incognito: a single line, no card */
.sc-incog { display: flex; align-items: center; gap: 8px; margin: 2px 4px 14px; cursor: pointer; font-size: 11px; color: var(--text-muted); }
.sc-incog > i { color: var(--text-main); font-size: 12px; }
.sc-incog > span:not(.sc-switch) { flex: 1; min-width: 0; line-height: 1.35; }
.sc-incog b { color: var(--text-main); font-weight: 700; }
.sc-incog input { display: none; }
.sc-incog .sc-switch { width: 32px; height: 18px; }
.sc-incog .sc-switch span { top: 2px; left: 2px; width: 14px; height: 14px; }
.sc-incog input:checked + .sc-switch { background: var(--swiggy-blue); }
.sc-incog input:checked + .sc-switch span { transform: translateX(14px); }

/* order card */
.sc-head { margin: 4px 2px 6px; font-size: 14px; }
.sc-order { padding: 10px 12px 2px; }
.sc-rest { padding-bottom: 8px; }
.sc-rest-img { width: 36px; height: 36px; border-radius: 10px; }
.sc-rest-text b { font-size: 13px; }
.sc-icon-btn { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.sc-line { align-items: center; gap: 8px; padding: 10px 0; }
.sc-line .sr-diet { width: 12px; height: 12px; margin-top: 0; }
.sc-line .sr-diet i { width: 5px; height: 5px; }
.sc-line-name { font-size: 12px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-line-addons { font-size: 10px; }
.sc-line-price { min-width: 54px; margin-top: 0; text-align: right; font-size: 12.5px; }
.sc-qty { height: 26px; border-radius: 7px; }
.sc-qty button { width: 24px; font-size: 9px; }
.sc-qty span { font-size: 12px; min-width: 14px; }
.sc-add-more { padding: 9px 0; font-size: 11.5px; }

/* error */
.sc-error { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,77,77,.08); border: 1px solid rgba(255,77,77,.25); color: var(--accent-red); font-size: 12px; font-weight: 700; }
.sc-error > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-error small { font-weight: 500; color: var(--text-muted); font-size: 10.5px; margin-top: 2px; }
.sc-error button { flex-shrink: 0; padding: 6px 12px; border: none; border-radius: 8px; background: var(--accent-red); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.sc-bill-fail { padding: 6px 0 2px; font-size: 11px; color: var(--text-muted); }

/* coupon + bill + payment: tighter */
.sc-coupon { padding: 10px 12px; gap: 10px; }
.sc-coupon-ico, .sc-pay-ico { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.sc-row-text b { font-size: 12.5px; }
.sc-row-text em { font-size: 10.5px; }
.sc-bill { padding: 12px 14px; }
.sc-card-title { font-size: 13px; }
.sc-bill-row { padding: 4px 0; font-size: 12px; }
.sc-bill-row.total { font-size: 15px; }
.sc-saved { margin-top: 8px; padding: 7px 10px; font-size: 11px; }
.sc-pay { padding: 12px 14px; }
.sc-pay .sc-card-title { margin-bottom: 8px; }
.sc-pay-opt { padding: 9px 10px; gap: 10px; border-radius: 12px; margin-bottom: 6px; }
.sc-radio { width: 16px; height: 16px; }
.sc-pay-bar { padding: 8px 8px 8px 14px; border-radius: 16px; }
.sc-pay-bar-left b { font-size: 16px; }
.sc-pay-btn { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 13px; }

/* incognito toggle: icon + mini switch beside the group-cart title */
.sc-link-card .sc-card-title { align-items: center; }
.sc-incog-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 8px; border: 1px solid var(--border-color); border-radius: 99px; background: var(--bg-input); color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.sc-incog-btn i { font-size: 12px; color: inherit !important; }
.sc-incog-knob { position: relative; width: 26px; height: 15px; border-radius: 15px; background: var(--border-strong); transition: background .2s; }
.sc-incog-knob span { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.sc-incog-btn.on { color: #fff; background: var(--swiggy-blue); border-color: var(--swiggy-blue); box-shadow: 0 0 0 3px var(--swiggy-glow), 0 0 14px rgba(14, 90, 74, .55); animation: scGlow 2.4s ease-in-out infinite; }
.sc-incog-btn.on .sc-incog-knob { background: rgba(255, 255, 255, .35); }
.sc-incog-btn.on .sc-incog-knob span { transform: translateX(11px); }
.sc-incog-btn:active { transform: scale(.94); }
@keyframes scGlow { 50% { box-shadow: 0 0 0 4px var(--swiggy-glow), 0 0 20px rgba(14, 90, 74, .75); } }

/* payment list — blinkit_bot layout */
.sc-po-list { display: flex; flex-direction: column; gap: 8px; }
.sc-po { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-input); border: 1px solid var(--border-color); cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.sc-po:active { transform: scale(.985); }
.sc-po.active { border-color: var(--accent-green); background-color: rgba(30, 138, 99, .06); }
.sc-po.disabled { opacity: .5; cursor: not-allowed; }
.sc-po-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--swiggy-glow); color: var(--swiggy-blue); }
.sc-po-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-po-title { font-size: 13px; font-weight: 700; color: var(--text-main); }
.sc-po-sub { font-size: 11px; color: var(--text-muted); }
.sc-po-sub.bad { color: var(--accent-red); }
.sc-po-radio { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.sc-po-radio span { display: none; font-size: 10px; font-weight: bold; color: #fff; }
.sc-po.active .sc-po-radio { background: var(--accent-green); border-color: var(--accent-green); }
.sc-po.active .sc-po-radio span { display: block; }
.sc-po-radio i { display: none; font-size: 9px; color: #fff; }
.sc-po.active .sc-po-radio i { display: block; }
.radio-checkmark i { font-size: 9px; }

/* cart: section headers with refresh, blinkit_bot "Updating bill" overlay, locks */
#view-cart .card { animation: none; }
.sc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sc-sec-head .sc-card-title { margin-bottom: 0; }
.sc-refresh { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: none; background: none; color: var(--text-muted); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: color .2s, opacity .2s; }
.sc-refresh:hover { color: var(--swiggy-blue); }
.sc-refresh.icon { font-size: 12px; }
.sc-refresh.locked { opacity: .4; pointer-events: none; }
.sc-updating { position: relative; }
.sc-updating-body { opacity: .3; pointer-events: none; transition: opacity .2s ease; }
.sc-updating-chip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 6px 18px rgba(21, 35, 31, .18); font-size: 11.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; animation: srPopIn .25s ease both; }
.ring.sm { display: inline-block; width: 13px; height: 13px; border: 1.5px dotted var(--swiggy-blue); border-radius: 50%; animation: srSpinSlow 1s linear infinite; }
.sc-pay-btn .fa-spinner { font-size: 12px; }


/* coupon sheet: blinkit_bot-style code box, thin coupon rows */
.sc-cp-manual { display: flex; gap: 8px; margin-bottom: 14px; }
.sc-cp-manual input { flex: 1; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-main); font-size: 11.5px; font-weight: 500; outline: none; box-sizing: border-box; transition: border-color .2s; }
.sc-cp-manual input:focus { border-color: var(--swiggy-blue); }
.sc-cp-go { width: 38px; height: 38px; flex-shrink: 0; border: none; border-radius: 10px; background: var(--swiggy-blue); color: #fff; font-size: 13px; cursor: pointer; transition: transform .12s; }
.sc-cp-go:active { transform: scale(.92); }
.sc-cpr-head { display: flex; align-items: center; gap: 6px; margin: 10px 2px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }
.sc-cpr-head span { padding: 0 6px; border-radius: 8px; background: var(--bg-input); font-size: 10px; }
.sc-cpr { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-color); }
.sc-cpr.on { border-color: rgba(30, 138, 99, .5); background: color-mix(in srgb, #1E8A63 6%, var(--bg-card)); }
.sc-cpr.off { opacity: .55; }
.sc-cpr-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--swiggy-glow); color: var(--swiggy-blue); font-size: 12px; }
.sc-cpr.on .sc-cpr-ico { background: rgba(30, 138, 99, .14); color: #147A63; }
.sc-cpr.off .sc-cpr-ico { background: var(--bg-input); color: var(--text-muted); }
.sc-cpr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-cpr-top { display: flex; align-items: center; gap: 6px; }
.sc-cpr-top b { font-family: var(--font-heading); font-size: 12.5px; font-weight: 800; letter-spacing: .3px; color: var(--text-main); }
.sc-cpr-top em { font-style: normal; font-size: 9.5px; font-weight: 800; color: #A66B18; }
.sc-cpr-text small { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-cpr-apply { flex-shrink: 0; padding: 5px 11px; border: 1px solid var(--swiggy-blue); border-radius: 8px; background: none; color: var(--swiggy-blue); font-size: 11px; font-weight: 800; cursor: pointer; }
.sc-cpr-apply:hover:not(:disabled) { background: var(--swiggy-blue); color: #fff; }
.sc-cpr-apply:disabled { opacity: .4; }
.sc-cpr-done { color: #147A63; font-size: 16px; }
.sc-cpr-lock { color: var(--text-muted); font-size: 11px; }
.sc-cart-count { margin-left: 4px; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--text-muted); }
.sc-order .sc-sec-head { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.sc-order .sc-rest { padding-top: 2px; }


/* cart: saved-address sheet (blinkit_bot style rows) + out of stock */
.sc-ad { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-color); cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.sc-ad:active { transform: scale(.985); }
.sc-ad.active { border-color: var(--accent-green); background: rgba(30, 138, 99, .06); }
.sc-ad.active .sc-po-radio { background: var(--accent-green); border-color: var(--accent-green); }
.sc-ad.active .sc-po-radio i { display: block; }
.sc-ad-info { flex: 1; min-width: 0; }
.sc-ad-name { margin-top: 5px; font-size: 12.5px; font-weight: 700; color: var(--text-main); text-transform: capitalize; }
.sc-ad-name em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--text-muted); text-transform: none; }
.sc-ad-text { margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.sc-addr-card.pending { opacity: .8; pointer-events: none; }
.sc-addr-card.pending b i { color: var(--swiggy-blue); margin-right: 4px; }
.sc-line.oos .sc-line-name, .sc-line.oos .sc-line-price { color: var(--text-muted); }
.sc-oos { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255,77,77,.12); color: var(--accent-red); font-size: 9.5px; font-weight: 800; vertical-align: 1px; }
.sc-head { align-items: center; }
.sc-head-right { display: inline-flex; align-items: center; gap: 4px; }
.sc-order { padding-top: 12px; }
.sc-order-title { margin-bottom: 10px; font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--text-main); }
.sc-ad-card { cursor: pointer; }
.sc-ad-card .addr-card-info { flex: 1; min-width: 0; padding-right: 10px; }
.sc-ad-card .addr-details-row { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-ad-card.active { border-color: var(--accent-green); background: rgba(30, 138, 99, .05); }
.sc-ad-card.active .sc-po-radio { background: var(--accent-green); border-color: var(--accent-green); }
.sc-ad-card.active .sc-po-radio i { display: block; }

/* payment + order placed pages (styled after blinkit_bot) */
.sp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); font-family: var(--font-heading); font-weight: 700; font-size: 12px; cursor: pointer; }
.sp-qr-card { text-align: center; padding: 16px; margin-bottom: 12px; }
.sp-title { font-family: var(--font-heading); font-weight: 800; font-size: 15px; }
.sp-muted { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.sp-qr { margin: 14px auto 8px; padding: 10px; width: 170px; height: 170px; box-sizing: border-box; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.12); display: grid; place-items: center; font-size: 60px; color: #15231F; }
.sp-qr img { width: 100%; height: 100%; display: block; }
.sp-amount { font-family: var(--font-heading); font-weight: 900; font-size: 24px; color: #1E8A63; margin: 4px 0 2px; }
.sp-qr { position: relative; }
.sp-qr-copy { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); display: grid; place-items: center; font-size: 13px; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.sp-qr-copy.copied { background: #1E8A63; color: #fff; border-color: #1E8A63; }
.sp-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.sp-btn { width: 88%; max-width: 280px; height: 42px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-main); font-family: var(--font-heading); font-weight: 800; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.sp-btn.primary { border: none; color: #fff; background: linear-gradient(135deg, #147A63, #1E8A63); box-shadow: 0 6px 16px rgba(30, 138, 99, .3); }
.sp-btn.sp-full { width: 100%; max-width: none; margin-bottom: 16px; }
.sp-wait { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }
.sp-wait.bad { color: var(--accent-red); font-weight: 700; }
.sp-retry { margin-left: 6px; padding: 4px 12px; border-radius: 9px; border: none; background: var(--accent-red); color: #fff; font-weight: 800; cursor: pointer; }
.sp-card { padding: 14px; margin-bottom: 12px; }
.sp-card-title { font-family: var(--font-heading); font-weight: 800; font-size: 13px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-color); display: flex; align-items: center; gap: 7px; }
.sp-card-title i { color: var(--swiggy-blue); }
.sp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 0; font-size: 12px; }
.sp-row span { color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.sp-row b { text-align: right; font-weight: 700; }
.sp-row.sp-dash { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--border-color); }
.sp-id { font-family: monospace; color: #1E8A63; }
.sp-addr-text { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; text-align: right; padding: 2px 0; }
.sp-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sp-line .sc-line-info { flex: 1; min-width: 0; }
.sp-qty { font-size: 12px; font-weight: 800; color: var(--text-muted); }
.sp-hero { text-align: center; padding: 22px 16px 18px; }
.sp-hero h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; margin: 14px 0 6px; animation: spUp .5s ease .2s both; }
.sp-hero p { font-size: 13.5px; color: var(--text-muted); margin: 0; animation: spUp .5s ease .3s both; }
.sp-check { position: relative; width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; background: #1E8A63; color: #fff; display: grid; place-items: center; font-size: 36px; box-shadow: 0 12px 32px rgba(30, 138, 99, .35); animation: spPop .6s cubic-bezier(.175,.885,.32,1.275) both; }
.sp-check span { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #1E8A63; animation: spRing 1.5s cubic-bezier(.215,.61,.355,1) infinite; }
.sp-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 4000; }
.sp-confetti i { position: absolute; top: -20px; animation: spFall linear forwards; }
@keyframes spPop { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes spUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes spFall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }
.sc-ord-steps { display: flex; justify-content: space-between; margin: 14px 4px 4px; }
.sc-ord-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.sc-ord-step span { width: 14px; height: 14px; border-radius: 50%; background: var(--border-strong); z-index: 1; }
.sc-ord-step::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); }
.sc-ord-step:first-child::before { display: none; }
.sc-ord-step.done span, .sc-ord-step.done::before { background: #1E8A63; }
.sc-ord-step em { font-style: normal; font-size: 10.5px; color: var(--text-muted); }

.sp-btn { width: 85%; max-width: 240px; }
.sp-btn.primary { height: 40px; }
.sp-btn:not(.primary) { height: 38px; font-size: 12.5px; }
.sp-btn:not(.primary) i { color: #C94E2E; }
.sp-btn:disabled { opacity: .7; cursor: wait; }
.sp-addr { display: flex; flex-direction: column; gap: 4px; }
.sp-addr-tag { align-self: flex-start; padding: 2px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 800; background: var(--bg-input); color: var(--swiggy-blue); }
.sp-addr-tag.home { background: rgba(30, 138, 99, .14); color: #147A63; }
.sp-addr-name { font-size: 13px; font-weight: 800; }
.sp-addr-name span { font-weight: 500; color: var(--text-muted); }
.sp-addr .sp-addr-text { text-align: left; font-size: 12px; }
.sp-bill-head { font-size: 11.5px; font-weight: 700; color: var(--text-muted); padding-bottom: 6px; }
.sp-bill-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.sp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--bg-input); color: var(--text-main); }
.sp-pill.ok { background: rgba(30, 138, 99, .14); color: #147A63; }

/* payment page: blinkit_bot look */
.sp-qr-card { border: 1px solid var(--border-color); text-align: center; padding: 14px; margin-bottom: 12px; }
.sp-title { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--text-main); }
.sp-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
.sp-qr { margin: 12px auto 8px; padding: 8px; width: 160px; height: 160px; box-sizing: border-box; background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; }
.sp-qr img { width: 144px; height: 144px; border-radius: 6px; }
.sp-amount { font-family: var(--font-heading); font-weight: 900; font-size: 20px; color: #1E8A63; margin-bottom: 10px; }
.sp-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.sp-pay-btn { width: 85%; max-width: 240px; height: 38px; border-radius: 10px; border: none; background: var(--swiggy-gradient); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 3px 8px rgba(201, 78, 46, .28); text-decoration: none; cursor: pointer; }
.sp-check-btn { width: 85%; max-width: 240px; height: 36px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-main); font-family: var(--font-heading); font-weight: 700; font-size: 12.5px; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.sp-check-btn i { color: #C94E2E; }
.sp-check-btn:disabled { opacity: .7; cursor: wait; }
.sp-wait { font-size: 11px; color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.sp-wait.bad { color: var(--accent-red); font-weight: 700; }
.sp-ring { display: inline-block; width: 13px; height: 13px; border: 1.5px dotted #C94E2E; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; flex-shrink: 0; }

/* address card (Deliver To / Receiver Contact) */
.sp-addr { display: flex; flex-direction: column; gap: 8px; }
.sp-addr-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sp-addr-row > span { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .5px; white-space: nowrap; margin-top: 1px; }
.sp-addr-row > div { font-size: 11.5px; font-weight: 700; color: var(--text-main); line-height: 1.35; text-align: right; max-width: 230px; letter-spacing: .3px; }
.sp-addr-recv { border-top: 1px dashed var(--border-color); padding-top: 6px; align-items: center; }
.sp-addr-tag { display: inline-block; padding: 1px 7px; margin-right: 2px; border-radius: 7px; font-size: 10px; font-weight: 800; background: rgba(201, 78, 46, .14); color: #C94E2E; letter-spacing: 0; }

/* bill */
.sp-bill-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: var(--bg-input); font-size: 12px; font-weight: 800; }
.sp-bill-head i { color: #C94E2E; }
.sp-bill-head span { margin-left: auto; font-weight: 700; color: var(--text-muted); font-size: 11px; }
.sp-bill-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 2px; font-size: 12.5px; color: var(--text-muted); border-bottom: 1px dashed var(--border-color); }
.sp-bill-row > span:first-child { color: var(--text-main); font-weight: 600; }
.sp-bill-row > span:last-child { font-weight: 700; color: var(--text-main); white-space: nowrap; }
.sp-bill-row s { margin-right: 6px; font-weight: 500; color: var(--text-muted); opacity: .8; }
.sp-bill-row.save > span { color: #147A63 !important; }
.sp-bill-code { font-style: normal; margin-left: 7px; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .5px; background: rgba(30, 138, 99, .14); color: #147A63; }
.sp-bill-note { font-style: normal; margin-left: 6px; font-size: 10.5px; color: var(--text-muted); }
.sp-bill-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 11px 12px; border-radius: 12px; background: rgba(30, 138, 99, .1); border: 1px solid rgba(30, 138, 99, .28); font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.sp-bill-total b { font-size: 18px; font-weight: 900; color: #147A63; }

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

.sp-check-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #147A63, #1E8A63); color: #fff; font-size: 10px; box-shadow: 0 2px 6px rgba(30, 138, 99, .4); }
.sp-check-btn:not(:disabled):active .sp-check-ico { transform: scale(.88); }
.sp-check-btn i { color: inherit; }
.sp-wait i { flex-shrink: 0; }
.sp-wait { text-align: center; }
.sp-check-btn i { color: #C94E2E; font-size: 14px; }

.sp-track { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(201, 78, 46, .14); color: #C94E2E; font-size: 11.5px; font-weight: 800; text-decoration: none; }

/* orders tab: account / last hour switch */
.od-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.od-tab { flex: 1; height: 38px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-muted); font-family: var(--font-heading); font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.od-tab.active { background: var(--swiggy-gradient); border-color: transparent; color: #fff; }
.od-tab em { font-style: normal; min-width: 18px; padding: 0 5px; border-radius: 99px; font-size: 10.5px; background: rgba(0,0,0,.18); }
.hr-card { padding: 12px 14px; margin-bottom: 10px; }
.hr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hr-rest { font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.hr-amt { font-weight: 900; color: #1E8A63; }
.hr-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.hr-chip { padding: 3px 9px; border-radius: 99px; background: var(--bg-input); font-size: 10.5px; font-weight: 700; color: var(--text-muted); }
.hr-chip b { color: var(--text-main); font-weight: 800; }
.hr-items { margin: 8px 0; padding: 8px 0; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); font-size: 12px; }
.hr-items div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hr-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); }

/* coupon applied: one celebration line */
.sc-cp-line { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.sc-cp-line b { font-weight: 800; color: var(--text-main); }
.sc-cp-line em { font-style: normal; font-weight: 800; color: #147A63; margin-left: 4px; }
.sc-coupon.applied .sc-coupon-ico { font-size: 16px; }

/* Swiggy One */
.sc-one { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-top: 10px; border: 1px solid var(--border-color); }
.sc-one.on { border-color: rgba(201, 78, 46, .5); background: color-mix(in srgb, #C94E2E 7%, var(--bg-card)); }
.sc-one-logo { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: #FBEDE5; overflow: hidden; }
.sc-one-logo img { width: 30px; height: 30px; object-fit: contain; }
.sc-one-logo b { font-size: 11px; font-weight: 900; color: #C94E2E; }
.sc-one .sc-row-text b { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-one .sc-row-text em { font-style: normal; font-size: 11px; color: var(--text-muted); line-height: 1.35; }
.sc-one-price { padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; background: rgba(201, 78, 46, .15); color: #C94E2E; }
.sc-one-btn { height: 32px; padding: 0 16px; border-radius: 10px; border: none; background: var(--swiggy-gradient); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.sc-one-btn.remove { background: var(--bg-input); color: var(--accent-red); border: 1px solid var(--border-color); }
.sc-one-btn:disabled { opacity: .55; cursor: wait; }

/* coupon + Swiggy One: each its own full-width card, one line of text */
#scCouponBox, #scOneBox { display: block; width: 100%; }
#scCouponBox > .card, #scOneBox > .card { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0 0 10px; }
.sc-coupon.applied .sc-cp-line { display: block; flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--text-main); }
.sc-coupon.applied .sc-cp-line b { display: inline; white-space: normal; overflow: visible; font-size: inherit; font-weight: 800; color: var(--text-main); }
.sc-coupon.applied .sc-cp-line em { display: inline; white-space: nowrap; font-size: inherit; font-style: normal; font-weight: 800; color: #147A63; margin-left: 2px; }
.sc-coupon.applied .sc-link-btn { flex-shrink: 0; }
.sc-one { margin-top: 0; }
.sc-one .sc-row-text { flex: 1; min-width: 0; }
.sc-one .sc-row-text em { white-space: normal; overflow: visible; }
.sc-one .sc-row-text b { white-space: normal; overflow: visible; }
.sc-one-btn { flex-shrink: 0; }

/* order cards (This Account / Last 1 Hour) */
.oc { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.oc-tag { padding: 3px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 800; background: rgba(201, 78, 46, .14); color: #C94E2E; }
.oc-tag.insta { background: rgba(14, 90, 74, .14); color: #0E5A4A; }
.oc-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.oc-status.ok { background: rgba(30, 138, 99, .14); color: #147A63; }
.oc-status.bad { background: rgba(255,77,77,.12); color: var(--accent-red); }
.oc-status.live { background: rgba(14, 90, 74, .12); color: #0A4236; }
.oc-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ocPulse 1.2s ease-in-out infinite; }
@keyframes ocPulse { 50% { opacity: .25; transform: scale(.7); } }
.oc-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.oc-name { font-family: var(--font-heading); font-size: 15px; font-weight: 800; line-height: 1.3; }
.oc-name small { display: block; margin-top: 2px; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.oc-amt { font-family: var(--font-heading); font-size: 16px; font-weight: 900; color: var(--text-main); white-space: nowrap; }
.oc-time { margin-top: 4px; font-size: 11.5px; color: var(--text-muted); }
.oc-items { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-input); font-size: 12px; line-height: 1.45; color: var(--text-main); }
.oc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.oc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--bg-input); font-size: 10.5px; font-weight: 700; color: var(--text-muted); }
.oc-de { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 10px; border-radius: 12px; border: 1px dashed var(--border-color); }
.oc-de-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(30, 138, 99, .14); color: #147A63; font-size: 14px; flex-shrink: 0; }
.oc-de-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-de-text b { font-size: 12.5px; font-weight: 800; }
.oc-de-text small { font-size: 10px; color: var(--text-muted); }
.oc-call { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: linear-gradient(135deg, #147A63, #1E8A63); color: #fff; font-size: 11.5px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.oc-id { font-family: monospace; font-size: 11px; color: var(--text-muted); }

.oc-item { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-weight: 700; }
.oc-item b { font-weight: 800; white-space: nowrap; }
.oc-addon { padding: 1px 0 1px 12px; font-size: 11px; color: var(--text-muted); }
.oc-addon em { font-style: normal; color: #147A63; font-weight: 700; }

/* ── order cards: tap for details + detail page ── */
.oc-click { cursor: pointer; transition: transform .12s, border-color .12s; }
.oc-click:active { transform: scale(.992); border-color: #C94E2E; }
.oc-more { font-size: 11.5px; font-weight: 800; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.od-page { position: fixed; inset: 0; z-index: 900; background: var(--bg-main, var(--bg-input)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.odp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-card); border-bottom: 1.5px solid var(--border-color); }
.odp-title { flex: 1; font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.odp-back { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-main); display: grid; place-items: center; cursor: pointer; }
.odp-body { max-width: 560px; margin: 0 auto; padding: 14px 14px 40px; }
.odp-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.odp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-heading); font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.odp-h i { color: #C94E2E; }
.odp-rows { margin-top: 8px; }
.odp-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13px; }
.odp-row span { color: var(--text-muted); }
.odp-row b { font-weight: 700; text-align: right; word-break: break-word; }
.odp-row.neg b { color: #147A63; }
.odp-row.total { margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed var(--border-color); font-size: 15px; }
.odp-row.total span, .odp-row.total b { color: var(--text-main); font-weight: 900; font-family: var(--font-heading); }
.odp-item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; font-weight: 700; border-bottom: 1px solid var(--border-color); }
.odp-item:last-child { border-bottom: 0; }
.odp-item em { font-style: normal; margin-left: 6px; color: var(--text-muted); }
.odp-item small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted); padding-left: 10px; }
.odp-text { font-size: 13px; line-height: 1.5; }
.odp-muted { font-size: 12.5px; color: var(--text-muted); }
.odp-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.odp-url { margin-top: 8px; font-family: monospace; font-size: 11px; color: var(--text-muted); word-break: break-all; }

/* ── order list: refresh pill + clean cards (blinkit_bot style) ── */
.od-refresh { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; font-size: 11.5px; font-weight: 700; cursor: pointer; background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-color); font-family: inherit; transition: transform .15s, border-color .2s; }
.od-refresh:active { transform: scale(.94); }
.od-refresh:hover { border-color: #C94E2E; }
.od-refresh i { color: #C94E2E; }
.od-refresh:disabled { opacity: .7; pointer-events: none; }

.oc { padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.oc-head { display: flex; align-items: center; gap: 10px; }
.oc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.oc-ico.ok { background: rgba(30, 138, 99, .14); color: #147A63; }
.oc-ico.bad { background: rgba(239,68,68,.13); color: #C44545; }
.oc-ico.live { background: rgba(201, 78, 46, .15); color: #C94E2E; }
.oc-headtext { flex: 1; min-width: 0; }
.oc-headtext .oc-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-sub { margin-top: 2px; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-status { flex-shrink: 0; max-width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.oc-line { height: 1px; background: var(--border-color); opacity: .7; }
.oc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-summary { flex: 1; min-width: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-right { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.oc-right i { font-size: 11px; color: var(--text-muted); }
.oc .oc-amt { font-size: 15px; font-weight: 800; color: #147A63; }

/* ══ Orders page v3 (blinkit_bot look) ══════════════════════════════ */
.od-refresh i { color: var(--swiggy-blue); }
.od-refresh:hover { border-color: var(--swiggy-blue); }

/* segmented tabs with a sliding indicator */
.od-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 14px; border-radius: 15px;
    background: var(--bg-input); border: 1px solid var(--border-color); }
.od-seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 11px; background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.od-seg.right .od-seg-ind { transform: translateX(100%); }
.od-seg-btn { position: relative; z-index: 1; height: 38px; border: 0; background: transparent; cursor: pointer; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-heading); font-size: 13px; font-weight: 800;
    color: var(--text-muted); transition: color .2s; }
.od-seg-btn i { font-size: 13px; transition: transform .25s; }
.od-seg-btn.active { color: var(--text-main); }
.od-seg-btn.active i { color: var(--swiggy-blue); transform: scale(1.12); }
.od-seg-btn em { font-style: normal; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
    font-size: 10.5px; background: var(--border-color); color: var(--text-muted); }
.od-seg-btn em.hot { background: #C94E2E; color: #fff; animation: pinBounce 1.8s ease-in-out infinite; }

/* section head (same as blinkit_bot's Order History bar) */
.oh-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.oh-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 15px; white-space: nowrap; }
.oh-title i { color: var(--swiggy-blue); }
.oh-line { flex: 1; height: 1.5px; min-width: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--swiggy-blue), rgba(14, 90, 74, 0)); opacity: .7; }

/* order card */
.oc { padding: 15px; margin-bottom: 12px; border-radius: 18px; border: 1px solid var(--border-color); gap: 12px; position: relative; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.05); transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, border-color .25s; animation: riseIn .3s ease both; }
.oc::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: #1E8A63; }
.oc.live::before { background: #C94E2E; }
.oc.bad::before { background: #C44545; }
.oc-click:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,.1); border-color: var(--swiggy-blue); }
.oc-click:active { transform: scale(.99); }
.oc-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.oc-headtext .oc-name { font-size: 14.5px; font-weight: 800; }
.oc-sub { font-size: 11px; margin-top: 3px; }
.oc-badge { flex-shrink: 0; max-width: 44%; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; font-family: var(--font-heading);
    font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid; }
.oc-badge.ok { background: rgba(30, 138, 99, .1); border-color: rgba(30, 138, 99, .3); color: #147A63; }
.oc-badge.bad { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #C44545; }
.oc-badge.live { background: rgba(201, 78, 46, .1); border-color: rgba(201, 78, 46, .35); color: #B84427; }
.oc-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: -2px; }
.oc-rail::-webkit-scrollbar { display: none; }
.oc-pill { flex-shrink: 0; max-width: 170px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--bg-input);
    border: 1px solid var(--border-color); font-size: 11.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-pill i { color: #C94E2E; font-size: 10.5px; }
.oc-pill.more { color: var(--text-muted); }
.oc-bottom .oc-id { font-family: monospace; font-size: 11px; color: var(--text-muted); }
.oc .oc-amt { font-family: var(--font-heading); font-size: 15.5px; font-weight: 900; color: #147A63; }
.oc-live-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: rgba(201, 78, 46, .12); color: #B84427; font-size: 10.5px; font-weight: 800; }

/* skeleton */
.oc-skel { pointer-events: none; animation: none; }
.oc-skel::before { display: none; }
.oc-skel .sk, .sk-l { background: linear-gradient(90deg, var(--bg-input) 25%, var(--border-color) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: srShim 1.2s linear infinite; }
.sk-l { display: block; height: 10px; border-radius: 6px; }
.sk-l + .sk-l { margin-top: 7px; }
.sk-l.w60 { width: 60%; height: 12px; } .sk-l.w35 { width: 35%; } .sk-l.w30 { width: 30%; } .sk-l.w20 { width: 18%; height: 14px; }
.sk-l.pill { width: 70px; height: 20px; border-radius: 8px; flex-shrink: 0; }
.sk-l.chip { width: 96px; height: 26px; border-radius: 10px; margin-top: 0 !important; }

/* ══ Order details v3 (blinkit_bot layout, kept inside the 480px app frame) ══ */
.od-page { inset: 0 0 0 0; left: 0; right: 0; width: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box; overflow-x: hidden; background: var(--bg-main); }
.od-page *, .od-page *::before, .od-page *::after { box-sizing: border-box; }
.odp-wrap { position: relative; z-index: 1; padding: 12px 14px calc(28px + env(safe-area-inset-bottom, 0px)); }
.odp-top { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -12px -14px 0; padding: 10px 14px;
    background: var(--bg-main); }
.odp-top .od-refresh { max-width: 50%; white-space: nowrap; }

.odp-hero { text-align: center; padding: 18px 6px 16px; }
.odp-ring { position: relative; width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 34px;
    animation: odpBounce .6s cubic-bezier(.175,.885,.32,1.275) both; }
.odp-ring.ok { background: #1E8A63; box-shadow: 0 12px 32px rgba(30, 138, 99, .35); }
.odp-ring.bad { background: #C44545; box-shadow: 0 12px 32px rgba(239,68,68,.35); }
.odp-ring.live { background: #C94E2E; box-shadow: 0 12px 32px rgba(201, 78, 46, .35); }
.odp-ring > i { animation: odpPop .4s ease .25s both; }
.odp-pulse { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid; animation: odpPulse 1.5s cubic-bezier(.215,.61,.355,1) infinite; }
.odp-ring.ok .odp-pulse { border-color: #1E8A63; } .odp-ring.bad .odp-pulse { border-color: #C44545; } .odp-ring.live .odp-pulse { border-color: #C94E2E; }
.odp-big { margin: 0 0 6px; font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--text-main); line-height: 1.2; animation: odpUp .45s ease .15s both; word-break: break-word; }
.odp-small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); animation: odpUp .45s ease .22s both; }
.odp-small.live { color: #B84427; }
@keyframes odpBounce { 0% { transform: scale(0); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes odpPop { from { opacity: 0; transform: scale(.5); } }
@keyframes odpPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes odpUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes odpFall { 0% { transform: translateY(-10vh) rotate(0); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
.odp-confetti { position: absolute; inset: 0; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; }
.odp-confetti i { position: absolute; top: 0; width: 8px; height: 8px; border-radius: 2px; animation: odpFall 2.5s ease-in-out infinite; }

/* progress (live orders) */
.odp-steps { display: flex; margin: 16px 0 0; padding: 12px 4px 10px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-color); }
.odp-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; color: var(--text-muted); text-align: center; line-height: 1.2; }
.odp-step i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-style: normal;
    background: var(--bg-card); border: 2px solid var(--border-color); color: #fff; }
.odp-step:not(:first-child)::before { content: ''; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--border-color); }
.odp-step.done, .odp-step.now { color: var(--text-main); }
.odp-step.done i { background: #C94E2E; border-color: #C94E2E; }
.odp-step.now i { border-color: #C94E2E; box-shadow: 0 0 0 4px rgba(201, 78, 46, .18); }
.odp-step.now i::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #C94E2E; }
.odp-step.done::before, .odp-step.now::before { background: #C94E2E; }

/* cards */
.odp-card { padding: 14px; border-radius: 16px; }
.odp-in { animation: odpUp .45s ease both; }
.odp-h { margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px dashed var(--border-color); font-size: 12.5px; color: var(--text-main); text-transform: none; letter-spacing: .3px; }
.odp-h i { color: var(--swiggy-blue); }
.odk-list { display: flex; flex-direction: column; gap: 11px; }
.odk { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; line-height: 1.4; }
.odk.top { align-items: flex-start; }
.odk-l { flex-shrink: 0; color: var(--text-muted); font-weight: 600; }
.odk-v { min-width: 0; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; text-align: right; color: var(--text-main); font-weight: 700; word-break: break-word; }
.odk-v small { display: block; width: 100%; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.odk-addr { max-width: 230px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); line-height: 1.4; }
.odk-pay { padding: 3px 10px; border-radius: 20px; background: rgba(30, 138, 99, .12); color: #147A63; font-size: 10.5px; font-weight: 800; }
.odk-tel { color: var(--swiggy-blue); text-decoration: none; }
.odk-copy { border: 0; background: none; padding: 0 2px; color: var(--text-muted); cursor: pointer; font-size: 12px; }
.odk-chips { display: inline-flex; gap: 6px; }
.odk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer;
    background: rgba(201, 78, 46, .14); color: #B84427; border: 1px solid rgba(201, 78, 46, .3); font-family: inherit; }
.odk-chip.ghost { background: var(--bg-input); color: var(--text-main); border-color: var(--border-color); }
.odk-chip.call { background: linear-gradient(135deg, #147A63, #1E8A63); color: #fff; border-color: transparent; }
.odk-muted { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.odk.total { margin-top: 2px; padding-top: 11px; border-top: 1px dashed var(--border-color); }
.odk.total .odk-l { color: var(--text-main); font-weight: 800; }
.odk-amt { font-family: var(--font-heading); font-size: 17px; font-weight: 900; color: #147A63; }

.odp-item { align-items: center; gap: 10px; font-size: 12.5px; padding: 8px 0; }
.odp-item-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(201, 78, 46, .1); color: #C94E2E; font-size: 14px; }
.odp-item-main { flex: 1; min-width: 0; }
.odp-item-main > span { font-weight: 700; word-break: break-word; }
.odp-item-main small.q { padding-left: 0; }
.odp-item > b { flex-shrink: 0; }
.odp-row { font-size: 12.5px; padding: 5px 0; }
.odp-backbig { width: 100%; height: 44px; margin-top: 4px; border: 0; border-radius: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0E5A4A, #0E5A4A); box-shadow: 0 4px 12px rgba(14, 90, 74, .35); }

/* ── cart items: slim rows with veg / non-veg marks ── */
.odi-list { display: flex; flex-direction: column; }
.odi { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-color); }
.odi:last-child { border-bottom: 0; padding-bottom: 2px; }
.odi:first-child { padding-top: 2px; }
.odi-mark { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; border-radius: 3px; border: 1px solid; display: grid; place-items: center; }
.odi-mark i { width: 7px; height: 7px; border-radius: 50%; }
.odi-mark.veg { border-color: #147A63; } .odi-mark.veg i { background: #147A63; }
.odi-mark.nonveg { border-color: #C44545; }
.odi-mark.nonveg i { width: 0; height: 0; border-radius: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #C44545; }
.odi-mark.none { border: 0; color: #C94E2E; font-size: 11px; }
.odi-mark.none i { width: auto; height: auto; }
.odi-main { flex: 1; min-width: 0; }
.odi-name { font-size: 12.5px; font-weight: 700; color: var(--text-main); line-height: 1.35; word-break: break-word; }
.odi-name em { font-style: normal; margin-right: 6px; padding: 0 5px; border-radius: 5px; font-size: 10.5px; font-weight: 800; color: var(--swiggy-blue); background: rgba(14, 90, 74, .12); }
.odi-extra { margin-top: 2px; font-size: 10.5px; font-weight: 500; color: var(--text-muted); line-height: 1.35; }
.odi-price { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: var(--text-main); }

button.odk-tel { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--swiggy-blue); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
button.odk-tel i { font-size: 10px; }
button.odk-chip { line-height: 1.3; }

.odk-sep { margin: 0 7px; font-weight: 400; color: var(--text-muted); opacity: .45; }

/* veg / non-veg mark inside the card item pills */
.oc-pill { gap: 6px; }
.oc-pill .odi-mark { width: 12px; height: 12px; margin-top: 0; border-width: 1.3px; border-radius: 2px; }
.oc-pill .odi-mark i { width: 5px; height: 5px; }
.oc-pill .odi-mark.nonveg i { width: 0; height: 0; border-left-width: 3px; border-right-width: 3px; border-bottom-width: 5px; }
.oc-pill .odi-mark.none { font-size: 9.5px; }
.oc-pill .odi-mark.none i { width: auto; height: auto; color: #C94E2E; }
.oc-pill-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.od-empty-btn { margin-top: 14px; }

/* ══ Order details v4: icon rows, contact tiles, tracking tile ══ */
.odk-list { gap: 0; }
.odk { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.odk:last-child { border-bottom: 0; }
.odk:first-child { padding-top: 2px; }
.odk-l { display: inline-flex; align-items: center; gap: 10px; }
.odk-ico { width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 11.5px;
    background: rgba(14, 90, 74, .12); color: var(--swiggy-blue); }
.odk-v { font-size: 12.5px; }
.odk-stack { display: flex; flex-direction: column; align-items: flex-end; }
.odk-stack small { width: auto; }
.odk-copy { margin-left: 6px; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-muted);
    display: inline-grid; place-items: center; font-size: 11px; cursor: pointer; padding: 0; }
.odk-copy:active { transform: scale(.9); }
.odk-pay { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; }
.odk-pay i { font-size: 10px; }
.odk.total { margin-top: 4px; padding-top: 12px; border-top: 1.5px dashed var(--border-color); border-bottom: 0; }
.odk.total .odk-ico { background: rgba(30, 138, 99, .13); color: #147A63; }

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

/* tracking tile */
.odt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; border: 1px solid var(--border-color);
    background: var(--bg-input); transition: transform .15s, border-color .2s; }
.odt:active { transform: scale(.985); }
.odt.live { border-color: rgba(201, 78, 46, .35); background: linear-gradient(135deg, rgba(201, 78, 46, .12), rgba(201, 78, 46, .03)); }
.odt.wait { cursor: default; border-style: dashed; }
.odt-ico { position: relative; width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; font-size: 17px;
    background: var(--bg-card); color: #C94E2E; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.odt.wait .odt-ico { color: var(--text-muted); }
.odt-ping { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #2A9E75; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: odtPing 1.6s infinite; }
@keyframes odtPing { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.odt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.odt-text b { font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; color: var(--text-main); }
.odt-text small { font-size: 10.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: monospace; }
.odt-btn { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-main); font-size: 12px; cursor: pointer; padding: 0; }
.odt-btn.go { background: #C94E2E; border-color: #C94E2E; color: #fff; }

/* contact tiles */
.odc { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--bg-input); }
.odc-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 16px; }
.odc.de .odc-av { background: linear-gradient(135deg, #147A63, #1E8A63); color: #fff; box-shadow: 0 4px 10px rgba(30, 138, 99, .3); }
.odc.rc .odc-av { background: linear-gradient(135deg, #0E5A4A, #0E5A4A); color: #fff; box-shadow: 0 4px 10px rgba(14, 90, 74, .3); }
.odc.wait .odc-av { background: var(--bg-card); color: var(--text-muted); box-shadow: none; border: 1px dashed var(--border-color); }
.odc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.odc-text small { font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }
.odc-text b { margin-top: 1px; font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.odc-ph { margin-top: 2px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-main); letter-spacing: .3px; }
.odc-ph i { font-size: 10px; color: #147A63; }
.odc.rc .odc-ph i { color: var(--swiggy-blue); }
.odc-ph.muted { color: var(--text-muted); font-weight: 600; letter-spacing: 0; }

/* address */
.oda { display: flex; align-items: flex-start; gap: 12px; padding: 2px 2px 0; }
.oda-ico { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; font-size: 16px; background: rgba(239,68,68,.1); color: #C44545; }
.oda-text { flex: 1; min-width: 0; }
.oda-text small { font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }
.oda-text p { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--text-main); }

/* ══ Order details v5: slim rows, one track button, clean contact rows ══ */
/* order information: plain rows, small icon, no boxes */
.odk { padding: 9px 0; }
.odk-l { gap: 9px; font-size: 12px; }
.odk-ico { width: 16px; height: auto; border-radius: 0; background: none !important; color: var(--text-muted) !important; font-size: 12px; text-align: center; }
.odk.total .odk-ico { color: #147A63 !important; }
.odk-copy { width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; }

/* track button */
.odp-trackrow { display: flex; gap: 8px; margin-top: 14px; }
.odp-track { flex: 1; height: 46px; border: 0; border-radius: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 0 16px;
    font-family: var(--font-heading); font-size: 14.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #C94E2E, #C94E2E);
    box-shadow: 0 6px 16px rgba(201, 78, 46, .35); }
.odp-track span { flex: 1; text-align: left; }
.odp-track-go { font-size: 12px; opacity: .85; }
.odp-track:active, .odp-track-copy:active { transform: scale(.97); }
.odp-track.ghost { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-color); box-shadow: none; }
.odp-track.ghost > i:first-child { color: #C94E2E; }
.odp-track.wait { background: var(--bg-card); color: var(--text-muted); border: 1px dashed var(--border-color); box-shadow: none; font-size: 13px; }
.odp-track-copy { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; cursor: pointer; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-main); font-size: 15px; }

/* delivery rows */
.odd-list { gap: 0; }
.odc { padding: 10px 0; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: none; gap: 11px; }
.odc:first-child { padding-top: 2px; }
.odc-av { width: 38px; height: 38px; font-size: 14px; box-shadow: none !important; }
.odc.de .odc-av { background: rgba(30, 138, 99, .13); color: #147A63; }
.odc.rc .odc-av { background: rgba(14, 90, 74, .14); color: var(--swiggy-blue); }
.odc.wait .odc-av { background: var(--bg-input); border: 1px dashed var(--border-color); color: var(--text-muted); }
.odc-text b { margin-top: 0; font-size: 13.5px; }
.odc-text small { margin-top: 1px; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.odc-ph { flex-shrink: 0; margin-top: 0; padding: 6px 11px; border-radius: 99px; background: var(--bg-input); border: 1px solid var(--border-color);
    font-size: 12px; font-weight: 800; letter-spacing: .2px; }
.odc-note { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.oda { padding: 10px 0 2px; gap: 11px; }
.oda-ico { width: 38px; height: 38px; border-radius: 50%; font-size: 14px; }
.oda-text b { font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; color: var(--text-main); }
.oda-text p { margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.odk:nth-last-child(2) { border-bottom: 0; }

/* ══ Order details v6: same cards as the Order Placed page ══ */
.od-page .sp-card { margin-bottom: 12px; }
.od-page .sp-row { align-items: center; padding: 6px 0; }
.od-page .sp-row b { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; word-break: break-word; }
.od-page .sp-row.sp-dash { margin-top: 6px; padding-top: 10px; }
.od-sub { display: block; width: 100%; font-size: 10.5px; font-weight: 600; color: var(--text-muted); text-align: right; }
.od-trk { display: inline-flex; align-items: center; gap: 6px; }
.od-page .sp-track { border: 0; cursor: pointer; font-family: inherit; }
.od-page .sp-track.ghost { background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-color); }
.od-amt { font-family: var(--font-heading); font-size: 16px; font-weight: 900; color: #147A63; }
.od-muted { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.od-items-text { font-size: 12px; line-height: 1.5; color: var(--text-main); }
.od-page .sp-line { border-bottom: 1px dashed var(--border-color); padding: 9px 0; }
.od-page .sp-line:last-child { border-bottom: 0; }
.od-page .sp-line .odi-mark { margin-top: 0; width: 13px; height: 13px; }
.od-page .sp-line .odi-mark i { width: 6px; height: 6px; }
.od-page .sp-line .odi-mark.nonveg i { width: 0; height: 0; border-left-width: 3.5px; border-right-width: 3.5px; border-bottom-width: 6px; }
.od-page .sp-line .sc-line-price { margin-top: 0; min-width: 46px; text-align: right; font-size: 12.5px; }
.od-page .sc-bill-row span:last-child { color: var(--text-main); font-weight: 700; }
.od-page .sc-bill-row.save span:last-child { color: #147A63; }
.od-page .sc-bill-row.total span { color: var(--text-main); font-weight: 900; }
.od-back { margin-top: 4px; }
/* the label colour rule (.sp-row span) must not grey out values */
.od-page .sp-row b span { font-weight: inherit; white-space: normal; color: inherit; }
.od-page .sp-row b .od-amt { color: #147A63; font-weight: 900; }
.od-page .sp-row b .odk-pay { color: #147A63; font-weight: 800; }
.od-page .sp-row b .od-muted { color: var(--text-muted); }

/* ══ Order details v7: restaurant in the header ══ */
.odp-rest { display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 6px; padding: 5px 12px; border-radius: 99px; background: var(--bg-card);
    border: 1px solid var(--border-color); font-family: var(--font-heading); font-size: 13px; font-weight: 800; color: var(--text-main); animation: odpUp .45s ease .18s both; }
.odp-rest i { font-size: 11px; color: var(--swiggy-blue); }
.odp-rest span { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.odp-hero .odp-small { display: block; }

/* details could not be loaded: say so instead of showing a half-empty page */
.od-fail { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 600;
    background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: var(--text-main); }
.od-fail i { color: #C44545; }
.od-fail span { flex: 1; }
.od-fail button { flex-shrink: 0; padding: 5px 12px; border-radius: 99px; border: 0; background: #C44545; color: #fff; font-size: 11.5px; font-weight: 800; cursor: pointer; }

/* Order Placed page: Order Information rows styled like the order details page */
#scDonePage .sp-row { align-items: center; padding: 6px 0; }
#scDonePage .sp-row b { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; word-break: break-word; }
#scDonePage .sp-row.sp-dash { margin-top: 6px; padding-top: 10px; }
#scDonePage .sp-row b span { font-weight: inherit; white-space: normal; color: inherit; }
#scDonePage .sp-row b .odk-pay { color: #147A63; font-weight: 800; }
#scDonePage .sp-row b .od-muted { color: var(--text-muted); }
#scDonePage .sp-track { border: 0; cursor: pointer; font-family: inherit; }
#scDonePage .sp-hero .odp-rest { margin-top: 6px; }

/* ══ Tools page (minimal: same cards and tinted icon boxes as the rest of the app) ══ */
.tl-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; animation: odpUp .35s ease both; }
.tl-head-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; font-size: 17px;
    background: rgba(14, 90, 74, .12); color: var(--swiggy-blue); }
.tl-head-ico i { animation: tlBob 2.8s ease-in-out infinite; }
.tl-head h2 { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text-main); }
.tl-head p { margin: 2px 0 0; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.tl-label { margin: 4px 2px 10px; font-family: var(--font-heading); font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); }

.tl-offers { display: flex; flex-direction: column; gap: 10px; }
.tl-offer { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; cursor: pointer; text-align: left;
    font-family: inherit; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,.04);
    animation: tlRise .35s ease both; transition: transform .2s, border-color .2s, box-shadow .2s; }
.tl-offer:hover { transform: translateY(-1px); border-color: var(--swiggy-blue); box-shadow: 0 8px 20px -10px rgba(14, 90, 74, .45); }
.tl-offer:active { transform: scale(.99); }
.tl-offer.soon { opacity: .72; }
.tl-offer-ico { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; font-size: 18px;
    background: rgba(14, 90, 74, .12); color: var(--swiggy-blue); }
.tl-offer-ico.rock i { animation: tlRock 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.tl-offer-ico.bob i { animation: tlBob 2.4s ease-in-out infinite; }
.tl-offer-ico.pulse i { animation: tlPulse 1.8s ease-in-out infinite; }
.tl-offer-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-offer-text b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 14.5px; font-weight: 800; }
.tl-offer-text small { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.tl-pill { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--swiggy-blue); }
.tl-pill.off { color: var(--text-muted); }
.tl-offer-amt { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.tl-offer-amt b { font-family: var(--font-heading); font-size: 20px; font-weight: 900; line-height: 1.1; color: #147A63; }
.tl-offer-amt small { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.tl-offer-go { flex-shrink: 0; font-size: 11px; color: var(--text-muted); transition: transform .2s, color .2s; }
.tl-offer:hover .tl-offer-go { transform: translateX(2px); color: var(--swiggy-blue); }
@keyframes tlRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes tlRock { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes tlBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tlPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .7; } }

/* claim sheet */
.tl-sh-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--border-color); }
.tl-sh-head b { display: block; font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: var(--text-main); }
.tl-sh-head small { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.tl-sh-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tl-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border-color); }
.tl-search i { color: var(--text-muted); font-size: 12px; }
.tl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-main); font-size: 13px; font-weight: 600; font-family: inherit; }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 800;
    background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-muted); }
.tl-chip em { font-style: normal; padding: 0 5px; border-radius: 99px; font-size: 10px; background: var(--border-color); color: var(--text-muted); }
.tl-chip.on { background: rgba(14, 90, 74, .12); border-color: var(--swiggy-blue); color: var(--text-main); }
.tl-chip.all { margin-left: auto; }
.tl-acc-list { display: flex; flex-direction: column; gap: 6px; max-height: 44vh; overflow-y: auto; padding: 2px; }
.tl-acc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 13px; cursor: pointer; background: var(--bg-card);
    border: 1px solid var(--border-color); transition: border-color .15s, background .15s; }
.tl-acc.on { border-color: var(--swiggy-blue); background: rgba(14, 90, 74, .07); }
.tl-acc.off { opacity: .55; cursor: not-allowed; }
.tl-acc input { display: none; }
.tl-box { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--border-color); display: grid; place-items: center; font-size: 10px; color: transparent; transition: .15s; }
.tl-acc.on .tl-box { background: var(--swiggy-blue); border-color: var(--swiggy-blue); color: #fff; }
.tl-av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 900; font-size: 14px;
    background: rgba(14, 90, 74, .14); color: var(--swiggy-blue); }
.tl-acc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-acc-text b { font-size: 13px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-acc-text small { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.tl-tag { flex-shrink: 0; padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; background: var(--bg-input); color: var(--text-muted); }
.tl-tag.new { background: rgba(30, 138, 99, .12); color: #147A63; }
.tl-tag.bad { background: rgba(239,68,68,.1); color: #C44545; }
.tl-res { flex-shrink: 0; max-width: 46%; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-res.ok { color: #147A63; } .tl-res.bad { color: #C44545; } .tl-res.wait { color: var(--swiggy-blue); }
.tl-empty { padding: 18px; text-align: center; font-size: 12px; color: var(--text-muted); }
.tl-summary { margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(30, 138, 99, .1); color: var(--text-main); }
.tl-summary i { color: #147A63; margin-right: 4px; }
.tl-claim { width: 100%; height: 46px; margin-top: 12px; border: 0; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-heading); font-size: 14.5px; font-weight: 800; color: #fff; background: var(--swiggy-gradient); box-shadow: 0 4px 12px rgba(14, 90, 74, .3); }
.tl-claim:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ══ search inside the restaurant ═══════════════════════════════════ */
.sr-ms { position: sticky; top: 56px; z-index: 30; margin: 12px 0; }
.sr-ms-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 15px; background: var(--bg-card);
    border: 1px solid var(--border-color); box-shadow: 0 6px 18px -10px rgba(21, 35, 31, .25); transition: border-color .2s, box-shadow .2s; }
.sr-ms-bar:focus-within { border-color: #C94E2E; box-shadow: 0 8px 22px -10px rgba(201, 78, 46, .45); }
.sr-ms-bar > i { color: #C94E2E; font-size: 14px; }
.sr-ms-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text-main); font-family: inherit; font-size: 13.5px; font-weight: 600; }
.sr-ms-bar input::-webkit-search-cancel-button { display: none; }
.sr-ms-clear { width: 26px; height: 26px; flex-shrink: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--bg-input); color: var(--text-muted); font-size: 12px; }
.sr-ms-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--bg-card);
    border: 1px solid var(--border-color); box-shadow: 0 18px 40px -12px rgba(21, 35, 31, .3); display: none; }
.sr-ms-sugg.open { display: block; animation: srMsIn .16s ease-out; }
@keyframes srMsIn { from { opacity: 0; transform: translateY(-4px); } }
.sr-ms-sh { padding: 8px 8px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }
.sr-ms-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 8px; }
.sr-ms-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700;
    background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-main); }
.sr-ms-chip em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-muted); }
.sr-ms-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 11px; cursor: pointer; text-align: left;
    font-family: inherit; background: transparent; color: var(--text-main); }
.sr-ms-row:hover, .sr-ms-row:active { background: var(--bg-input); }
.sr-ms-row .sr-diet { width: 13px; height: 13px; }
.sr-ms-row .sr-diet i { width: 6px; height: 6px; }
.sr-ms-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-ms-row-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-ms-row-t b mark, .sr-ms-row-t b mark { background: none; color: #C94E2E; font-weight: 800; }
.sr-ms-row-t small { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-ms-row-p { flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--text-main); }
.sr-ms-row img { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; object-fit: cover; }
.sr-ms-row.cat { border-top: 1px dashed var(--border-color); border-radius: 0 0 11px 11px; }
.sr-ms-cat-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-size: 12px; background: rgba(201, 78, 46, .12); color: #C94E2E; }
.sr-ms-go { color: var(--text-muted); font-size: 11px; }
.sr-ms-none { padding: 14px 10px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.sr-ms-none i { color: #C94E2E; margin-right: 5px; }
.sr-ms-count { display: flex; align-items: center; gap: 6px; margin: 4px 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.sr-ms-count b { color: var(--text-main); }
.sr-ms-count i { color: #C94E2E; font-size: 11px; }
.sr-ms-results { display: flex; flex-direction: column; }

/* tools page has no header: start the cards at the top */
.tl-offers { margin-top: 4px; }

/* address list skeleton */
.addr-skel { pointer-events: none; }
.addr-skel .addr-card-content { display: flex; align-items: flex-start; gap: 12px; }
.addr-skel .addr-card-info { flex: 1; }
.sk-l.addr-sk-tag { width: 64px; height: 16px; border-radius: 4px; margin-bottom: 10px; }
.sk-l.w90 { width: 90%; } .sk-l.w70 { width: 70%; }
.sk-l.addr-sk-btn { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; margin-top: 0 !important; }

/* outlet switcher */
.sr-rh-outlet { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sr-rh-outlet b i { font-size: 10px; margin-left: 3px; opacity: .85; }
.sr-rh-outlet small { color: #F5E2B0 !important; }
.sr-outlet-current { display: flex; align-items: center; gap: 7px; padding: 10px 12px; margin-bottom: 10px; border-radius: var(--radius-md); background: var(--bg-active); font-size: 12px; color: var(--text-muted); }
.sr-outlet-current i { color: var(--swiggy-blue); }
.sr-outlet-current b { color: var(--text-main); }

/* login buttons while working */
.login-btn.busy { cursor: progress; opacity: .85; transform: none; }
.login-btn.busy::after { animation-duration: 1.2s; }

/* address page loading blocks */
.sr-skel.addr-skel-head { height: 28px; width: 55%; margin-bottom: 12px; }
.sr-skel.addr-skel-block { height: 92px; border-radius: 14px; margin-bottom: 10px; }

/* account card: ordered / not ordered pill (same shape as Export) */
.acc-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 800; font-family: var(--font-heading); white-space: nowrap; }
.acc-pill.used { color: #147A63; background: rgba(30, 138, 99, 0.12); border: 1px solid rgba(30, 138, 99, 0.3); }
.acc-pill.fresh { color: var(--text-muted); background: var(--bg-input); border: 1px solid var(--border-color); }

/* offer sheet: already claimed today */
.tl-tag.claimed { background: rgba(30, 138, 99, .12); color: #147A63; display: inline-flex; align-items: center; gap: 4px; }
.tl-acc.claimed:not(.on) { opacity: .7; }

.sc-card-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg-input); border: 1px solid var(--border-color); }
.sc-card-f { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 12px; color: var(--text-secondary, #69776F); }
.sc-card-f input { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-card, transparent); color: inherit; font-size: 15px; width: 100%; box-sizing: border-box; }
.sc-card-row { display: flex; gap: 10px; }
.sc-card-note { font-size: 11px; color: var(--text-secondary, #69776F); }

/* account card: everything on one line, the number never wraps */
.account-card { gap: 8px; }
.acc-main { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.acc-text { min-width: 0; }
.acc-title-text, .acc-sub-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.acc-actions .export-pill-btn { padding: 4px 8px; white-space: nowrap; }

/* empty accounts screen */
.fpe-ring.big { width: 84px; height: 84px; margin-bottom: 18px; border-width: 2px;
    background: radial-gradient(circle at 30% 25%, rgba(14, 90, 74, 0.28), rgba(14, 90, 74, 0.08));
    box-shadow: 0 0 0 8px rgba(14, 90, 74, 0.07), 0 10px 24px rgba(2, 132, 199, 0.18); }

/* coupon list: whole row is tappable; the tapped one shows "Applying..." and the rest wait */
.sc-cpr.tap { cursor: pointer; }
.sc-cpr.busy { border-color: var(--swiggy-blue); background: rgba(14, 90, 74, 0.08); }
.sc-cpr-apply.busy { opacity: 1; background: var(--swiggy-blue); color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }

/* card form fields: darker, slightly bolder text */
.sc-card-f input { color: #15231F; font-weight: 600; letter-spacing: .2px; }
.sc-card-f input::placeholder { color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.sc-card-f span { font-weight: 600; }

/* export is just an icon */
.export-pill-btn.icon-only { padding: 6px 9px; font-size: 12px; }

/* remove / delete choice */
.ad-opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; width: 100%; }
.ad-opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px; border-radius: 14px; cursor: pointer;
    background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-main); font-family: inherit; }
.ad-opt-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(14, 90, 74, 0.12); color: #0A4236; }
.ad-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-opt-text b { font-size: 13.5px; font-weight: 800; }
.ad-opt-text b em { font-style: normal; font-weight: 700; font-size: 11px; opacity: .8; }
.ad-opt-text small { font-size: 11px; color: var(--text-muted); line-height: 1.35; }
.ad-opt.danger { border-color: rgba(239, 68, 68, 0.35); }
.ad-opt.danger .ad-opt-ico { background: rgba(239, 68, 68, 0.12); color: var(--accent-red, #C44545); }
.ad-opt.danger .ad-opt-text b { color: var(--accent-red, #C44545); }
.confirm-ico.danger { background: rgba(239, 68, 68, 0.14); color: var(--accent-red, #C44545); }
.confirm-btn.ok.danger { background: var(--accent-red, #C44545); color: #fff; }
.ad-otp { width: 100%; box-sizing: border-box; margin: 12px 0 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--border-color);
    background: var(--bg-input); color: #15231F; font-size: 20px; font-weight: 700; letter-spacing: 8px; text-align: center; }

/* ==========================================================================
   Toing Plus — minimal layer (keep last: it is meant to override the above)
   The inherited look stacked a 1.5px border AND a shadow AND a gradient on
   almost every row. Here: hairline borders, flat surfaces, colour only where
   it means something, and one short motion per element (nothing loops).
   ========================================================================== */

:root {
    --border-color: rgba(21, 35, 31, .07);
    --border-strong: rgba(21, 35, 31, .11);
    --bg-active: #EDF4EE;
    --swiggy-glow: rgba(14, 90, 74, .08);
    --swiggy-gradient: linear-gradient(135deg, #0E5A4A, #147A63);   /* violet only; the magenta read as loud */
}

[data-theme="dark"] {
    --border-color: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .13);
    --bg-active: rgba(14, 90, 74, .10);
}

/* 1. one hairline, never 1.5–2px frames */
.card, .account-card, .addr-card, .field-box, .od-seg, .sr-loc-bar, .ad-otp,
.tl-offer, .tl-acc, .tl-chip, .tl-search, .sc-addr-card, .sc-ad-card { border-width: 1px; }

/* 2. flat: a surface is bordered or shadowed, not both */
.card, .account-card, .addr-card, .tl-offer, .sr-loc-bar, .sc-addr-card, .auth-gate-card { box-shadow: none; }
.card { border-radius: 14px; padding: 15px; margin-bottom: 10px; }
.account-card, .addr-card, .tl-offer, .sr-loc-bar { border-radius: 13px; }
.auth-gate-card { border-radius: 16px; }

/* 3. weight: 800 on every label made each row shout */
.card-title, .acc-title-text, .sr-loc-title, .od-seg-btn, .acc-pill,
.filter-pill, .tl-chip, .tl-offer-text b, .tl-acc-text b { font-weight: 700; }

/* 4. icon tiles: a wash of colour instead of a block (coloured variants keep theirs) */
.acc-avatar, .sr-loc-ico, .card-icon-box, .tl-offer-ico {
    background: var(--swiggy-glow);
    color: var(--swiggy-blue);
}
.tl-offer { background: var(--bg-card); border-color: var(--border-color); }

/* 5. selected account: a tint and a small tick on the avatar — no ring, no pulse */
.account-card.active { background: var(--bg-active); border-color: rgba(14, 90, 74, .26); }
.account-card.active .acc-avatar { box-shadow: none; animation: none; }
/* selected reads as brand violet; green stays reserved for "has ordered" */
.acc-avatar.active { background: rgba(14, 90, 74, .14); color: var(--swiggy-blue); }

/* 6. motion: one short entrance, a quiet press */
@keyframes toingFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-view.active, .tab-view[style*="block"] { animation: toingFadeIn .22s ease both; }
.account-card, .addr-card, .tl-offer { animation: toingFadeIn .24s ease both; }
.card, .account-card, .addr-card, .tl-offer { transition: border-color .18s ease, background .18s ease; }
.account-card:hover, .addr-card:hover, .tl-offer:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.account-card:active, .addr-card:active, .tl-offer:active { transform: scale(.995); }
.btn-glow-submit-wide { background: var(--swiggy-gradient); box-shadow: none; animation: none; }
.btn-glow-submit-wide::after { content: none; }
.btn-glow-submit-wide:active { transform: scale(.98); }
.auth-gate-logo, .fpe-ring { animation: none; }
.nav-tab { transition: color .18s ease; transform: none; }
.nav-tab.active { transform: none; }
.nav-tab.active i, .nav-tab.active svg { color: var(--swiggy-blue); animation: none; }
.tl-offer-ico.pulse { animation: none; }
.tl-res a { color: var(--swiggy-blue); font-weight: 700; text-decoration: none; }
.tl-offer-ico i, .tl-head-ico i { animation: none; }

/* 7. room to breathe */
.section-head { margin: 12px 0 8px; }
.tl-offers { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================================
   TOING PLUS — identity layer
   A warm paper-and-pine system with one persimmon accent. The header and
   dock are deliberately dark so the miniapp reads as its own product, not
   as a recolour of the violet Toing Pro shell.
   ========================================================================== */

:root {
    --ink: #15231F;
    --ink-2: #243B34;
    --paper: #F3EFE5;
    --paper-deep: #E7E1D4;
    --surface: #FFFCF4;
    --surface-2: #F6F1E6;
    --pine: #0F1F1A;
    --pine-2: #0E5A4A;
    --jade: #147A63;
    --coral: #C94E2E;
    --coral-2: #B84427;
    --gold: #E9C46A;
    --muted: #69776F;
    --success: #1E8A63;
    --danger: #C44545;

    --bg-main: var(--paper);
    --bg-card: var(--surface);
    --bg-input: var(--surface-2);
    --bg-glass: rgba(15, 31, 26, 0.94);
    --bg-active: #EEF4EE;
    --border-color: rgba(21, 35, 31, 0.11);
    --border-strong: rgba(21, 35, 31, 0.19);
    --text-main: var(--ink);
    --text-muted: var(--muted);

    --swiggy-blue: var(--pine-2);
    --swiggy-skyblue: var(--coral);
    --swiggy-gradient: linear-gradient(135deg, var(--pine-2), var(--jade));
    --swiggy-glow: rgba(14, 90, 74, 0.10);
    --accent-green: var(--success);
    --accent-red: var(--danger);
    --accent-blue: var(--pine-2);
    --accent-skyblue: var(--coral);
    --accent-purple: var(--jade);

    --font-heading: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 9px;
    --radius-md: 13px;
    --radius-lg: 18px;
}

[data-theme="dark"] {
    --ink: #F8F4E8;
    --ink-2: #DDE8DF;
    --paper: #0B1713;
    --paper-deep: #07100D;
    --surface: #122620;
    --surface-2: #1A332C;
    --muted: #A9B8B0;

    --bg-main: var(--paper);
    --bg-card: var(--surface);
    --bg-input: var(--surface-2);
    --bg-glass: rgba(11, 23, 19, 0.94);
    --bg-active: #1A332C;
    --border-color: rgba(248, 244, 232, 0.10);
    --border-strong: rgba(248, 244, 232, 0.18);
    --text-main: var(--ink);
    --text-muted: var(--muted);
    --swiggy-blue: #63C3A0;
    --swiggy-skyblue: var(--gold);
    --swiggy-glow: rgba(99, 195, 160, 0.12);
}

html, body { background-color: var(--paper-deep); }
body { background: var(--paper-deep); }

#app {
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 50% -90px, rgba(233, 196, 106, 0.18), transparent 310px),
        radial-gradient(rgba(21, 35, 31, 0.045) 0.7px, transparent 0.8px);
    background-size: auto, 15px 15px;
    box-shadow: 0 0 0 1px rgba(21, 35, 31, 0.05), 0 30px 80px rgba(21, 35, 31, 0.12);
    padding-bottom: 92px;
}

[data-theme="dark"] #app {
    background-image:
        radial-gradient(circle at 50% -90px, rgba(233, 196, 106, 0.08), transparent 310px),
        radial-gradient(rgba(248, 244, 232, 0.035) 0.7px, transparent 0.8px);
    background-size: auto, 15px 15px;
    box-shadow: 0 0 0 1px rgba(248, 244, 232, 0.05), 0 30px 80px rgba(0, 0, 0, 0.32);
}

/* Header: the dark pine band becomes the product's signature. */
.app-header {
    height: 58px;
    padding: 0 15px;
    background: var(--pine);
    border-bottom: 1px solid rgba(233, 196, 106, 0.16);
    box-shadow: 0 8px 24px rgba(15, 31, 26, 0.18);
}

.brand { gap: 9px; }
.brand-badge-modern { width: 30px; height: 30px; }
.logo-squircle {
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28);
}

.brand-name-text {
    color: #F8F4E8;
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-text-container { gap: 6px; }

.pro-inline-tag {
    background: var(--gold);
    color: #15231F;
    border: 0;
    border-radius: 3px;
    padding: 3px 5px;
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.9px;
}

.header-right { gap: 8px; }

.header-phone-badge {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #F8F4E8;
    border-radius: 8px;
    padding: 5px 9px;
}

.header-phone-badge.active {
    background: rgba(233, 196, 106, 0.12);
    border-color: rgba(233, 196, 106, 0.32);
    color: #F8F4E8;
    box-shadow: none;
}

.header-phone-badge i { color: var(--gold) !important; }
.hpb-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-right .icon-toggle {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: #F8F4E8;
}
.header-right .icon-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.page-refresh-btn {
    color: var(--gold);
    border-color: rgba(233, 196, 106, 0.24);
}
.page-refresh-btn:hover { background: rgba(233, 196, 106, 0.10); }
.page-refresh-btn[data-busy="1"] { pointer-events: none; }

@media (max-width: 380px) {
    .brand-name-text { font-size: 1.12rem; }
    .header-right { gap: 5px; }
    .header-phone-badge {
        max-width: 126px;
        padding: 5px 7px;
        font-size: 10px;
    }
    .icon-toggle { width: 28px; height: 28px; }
}

/* Splash and auth gate */
.app-loader-overlay {
    background: radial-gradient(circle at 50% 35%, #173B30 0, #0B1713 68%);
}
.spinner-ring {
    border-color: rgba(233, 196, 106, 0.22);
    border-top-color: var(--gold);
}
.loader-msg {
    color: var(--gold);
    letter-spacing: 1.6px;
}

.auth-gate {
    background:
        radial-gradient(circle at 15% 0%, #1C4B3E 0, transparent 52%),
        radial-gradient(circle at 90% 100%, #4C2A1F 0, transparent 48%),
        #0B1713;
}
.auth-gate-card {
    background: linear-gradient(180deg, #FFFCF4, #F3EDDF);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.auth-gate-card h2 {
    color: var(--ink);
    font-size: 25px;
    letter-spacing: -0.8px;
}
.auth-gate-card p { color: var(--muted); font-size: 13px; }
.auth-gate-logo {
    background: var(--gold);
    color: #15231F;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(233, 196, 106, 0.22);
}

/* Section rhythm */
.section-head { margin: 14px 0 9px; }
.section-head-icon { color: var(--coral); }
.section-head-title { letter-spacing: 0.1px; }
.section-head-line {
    height: 1px;
    opacity: 1;
    background: linear-gradient(90deg, rgba(201, 78, 46, 0.55), rgba(201, 78, 46, 0));
}
.section-head-action { color: var(--coral); }

/* Surfaces: warm paper, hairline borders, no stacked shadows. */
.card {
    background: var(--surface);
    border-color: var(--border-color);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 11px;
}
.account-card, .addr-card, .tl-offer, .sr-loc-bar, .sc-addr-card, .sc-ad-card {
    background: var(--surface);
    border-color: var(--border-color);
}
.acc-avatar { border-radius: 11px; }
.acc-avatar.active { background: rgba(14, 90, 74, 0.12); color: var(--pine-2); }
.card-title, .login-head-title, .sc-card-title, .sr-page-title {
    font-family: var(--font-heading);
    letter-spacing: -0.15px;
}

/* Inputs and chips */
.login-phone-box, .field-box, .mini-search, .tl-search, .sr-search-box, .sc-ad-search {
    background: var(--surface-2);
    border-color: var(--border-color);
    border-radius: 12px;
}

/* Actions */
.btn-primary, .btn-glow-submit-wide {
    background: var(--pine-2);
    color: #FFF9EE;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 0 rgba(8, 47, 39, 0.45);
}
.btn-primary:hover, .btn-glow-submit-wide:hover { filter: brightness(0.96); }
.btn-primary:active, .btn-glow-submit-wide:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(8, 47, 39, 0.45);
}

/* Cart payoff bar: dark, floating, with the one loud accent. */
.sc-pay-bar {
    background: var(--pine);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 40px rgba(15, 31, 26, 0.30);
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.sc-pay-bar-left small { color: rgba(248, 244, 232, 0.55); }
.sc-pay-bar-left b { color: #F8F4E8; }
.sc-pay-btn {
    background: var(--coral);
    color: #FFF9EE;
    border-radius: 11px;
    box-shadow: 0 3px 0 rgba(143, 51, 32, 0.45);
}
.sc-pay-btn:hover { background: var(--coral-2); }
.sc-pay-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(143, 51, 32, 0.45); }
.sc-pay-btn:disabled { box-shadow: none; }

.sc-btn-primary, .sp-pay-btn, .sc-one-btn {
    background: var(--pine-2);
    color: #FFF9EE;
    box-shadow: none;
}

.sr-menu-refresh {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--swiggy-blue);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.sr-menu-refresh:hover { border-color: var(--border-strong); }
.sr-menu-refresh:active { transform: scale(.95); }

/* The menu's floating cart uses the same dark-dock / coral-action language. */
.sr-cart-bar {
    background: var(--pine);
    color: #F8F4E8;
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 40px rgba(15, 31, 26, 0.30);
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.sr-cart-bar-ico { background: rgba(233, 196, 106, 0.14); color: var(--gold); }
.sr-cart-bar-go { background: var(--coral); color: #FFF9EE; }

/* Bottom dock */
.nav-bar-5, .nav-bar-6 {
    height: 70px;
    background: rgba(15, 31, 26, 0.97);
    border-top: 1px solid rgba(233, 196, 106, 0.15);
    box-shadow: 0 -12px 32px rgba(15, 31, 26, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-tab { color: rgba(248, 244, 232, 0.55); gap: 2px; padding: 5px 0; }
.nav-ico {
    width: 34px;
    height: 26px;
    border-radius: 9px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-tab span {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.nav-tab.active { color: var(--gold); }
.nav-tab.active .nav-ico {
    background: rgba(233, 196, 106, 0.14);
    color: var(--gold);
    transform: none;
}
.nav-tab.active span { color: var(--gold); }
.nav-tab.active i, .nav-tab.active svg { color: var(--gold); }
.nav-cart-badge {
    background: var(--coral);
    border: 2px solid var(--pine);
}

/* Toasts */
.timeline-toast-banner {
    background: var(--pine);
    border-color: rgba(233, 196, 106, 0.20);
    box-shadow: 0 12px 34px rgba(15, 31, 26, 0.28);
}
.timeline-toast-msg { color: #F8F4E8; }
.timeline-toast-icon-box { background: rgba(233, 196, 106, 0.14); color: var(--gold); }
.timeline-toast-progress { background: var(--gold); }

/* Data reads cleanly in a dense bill. */
.sc-line-price, .sc-bill-row, .sc-bill-row *, .sc-pay-bar-left b,
.oc-amt, .sp-amount, .odp-row b, .sp-row b { font-variant-numeric: tabular-nums; }

/* Visible keyboard focus without affecting the touch UI. */
:where(button, input, select, textarea, a):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Night mode keeps the same hierarchy with the lights off. */
[data-theme="dark"] .app-header { background: #07100D; }
[data-theme="dark"] .nav-bar-5,
[data-theme="dark"] .nav-bar-6 { background: rgba(7, 16, 13, 0.98); }
[data-theme="dark"] .auth-gate-card {
    background: linear-gradient(180deg, #122620, #0B1713);
    border-color: rgba(248, 244, 232, 0.14);
}
[data-theme="dark"] .auth-gate-card h2 { color: var(--ink); }
[data-theme="dark"] .sc-pay-bar { background: #07100D; }
[data-theme="dark"] .card,
[data-theme="dark"] .account-card,
[data-theme="dark"] .addr-card,
[data-theme="dark"] .tl-offer,
[data-theme="dark"] .sr-loc-bar,
[data-theme="dark"] .sc-addr-card,
[data-theme="dark"] .sc-ad-card { background: var(--surface); }
