
  :root{
    --primary:#ff5200; --primary-dark:#e04500;
    --bg:#f5f5f5; --card:#ffffff; --text:#1c1c1c;
    --muted:#686b78; --green:#2e9e5b;
    --shadow:0 1px 8px rgba(0,0,0,.08);
    --nav-h:64px; --radius:16px;
  }
  [data-theme="dark"]{
    --bg:#121214; --card:#1c1d22; --text:#f2f3f5;
    --muted:#9699a6; --green:#34c759;
    --shadow:0 1px 8px rgba(0,0,0,.45);
  }
  [data-theme="dark"] .header{background:#1c1d22;border-bottom:1px solid #2d2f36;box-shadow:0 2px 10px rgba(0,0,0,.5);}
  [data-theme="dark"] .nav{background:#1c1d22;border-top:1px solid #2d2f36;}
  [data-theme="dark"] .nav button{color:#9699a6;}
  [data-theme="dark"] .nav button.active{color:var(--primary);}
  [data-theme="dark"] .mode-switch{background:#262830!important;border-color:#383b45!important;}
  [data-theme="dark"] .mode-switch button{color:#9699a6;}
  [data-theme="dark"] .mode-switch button.active{background:var(--primary)!important;color:#fff!important;}
  [data-theme="dark"] .searchbar{background:#262830!important;border-color:#383b45!important;}
  [data-theme="dark"] .searchbar input{color:#f2f3f5!important;}
  [data-theme="dark"] .searchbar input::placeholder{color:#8a8d98!important;}
  [data-theme="dark"] .home-delivery-loc{background:#1c1d22!important;border-color:#383b45!important;}
  [data-theme="dark"] .chip{background:#262830;border-color:#383b45;color:#f2f3f5;}
  [data-theme="dark"] .chip.active{background:var(--primary);color:#fff;border-color:var(--primary);}
  [data-theme="dark"] .card, [data-theme="dark"] .sw-card{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .modal-box{background:#1c1d22!important;color:#f2f3f5!important;}
  [data-theme="dark"] .suggest{background:#1c1d22!important;border:1px solid #383b45;color:#f2f3f5!important;}
  [data-theme="dark"] .suggest .sg{border-bottom-color:#2d2f36!important;color:#f2f3f5!important;}
  [data-theme="dark"] .rst{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .item{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] #home-sort{background:#262830;border-color:#383b45;color:#f2f3f5;}
  [data-theme="dark"] input[type="text"], [data-theme="dark"] input[type="tel"], [data-theme="dark"] select, [data-theme="dark"] textarea{background:#262830!important;border-color:#383b45!important;color:#f2f3f5!important;}
  [data-theme="dark"] input[readonly]{background:#202127!important;color:#9699a6!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .btn-pill.ghost{background:#262830!important;border-color:#383b45!important;color:#f2f3f5!important;}

  /* Dark Theme: Restaurant Details Page (.rst-page) */
  [data-theme="dark"] .rst-page,
  [data-theme="dark"] .rst-body{background:#121214!important;}
  [data-theme="dark"] .sw-rst-topbar{background:#1c1d22!important;border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-rst-back-btn,
  [data-theme="dark"] .sw-rst-top-icon{background:#262830!important;color:#f2f3f5!important;}
  [data-theme="dark"] .sw-rst-top-title{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-rst-card{background:#1c1d22!important;border-color:#2d2f36!important;box-shadow:0 4px 18px rgba(0,0,0,0.4)!important;}
  [data-theme="dark"] .sw-rst-card-title{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-rst-card-meta{color:#9699a6!important;}
  [data-theme="dark"] .sw-rst-offers-box{border-top-color:#2d2f36!important;}
  [data-theme="dark"] .sw-rst-offer-text .main,
  [data-theme="dark"] .sw-rst-offer-title{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-rst-offer-text .sub,
  [data-theme="dark"] .sw-rst-offer-sub{color:#9699a6!important;}
  [data-theme="dark"] .sw-rst-offer-pager{background:#262830!important;color:#fc8019!important;}
  [data-theme="dark"] .sw-freebie-banner{background:#241d1a!important;border-color:#553424!important;}
  [data-theme="dark"] .sw-freebie-text .main{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-freebie-text .sub{color:#9699a6!important;}
  [data-theme="dark"] .sw-dish-search-card{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .sw-dish-search-box,
  [data-theme="dark"] .sw-dish-search-input-wrap{background:#262830!important;}
  [data-theme="dark"] .sw-dish-search-box input,
  [data-theme="dark"] .sw-dish-search-input-wrap input{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-dish-search-box input::placeholder,
  [data-theme="dark"] .sw-dish-search-input-wrap input::placeholder{color:#8a8d98!important;}
  [data-theme="dark"] .sw-filter-chip{background:#262830!important;border-color:#383b45!important;color:#f2f3f5!important;}
  [data-theme="dark"] .sw-filter-chip.active{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important;}
  [data-theme="dark"] .sw-cat-section{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .sw-cat-header{background:#1c1d22!important;}
  [data-theme="dark"] .sw-cat-title{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-cat-arrow{background:#262830!important;color:#f2f3f5!important;}
  [data-theme="dark"] .sw-cat-items{border-top-color:#2d2f36!important;}
  [data-theme="dark"] .sw-dish-card{background:#1c1d22!important;border-color:#2d2f36!important;box-shadow:0 2px 8px rgba(0,0,0,0.3)!important;}
  [data-theme="dark"] .sw-dish-img-wrap{background:#262830!important;}
  [data-theme="dark"] .sw-dish-name{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-dish-desc{color:#9699a6!important;}
  [data-theme="dark"] .sw-dish-price{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-dish-price .orig{color:#777!important;}
  [data-theme="dark"] .sw-dish-add-btn{background:#1c1d22!important;border-color:#1ba672!important;color:#1ba672!important;}
  [data-theme="dark"] .sw-dish-add-btn:active{background:#1ba672!important;color:#fff!important;}
  [data-theme="dark"] .sw-dish-stepper{background:#1c1d22!important;border-color:#1ba672!important;}
  [data-theme="dark"] .sw-dish-stepper button{color:#1ba672!important;}
  [data-theme="dark"] .sw-dish-stepper span{color:#1ba672!important;}
  [data-theme="dark"] .sw-floating-menu-btn{background:#262830!important;color:#f2f3f5!important;border:1px solid #383b45!important;}
  [data-theme="dark"] .sw-menu-sheet{background:#1c1d22!important;color:#f2f3f5!important;box-shadow:0 -6px 28px rgba(0,0,0,0.6)!important;}
  [data-theme="dark"] .sw-menu-sheet-head{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-menu-sheet-title{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-menu-sheet-close{background:#262830!important;color:#f2f3f5!important;}
  [data-theme="dark"] .sw-menu-sheet-row{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-menu-sheet-row:active{background:#262830!important;}
  [data-theme="dark"] .sw-menu-sheet-row .cat-name{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-menu-sheet-row .cat-num{background:#262830!important;color:#9699a6!important;}

  /* Dark Theme: Customise Modal */
  [data-theme="dark"] .sw-cust-sheet{background:#1c1d22!important;box-shadow:0 -6px 28px rgba(0,0,0,0.6)!important;}
  [data-theme="dark"] .sw-cust-head{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] #cust-dish-name{color:#f2f3f5!important;}
  [data-theme="dark"] #cust-base-desc{color:#9699a6!important;}
  [data-theme="dark"] .sw-cust-group{background:#262830!important;border-color:#383b45!important;}
  [data-theme="dark"] .sw-cust-group-head{border-bottom-color:#383b45!important;}
  [data-theme="dark"] .sw-cust-group-title{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-cust-group-badge.required{background:rgba(228,77,38,0.2)!important;color:#ff7654!important;}
  [data-theme="dark"] .sw-cust-group-badge.optional{background:#323540!important;color:#9699a6!important;}
  [data-theme="dark"] .sw-cust-option-row{background:#1c1d22!important;border-color:#383b45!important;}
  [data-theme="dark"] .sw-cust-option-row.selected{background:rgba(27,166,114,0.15)!important;border-color:#1ba672!important;}
  [data-theme="dark"] .sw-cust-opt-name{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-cust-opt-price{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-cust-footer{background:#1c1d22!important;border-top-color:#2d2f36!important;}
  [data-theme="dark"] #cust-total-price{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-cust-radio{border-color:#666;}
  [data-theme="dark"] .sw-cust-checkbox{border-color:#666;background:#262830;}
  [data-theme="dark"] .cart-drawer{background:#1c1d22!important;color:#f2f3f5!important;}
  [data-theme="dark"] .cart-head{border-bottom-color:#2d2f36!important;}

  /* Dark Theme: Cart Screen */
  [data-theme="dark"] #screen-cart{background:#121214!important;}
  [data-theme="dark"] .sw-top-bar{background:#1c1d22!important;color:#f2f3f5!important;border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-back-btn{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-top-title h3{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-top-title .sub{color:#9699a6!important;}
  [data-theme="dark"] #cart-empty-view div{background:#1c1d22!important;}
  [data-theme="dark"] #cart-empty-view h3{color:#f2f3f5!important;}
  [data-theme="dark"] #cart-empty-view p{color:#9699a6!important;}
  [data-theme="dark"] .sw-save-banner{background:#162a1c!important;color:#4ade80!important;}
  [data-theme="dark"] .sw-one-strip{background:linear-gradient(135deg,#2b1d1d,#251e1e)!important;border-color:#4a2828!important;}
  [data-theme="dark"] .sw-item{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-item-name{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-item-addon{color:#9699a6!important;}
  [data-theme="dark"] .sw-qty-stepper{background:#262830!important;border-color:#383b45!important;}
  [data-theme="dark"] .sw-qty-stepper button{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-qty-stepper span{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-final-price{color:#f2f3f5!important;}
  [data-theme="dark"] #sw-cooking-note-box{background:#262830!important;color:#f2f3f5!important;border-left-color:var(--primary)!important;}
  [data-theme="dark"] .sw-pills-row{border-top-color:#2d2f36!important;}
  [data-theme="dark"] .sw-pill-btn{background:#262830!important;border-color:#383b45!important;color:#f2f3f5!important;}
  [data-theme="dark"] .sw-pill-btn.danger{background:#2c1b1d!important;border-color:#522226!important;color:#ff6b6b!important;}
  [data-theme="dark"] .sw-savings-row{border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-savings-txt{color:#f2f3f5!important;}

  /* Dark Theme: Delivery Address Card in Cart */
  [data-theme="dark"] #sw-cart-del-addr-card{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] #sw-cart-del-addr-card b{color:#9699a6!important;}
  [data-theme="dark"] #sw-cart-addr-label{background:#262830!important;color:#f2f3f5!important;}
  [data-theme="dark"] #sw-cart-addr-contact-row{color:#4ade80!important;}
  [data-theme="dark"] #sw-cart-addr-full{color:#f2f3f5!important;}
  [data-theme="dark"] #sw-cart-addr-landmark-row{color:#9699a6!important;}

  /* Dark Theme: Delivery Option Card */
  [data-theme="dark"] #sw-del-card{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .sw-del-tabs{background:#262830!important;}
  [data-theme="dark"] .sw-del-tab{color:#9699a6!important;}
  [data-theme="dark"] .sw-del-tab.active{background:var(--primary)!important;color:#fff!important;}
  [data-theme="dark"] .sw-del-option{background:#262830!important;border-color:#383b45!important;}
  [data-theme="dark"] .sw-del-option.selected{background:rgba(255,82,0,0.15)!important;border-color:var(--primary)!important;}
  [data-theme="dark"] .sw-del-option b{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-del-option div{color:#9699a6!important;}

  /* Dark Theme: Bill Accordion Card & Floating Bottom Bar */
  [data-theme="dark"] #cart-bill-card{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .sw-bill-acc-head div{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-bill-details{border-top-color:#2d2f36!important;}
  [data-theme="dark"] #taxes-details-box{background:#262830!important;border-color:#383b45!important;color:#f2f3f5!important;}
  [data-theme="dark"] .bill .row{color:#9699a6!important;}
  [data-theme="dark"] .bill .row span{color:inherit;}
  [data-theme="dark"] .bill .row.total{color:#f2f3f5!important;border-top-color:#2d2f36!important;}
  [data-theme="dark"] .bill .row.total span{color:#f2f3f5!important;}
  [data-theme="dark"] .bill .row .disc{color:#4ade80!important;}
  [data-theme="dark"] .sw-bottom-bar{background:#1c1d22!important;border-top-color:#2d2f36!important;box-shadow:0 -4px 18px rgba(0,0,0,0.5)!important;}
  [data-theme="dark"] .sw-bottom-to-pay{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-bottom-link{color:#4ade80!important;}

  /* Dark Theme: Search Page Dishes */
  [data-theme="dark"] .sw-search-dish-card{background:#1c1d22!important;border-bottom-color:#2d2f36!important;}
  [data-theme="dark"] .sw-search-dish-card:hover{background:#262830!important;}
  [data-theme="dark"] .sw-search-dish-name{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-search-dish-price{color:#f2f3f5!important;}
  [data-theme="dark"] .sw-search-dish-desc{color:#9699a6!important;}
  [data-theme="dark"] .sw-search-dish-rest{background:#261d18!important;}
  [data-theme="dark"] .sw-search-dish-add-btn{background:#1c1d22!important;border-color:#383b45!important;color:#1ba672!important;}
  [data-theme="dark"] .sw-search-dish-stepper{background:#1c1d22!important;border-color:#1ba672!important;}
  [data-theme="dark"] .sw-search-tab{background:#262830!important;border-color:#383b45!important;color:#9699a6!important;}
  [data-theme="dark"] .sw-search-tab.active{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important;}

  /* Dark Theme: Addresses Screen & Modals */
  [data-theme="dark"] .addr{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] .addr h4{color:#f2f3f5!important;}
  [data-theme="dark"] .addr p{color:#f2f3f5!important;}
  [data-theme="dark"] .addr .actions span{color:var(--primary)!important;}
  [data-theme="dark"] .addr .actions span.del{color:#ff6b6b!important;}
  [data-theme="dark"] .addr-contact-badge{background:#182e1f!important;border-color:#285235!important;color:#4ade80!important;}
  [data-theme="dark"] #addr-share-link{background:#262830!important;border-color:#383b45!important;color:#f2f3f5!important;}
  [data-theme="dark"] .addr-manual-card{background:#1c1d22!important;border-color:#2d2f36!important;}
  [data-theme="dark"] #loc-selector-modal .modal-box{background:#1c1d22!important;color:#f2f3f5!important;}
  [data-theme="dark"] #loc-selector-modal button[onclick*="closeLocSelectorModal"]{background:#262830!important;color:#f2f3f5!important;}
  [data-theme="dark"] .loc-quick-btn{background:#262830!important;border-color:#383b45!important;}
  [data-theme="dark"] .loc-quick-btn b{color:#f2f3f5!important;}
  [data-theme="dark"] .loc-selector-item{background:#1c1d22!important;border-color:#383b45!important;}
  [data-theme="dark"] .loc-selector-item.current{background:rgba(255,82,0,0.15)!important;border-color:var(--primary)!important;}
  [data-theme="dark"] .loc-selector-item .sub-text{color:#9699a6!important;}
  [data-theme="dark"] .coup-row{border-bottom-color:#2d2f36!important;}
  *{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
  body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);transition:background .2s, color .2s;}
  .app{max-width:480px;margin:0 auto;position:relative;min-height:100vh;background:var(--bg);}
  .header{position:sticky;top:0;z-index:20;background:var(--primary);color:#fff;padding:10px 14px;box-shadow:0 2px 10px rgba(255,82,0,.25);}
  .searchbar{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #e2e4e8;border-radius:12px;padding:9px 12px;font-size:13px;color:#1c1c1c;}
  .searchbar input{flex:1;background:none;border:none;outline:none;color:#1c1c1c;font-size:13.5px;font-family:inherit;}
  .searchbar input::placeholder{color:#8a8d98;}
  .avatar{width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--primary);font-weight:700;cursor:pointer;user-select:none;flex:0 0 34px;}
  .mode-switch{display:flex;align-items:center;background:rgba(255,255,255,.24);border:1.5px solid rgba(255,255,255,.32);border-radius:24px;padding:3.5px;flex:0 0 auto;box-shadow:inset 0 1px 3px rgba(0,0,0,0.06);}
  .mode-switch button{border:none;background:transparent;color:#fff;font-size:13.5px;font-weight:800;padding:7px 18px;border-radius:20px;cursor:pointer;opacity:.85;font-family:inherit;transition:all .18s;letter-spacing:0.2px;}
  .mode-switch button.active{background:#fff;color:var(--primary);opacity:1;box-shadow:0 2px 8px rgba(0,0,0,.15);font-weight:900;}
  .screen{display:none;padding-bottom:calc(var(--nav-h) + 20px);animation:fade .25s ease;}
  .screen.active{display:block;}
  @keyframes fade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
  @keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
  .card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);margin:12px;overflow:hidden;}
  .sec-title{font-size:15px;font-weight:700;margin:16px 14px 4px;}
  .home-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:12px;}
  .home-top .sec-title{margin-right:0;}
  #home-sort{font-family:inherit;font-size:11px;font-weight:600;color:var(--text);background:#fff;border:1px solid #e2e2e2;border-radius:20px;padding:6px 8px;max-width:152px;outline:none;}
  .banners{display:flex;gap:10px;overflow-x:auto;padding:12px;scroll-snap-type:x mandatory;}
  .banner{min-width:75%;scroll-snap-align:start;border-radius:14px;padding:18px;color:#fff;font-weight:700;background-size:cover;}
  .banner small{display:block;font-weight:400;font-size:12px;margin-top:4px;opacity:.9;}
  .chips{display:flex;gap:8px;overflow-x:auto;padding:4px 12px 8px;}
  .chip{white-space:nowrap;background:var(--card);border:1px solid #e6e6e6;border-radius:20px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;}
  .ch-tag{display:inline-block;font-size:9px;font-weight:800;letter-spacing:.4px;padding:2px 5px;border-radius:4px;vertical-align:middle;}
  .ch-toing{background:#6a3de8;color:#fff;}
  .ch-swiggy{background:#ff5200;color:#fff;}
  .ch-line{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:11px;color:var(--muted);font-weight:600;}
  .chip.active{background:var(--primary);color:#fff;border-color:var(--primary);}
  .rst{display:flex;gap:12px;padding:14px;border-bottom:1px solid #f0f0f0;cursor:pointer;}
  .rst:last-child{border-bottom:none;}
  .rst-img-wrap{position:relative;width:95px;height:95px;border-radius:14px;overflow:hidden;flex:0 0 95px;background:#eee;}
  .rst-img-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
  .rst-img-offer-tag{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top, rgba(2,6,12,0.92) 0%, rgba(2,6,12,0.6) 70%, transparent 100%);color:#fff;font-size:10px;font-weight:900;padding:12px 6px 4px;line-height:1.15;text-align:left;text-transform:uppercase;letter-spacing:0.2px;}
  .rst .info{flex:1;min-width:0;}
  .rst h3{font-size:15px;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .rst .meta{font-size:12px;color:var(--muted);line-height:1.5;}
  .rst .off{color:var(--primary);font-size:11.5px;font-weight:700;margin-top:6px;display:flex;align-items:center;gap:4px;}
  .rst .off-tag{background:#ffebe6;color:#e23744;border-radius:4px;padding:1px 5px;font-size:9.5px;font-weight:900;}
  .rating{display:inline-flex;align-items:center;gap:4px;background:var(--green);color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:2px 6px;}
  .empty{text-align:center;color:var(--muted);padding:30px 16px;font-size:14px;}
  .addr{display:flex;gap:12px;padding:16px;align-items:flex-start;}
  .addr .icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff0e8;color:var(--primary);}
  .addr h4{font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
  .addr .tag{font-size:10px;background:var(--primary);color:#fff;border-radius:4px;padding:2px 6px;font-weight:600;}
  .addr p{font-size:12.5px;color:var(--muted);margin-top:3px;}
  .addr .actions{margin-top:8px;display:flex;gap:14px;font-size:12px;font-weight:600;color:var(--primary);}
  .addr .actions .del{color:#d0021b;}
  .btn-pill{display:block;margin:12px;text-align:center;background:var(--primary);color:#fff;border:none;border-radius:12px;padding:13px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;}
  .btn-pill:disabled{opacity:.4;cursor:not-allowed;}
  .cart-head{display:flex;gap:12px;padding:14px;align-items:center;background:linear-gradient(135deg,#fff5ee,var(--card));}
  .cart-head img{width:56px;height:56px;border-radius:10px;object-fit:cover;}
  .cart-head h3{font-size:15px;}
  .cart-head small{color:var(--muted);font-size:12px;}
  .item{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #f0f0f0;align-items:center;}
  .item .nm{font-size:14px;font-weight:600;}
  .item .addon{font-size:11.5px;color:var(--muted);margin-top:2px;}
  .qty{display:flex;align-items:center;gap:10px;border:1px solid var(--primary);border-radius:8px;padding:3px 8px;color:var(--primary);font-weight:700;font-size:14px;}
  .qty button{border:none;background:none;font-size:16px;color:var(--primary);cursor:pointer;font-weight:700;}
  .coupon{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px dashed var(--green);border-radius:12px;margin:12px;background:#f6fff9;cursor:pointer;}
  .coupon .code{font-weight:700;color:var(--green);font-size:14px;}
  .coupon .save{font-size:12px;color:var(--muted);}
  .bill{padding:4px 14px 14px;}
  .bill .row{display:flex;justify-content:space-between;font-size:13px;padding:5px 0;color:var(--muted);}
  .bill .row.total{font-size:15px;font-weight:700;color:var(--text);border-top:1px dashed #ddd;margin-top:8px;padding-top:10px;}
  .bill .row .disc{color:var(--green);font-weight:600;}
  .prof-hero2{background:linear-gradient(135deg,#ff5200,#ff7434 60%,#ff9a5e);color:#fff;padding:22px 18px 18px;border-radius:0 0 24px 24px;box-shadow:0 8px 24px rgba(255,82,0,.28);}
  .prof-head{display:flex;align-items:center;gap:14px;}
  .prof-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:rgba(255,255,255,.96);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;box-shadow:0 4px 12px rgba(0,0,0,.14);}
  .prof-meta{flex:1;min-width:0;}
  .prof-meta h2{font-size:19px;font-weight:800;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .prof-meta .ph{font-size:12.5px;opacity:.92;margin-top:2px;}
  .prof-badge{display:inline-flex;align-items:center;gap:4px;margin-top:7px;font-size:10px;font-weight:700;letter-spacing:.3px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.36);padding:3px 9px;border-radius:20px;}
  .prof-chips{display:flex;gap:8px;margin-top:16px;}
  .prof-chips>div{flex:1;min-width:0;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:9px 8px;text-align:center;}
  .prof-chips b{display:block;font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .prof-chips small{font-size:9px;opacity:.82;letter-spacing:.4px;text-transform:uppercase;}
  .prof-sec{font-size:10.5px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;color:var(--muted);margin:18px 22px 7px;}
  .prof-list{margin:0 12px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;}
  .prof-row{display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;border:none;border-bottom:1px solid #f2f2f2;background:none;text-align:left;font-family:inherit;font-size:13.5px;color:var(--text);cursor:default;}
  .prof-row:last-child{border-bottom:none;}
  button.prof-row{cursor:pointer;}
  button.prof-row:active{background:#fafafa;}
  .prof-ico{width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#fff3ec;color:var(--primary);display:flex;align-items:center;justify-content:center;}
  .prof-row .txt{flex:1;min-width:0;}
  .prof-row .txt b{display:block;font-size:13.5px;font-weight:650;}
  .prof-row .txt small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .prof-row .arrow{color:#c3c5cc;font-size:19px;line-height:1;}
  .prof-row.danger .prof-ico{background:#ffecec;color:#d0021b;}
  .prof-row.danger .txt b{color:#d0021b;}
  .prof-acc-badge{font-size:9px;font-weight:800;color:var(--green);background:#e9f7ef;border-radius:5px;padding:2px 6px;margin-left:6px;vertical-align:middle;letter-spacing:.3px;}
  .prof-switch{font-size:11px;font-weight:800;color:var(--primary);border:1px solid #ffd6c2;background:#fff6f1;border-radius:20px;padding:5px 12px;cursor:pointer;font-family:inherit;}
  .prof-check{color:var(--green);font-size:16px;font-weight:800;}
  .prof-foot{text-align:center;color:#a7a9b2;font-size:10.5px;padding:18px 10px 6px;}
  .od-card{background:#fff;border:1px solid #f0f0f0;border-radius:14px;padding:12px 14px;margin-top:10px;}
  .od-h{font-size:10.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin-bottom:8px;}
  .od-item{display:flex;gap:10px;padding:7px 0;border-bottom:1px dashed #f2f2f2;font-size:13px;align-items:flex-start;}
  .od-item:last-child{border-bottom:none;}
  .od-veg{width:11px;height:11px;border:1.5px solid var(--green);border-radius:2px;margin-top:3px;flex:0 0 11px;position:relative;}
  .od-veg:after{content:"";position:absolute;inset:1.5px;background:var(--green);border-radius:50%;}
  .od-nonveg{border-color:#b3261e;}
  .od-nonveg:after{background:#b3261e;}
  .od-item .nm{flex:1;min-width:0;}
  .od-item .nm small{display:block;color:var(--muted);font-size:11px;margin-top:2px;}
  .od-row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:3px 0;color:var(--muted);}
  .od-row b{color:var(--text);font-weight:600;}
  .od-total{display:flex;justify-content:space-between;font-size:14px;font-weight:800;border-top:1px dashed #ddd;margin-top:7px;padding-top:8px;}
  .od-muted{font-size:11.5px;color:var(--muted);line-height:1.6;}
  .row-line{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #f0f0f0;font-size:14px;cursor:pointer;}
  .row-line:last-child{border-bottom:none;}
  .row-line .lbl{display:flex;align-items:center;gap:12px;}
  .row-line svg{color:var(--primary);}
  button.row-line,button.coupon{border:none;background:none;width:100%;text-align:left;font-family:inherit;font-size:14px;color:var(--text);}
  button.coupon{display:flex;}
  .nav{position:fixed;bottom:0;left:0;right:0;height:var(--nav-h);background:var(--card);display:flex;border-top:1px solid #eee;z-index:30;box-shadow:0 -2px 12px rgba(0,0,0,.06);}
#order-live-map{position:relative;z-index:0;isolation:isolate;}
  .nav .wrap{max-width:480px;margin:0 auto;display:flex;width:100%;}
  .nav button{flex:1;border:none;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer;transition:color .15s;font-family:inherit;}
  .nav button.active{color:var(--primary);}
  .nav svg{width:24px;height:24px;}
  .badge{position:relative;}
  .badge::after{content:attr(data-count);position:absolute;top:-2px;right:-10px;background:var(--primary);color:#fff;font-size:10px;font-weight:700;border-radius:10px;padding:1px 5px;}
  .toast{position:fixed;bottom:calc(var(--nav-h) + 16px);left:50%;transform:translateX(-50%) translateY(20px);background:#1c1c1c;color:#fff;padding:10px 18px;border-radius:24px;font-size:13px;opacity:0;pointer-events:none;transition:.25s;z-index:999999;white-space:nowrap;}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
  /* Modal */
  .modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:flex-end;justify-content:center;z-index:100;}
  #replace-cart-modal{z-index:9999!important;}
  [data-theme="dark"] #replace-cart-modal .modal-box{background:#1c1d22!important;color:#f2f3f5!important;}
  [data-theme="dark"] #replace-cart-modal h3{color:#f2f3f5!important;}
  [data-theme="dark"] #replace-cart-modal p{color:#9699a6!important;}
  .modal.show{display:flex;}
  .modal-box{background:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;padding:20px 18px 28px;animation:up .25s ease;}
  @keyframes up{from{transform:translateY(40px);opacity:0;}to{transform:none;opacity:1;}}
  .modal-title{font-size:17px;font-weight:700;margin-bottom:14px;}
  .modal-box label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:12px 0 5px;}
  .modal-box input,.modal-box select{width:100%;padding:12px;border:1.5px solid #e2e2e2;border-radius:10px;font-size:14px;font-family:inherit;outline:none;background:#fafafa;}
  .modal-box textarea{width:100%;min-height:120px;padding:12px;border:1.5px solid #e2e2e2;border-radius:10px;font-size:12px;font-family:ui-monospace,Consolas,monospace;outline:none;background:#fafafa;resize:vertical;}
  .modal-box textarea:focus{border-color:var(--primary);background:#fff;}
  .modal-box input:focus,.modal-box select:focus{border-color:var(--primary);background:#fff;}
  .modal-actions{display:flex;gap:10px;margin-top:20px;}
  .modal-actions .btn-pill{margin:0;flex:1;}
  .modal-actions .ghost{background:#fff;color:var(--primary);border:1.5px solid var(--primary);}
  .login-logo{font-size:40px;text-align:center;margin-bottom:8px;}
  .modal-box h2{text-align:center;font-size:20px;}
  .modal-box .sub{text-align:center;color:var(--muted);font-size:13px;margin:8px 0 16px;}
  .login-foot{text-align:center;font-size:11px;color:var(--muted);margin-top:16px;}
  .order-success{text-align:center;padding:30px 20px;}
  .order-success .tick{width:64px;height:64px;border-radius:50%;background:#e6f7ee;color:var(--green);display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:30px;}
  .order-success h2{font-size:18px;color:var(--green);}
  .order-success p{color:var(--muted);font-size:13px;margin-top:8px;}
  .order-success .oid{background:#f5f5f5;border-radius:8px;padding:8px;margin-top:16px;font-weight:700;color:var(--text);}
  #map{width:100%;height:210px;background:#e8ecef;z-index:1;}
  .map-card{padding:0;position:relative;}
  #loc-confirm{position:absolute;left:10px;right:10px;bottom:10px;background:#fff;border-radius:12px;box-shadow:0 3px 16px rgba(0,0,0,.28);padding:10px;z-index:6;display:none;}
  .lc-info{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text);margin-bottom:9px;}
  .loc-row{display:flex;align-items:center;gap:8px;background:var(--card);margin:12px 12px 0;padding:12px 14px;border-radius:12px;box-shadow:var(--shadow);cursor:pointer;font-weight:600;font-size:13.5px;color:var(--text);}
  button.loc-row{border:none;width:calc(100% - 24px);text-align:left;font-family:inherit;}
  .loc-row svg{color:var(--primary);}
  .loc-row .chev{margin-left:auto;color:var(--muted);font-size:14px;}
  .suggest-wrap{flex:1;position:relative;}
  .suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.22);z-index:60;overflow:hidden;color:var(--text);display:none;}
  .suggest .sg{padding:10px 14px;font-size:13px;border-bottom:1px solid #f0f0f0;cursor:pointer;display:flex;justify-content:space-between;gap:8px;align-items:center;}
  .suggest .sg:last-child{border-bottom:none;}
  .suggest .sg b{font-weight:700;}
  .suggest .sg small{color:var(--muted);white-space:nowrap;}
  #use-loc-btn:disabled{opacity:.4;cursor:not-allowed;}
  .gps-mini{position:absolute;top:10px;right:10px;z-index:7;background:#fff;border:1px solid #e2e2e2;color:var(--primary);font-weight:700;font-size:12px;border-radius:20px;padding:7px 12px;cursor:pointer;font-family:inherit;box-shadow:0 1px 6px rgba(0,0,0,.12);}
  .coup-row{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #f0f0f0;}
  .coup-row.disabled{opacity:.45;}
  .coup-code{font-weight:700;font-size:14px;color:var(--text);}
  .coup-desc{font-size:12px;color:var(--muted);margin-top:2px;}
  .coup-cta{white-space:nowrap;background:var(--primary);color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;}
  .coup-cta.applied{background:var(--green);}
  .coup-cta.off{background:transparent;color:var(--muted);font-size:12px;font-weight:600;}
  .map-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #f0f0f0;}
  .map-head .t{font-weight:700;font-size:14px;display:flex;align-items:center;gap:8px;}
  .map-head .t svg{color:var(--primary);}
  .map-btn{display:block;margin:10px;text-align:center;background:#fff;color:var(--primary);border:1.5px solid var(--primary);border-radius:12px;padding:11px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;}
  /* Modern Swiggy Restaurant Page & Menu UI */
  .rst-page {
    position: fixed; inset: 0; background: #f4f5f8; z-index: 70;
    display: none; flex-direction: column; animation: fade .2s ease;
  }
  .rst-page.show { display: flex; }

  /* Top App Bar */
  .sw-rst-topbar {
    position: sticky; top: 0; z-index: 20; background: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid #f0f0f0;
  }
  .sw-rst-back-btn {
    border: none; background: #f2f4f8; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #1c1c1c; cursor: pointer;
  }
  .sw-rst-top-title {
    font-size: 14.5px; font-weight: 800; color: #1c1c1c;
    max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .sw-rst-top-act {
    display: flex; align-items: center; gap: 8px;
  }
  .sw-rst-top-icon {
    border: none; background: #f2f4f8; border-radius: 50%;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer; color: #555;
  }

  .rst-body {
    flex: 1; overflow-y: auto; padding-bottom: 100px;
    background: #f4f5f8; -webkit-overflow-scrolling: touch;
  }

  /* Restaurant Info Card */
  .sw-rst-card {
    background: #fff; border-radius: 18px; margin: 12px 12px 12px;
    padding: 16px; box-shadow: 0 4px 18px rgba(0,0,0,0.05); border: 1px solid #eaeaea;
  }
  .sw-rst-card-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  }
  .sw-rst-card-title {
    font-size: 20px; font-weight: 800; color: #1c1c1c; line-height: 1.25; margin-bottom: 4px;
  }
  .sw-rst-card-meta {
    font-size: 12.5px; color: #686b78; font-weight: 500;
  }
  .sw-rst-rating-pill {
    background: #24963f; color: #fff; border-radius: 8px;
    padding: 4px 8px; font-size: 12px; font-weight: 800; text-align: center;
    box-shadow: 0 2px 6px rgba(36,150,63,0.3); flex-shrink: 0; min-width: 50px;
  }
  .sw-rst-rating-pill .rating-count {
    display: block; font-size: 9.5px; font-weight: 600; opacity: 0.9; margin-top: 1px;
  }

  /* Offers Carousel inside Restaurant Card */
  .sw-rst-offers-box {
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e4e4e4;
    display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
  }
  .sw-rst-offer-item {
    display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  }
  .sw-rst-offer-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff2e8; color: #fc8019; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0;
  }
  .sw-rst-offer-texts {
    min-width: 0; flex: 1;
  }
  .sw-rst-offer-title {
    font-size: 13px; font-weight: 800; color: #282c3f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sw-rst-offer-sub {
    font-size: 11px; color: #7e808c; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sw-rst-offer-pager {
    font-size: 11px; font-weight: 700; color: #fc8019; background: #fff5ec;
    border-radius: 12px; padding: 2px 8px; flex-shrink: 0;
  }

  /* Free item nudge banner */
  .sw-freebie-banner {
    background: #fff8f5; border: 1px dashed #ffd4c0; border-radius: 14px;
    margin: 0 12px 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  }
  .sw-freebie-txt {
    flex: 1; font-size: 12px; color: #b24a00; line-height: 1.35;
  }
  .sw-freebie-txt b { color: #d04b00; }

  /* In-Restaurant Search & Filter Bar */
  .sw-dish-search-card {
    background: #fff; margin: 0 12px 12px; border-radius: 16px;
    padding: 10px 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #ebebeb;
  }
  .sw-dish-search-input-wrap {
    display: flex; align-items: center; background: #f2f3f7; border-radius: 22px;
    padding: 8px 14px; gap: 8px;
  }
  .sw-dish-search-input-wrap input {
    border: none; background: transparent; outline: none; width: 100%;
    font-size: 13.5px; font-family: inherit; color: #1c1c1c; font-weight: 600;
  }
  .sw-dish-search-clear {
    border: none; background: #ddd; color: #555; border-radius: 50%;
    width: 20px; height: 20px; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  }

  /* Quick Filter Chips */
  .sw-dish-filter-row {
    display: flex; gap: 8px; margin-top: 10px; overflow-x: auto;
    padding-bottom: 2px; -webkit-overflow-scrolling: touch;
  }
  .sw-filter-chip {
    border: 1px solid #e2e2e7; background: #fff; border-radius: 16px;
    padding: 5px 12px; font-size: 12px; font-weight: 700; color: #494c5f;
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
    transition: all .15s ease;
  }
  .sw-filter-chip.active {
    background: #02060c; color: #fff; border-color: #02060c;
  }
  .sw-filter-chip .dot {
    width: 8px; height: 8px; border-radius: 2px;
  }
  .sw-filter-chip .dot.veg { background: #0e8735; }
  .sw-filter-chip .dot.nv { background: #e43b4f; }

  /* Category Section */
  .sw-cat-section {
    background: #fff; margin: 0 12px 12px; border-radius: 16px;
    overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #ebebeb;
    transition: all .2s ease;
  }
  .sw-cat-section.highlight {
    border-color: #fc8019; box-shadow: 0 0 0 2px rgba(252,128,25,0.25);
  }
  .sw-cat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; cursor: pointer; user-select: none; background: #fff;
  }
  .sw-cat-title {
    font-size: 16px; font-weight: 800; color: #1c1c1c; display: flex; align-items: center; gap: 6px;
  }
  .sw-cat-count {
    color: #888; font-size: 14px; font-weight: 600;
  }
  .sw-cat-arrow {
    width: 28px; height: 28px; border-radius: 50%; background: #f4f5f8;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #555; transition: transform .25s ease;
  }
  .sw-cat-section.collapsed .sw-cat-arrow {
    transform: rotate(180deg);
  }
  .sw-cat-items {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    padding: 6px 12px 14px; border-top: 1px solid #f6f6f6;
  }
  .sw-cat-section.collapsed .sw-cat-items {
    display: none;
  }

  /* Dish Grid Card */
  .sw-dish-card {
    background: #fff; border-radius: 14px; border: 1px solid #f0f0f4;
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  }
  .sw-dish-img-wrap {
    position: relative; width: 100%; height: 125px; background: #f2f2f5;
  }
  .sw-dish-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .sw-dish-badges {
    position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; gap: 4px; z-index: 2;
  }
  .sw-dish-veg-tag {
    width: 14px; height: 14px; border: 1.5px solid #0e8735; background: #fff;
    border-radius: 3px; display: flex; align-items: center; justify-content: center;
  }
  .sw-dish-veg-tag.nv { border-color: #d0021b; }
  .sw-dish-veg-tag .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #0e8735;
  }
  .sw-dish-veg-tag.nv .dot { background: #d0021b; }
  .sw-dish-bestseller {
    background: #e95642; color: #fff; font-size: 8.5px; font-weight: 800;
    padding: 2px 5px; border-radius: 4px; text-transform: uppercase;
  }
  .sw-dish-rating-tag {
    position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.72);
    color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
  }

  .sw-dish-content {
    padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1;
  }
  .sw-dish-name {
    font-size: 12.5px; font-weight: 800; color: #1c1c1c; line-height: 1.3;
    height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .sw-dish-desc {
    font-size: 10.5px; color: #7e808c; margin-top: 2px; line-height: 1.25;
    height: 26px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .sw-dish-price-row {
    margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 4px;
  }
  .sw-dish-price {
    font-size: 13.5px; font-weight: 800; color: #1c1c1c; white-space: nowrap;
  }
  .sw-dish-price .orig {
    font-size: 10px; color: #999; font-weight: 500; text-decoration: line-through; margin-left: 3px;
  }

  /* Dish Add Button & Quantity Stepper */
  .sw-dish-btn-box {
    position: relative; flex-shrink: 0;
  }
  .sw-dish-add-btn {
    border: 1px solid #1ba672; background: #fff; color: #1ba672;
    font-size: 11.5px; font-weight: 800; border-radius: 7px; padding: 5px 14px;
    cursor: pointer; box-shadow: 0 2px 6px rgba(27,166,114,0.15); transition: all .15s ease;
  }
  .sw-dish-add-btn:active { background: #1ba672; color: #fff; }
  .sw-dish-stepper {
    display: inline-flex; align-items: center; border: 1px solid #1ba672;
    background: #fff; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 6px rgba(27,166,114,0.2);
  }
  .sw-dish-stepper button {
    border: none; background: transparent; width: 25px; height: 26px;
    color: #1ba672; font-size: 15px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .sw-dish-stepper button:active { background: #eefbf5; }
  .sw-dish-stepper span {
    font-size: 12px; font-weight: 800; color: #1ba672; min-width: 14px; text-align: center;
  }

  /* Floating "MENU" Button */
  .sw-floating-menu-btn {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: #02060c; color: #fff; border: none; border-radius: 25px;
    padding: 10px 18px; font-size: 12.5px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; gap: 8px; z-index: 60;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35); letter-spacing: 0.5px;
  }
  .sw-floating-menu-btn:active { transform: translateX(-50%) scale(0.96); }

  /* Bottom Sheet Drawer for Categories */
  .sw-menu-sheet-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 85;
    display: none; animation: fadeIn .2s ease;
  }
  .sw-menu-sheet-backdrop.show { display: block; }
  .sw-menu-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
    background: #fff; border-radius: 24px 24px 0 0; z-index: 90;
    max-height: 75vh; display: flex; flex-direction: column; box-shadow: 0 -6px 28px rgba(0,0,0,0.25);
    transform: translateY(100%); transition: transform .28s cubic-bezier(0.1, 0.9, 0.2, 1);
  }
  .sw-menu-sheet.show { transform: translateY(0); }
  .sw-menu-sheet-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
  }
  .sw-menu-sheet-title {
    font-size: 17px; font-weight: 800; color: #1c1c1c;
  }
  .sw-menu-sheet-close {
    border: none; background: #f2f3f7; border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; cursor: pointer;
  }
  .sw-menu-sheet-list {
    flex: 1; overflow-y: auto; padding: 10px 16px 24px; -webkit-overflow-scrolling: touch;
  }
  .sw-menu-sheet-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 12px; border-bottom: 1px solid #f6f6f9; cursor: pointer;
    border-radius: 10px; transition: background .15s ease;
  }
  .sw-menu-sheet-row:active { background: #f4f6fa; }
  .sw-menu-sheet-row .cat-name {
    font-size: 14.5px; font-weight: 700; color: #282c3f;
  }
  .sw-menu-sheet-row .cat-num {
    font-size: 13px; font-weight: 800; color: #7e808c; background: #f2f3f7;
    border-radius: 12px; padding: 2px 8px;
  }

  /* Customise Bottom Sheet Modal */
  .sw-cust-backdrop {
    position: fixed; inset: 0; background: rgba(2, 6, 12, 0.6); z-index: 92;
    display: none; animation: fadeIn .2s ease;
  }
  .sw-cust-backdrop.show { display: block; }
  .sw-cust-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
    background: #fff; border-radius: 24px 24px 0 0; z-index: 93;
    max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 -6px 28px rgba(0,0,0,0.3);
    transform: translateY(100%); transition: transform .28s cubic-bezier(0.1, 0.9, 0.2, 1);
  }
  .sw-cust-sheet.show { transform: translateY(0); }
  .sw-cust-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 16px 20px 14px; border-bottom: 1px solid #f0f0f4;
  }
  .sw-cust-body {
    flex: 1; overflow-y: auto; padding: 14px 18px 24px;
    -webkit-overflow-scrolling: touch;
  }
  .sw-cust-group {
    margin-bottom: 18px;
    background: #fafafc; border-radius: 14px; padding: 12px 14px;
    border: 1px solid #ececf2;
  }
  .sw-cust-group-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px dashed #e2e2ec;
  }
  .sw-cust-group-title {
    font-size: 14px; font-weight: 800; color: #1c1c1c;
  }
  .sw-cust-group-badge {
    font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.4px;
  }
  .sw-cust-group-badge.required { background: #ffeae6; color: #e44d26; }
  .sw-cust-group-badge.optional { background: #eef2f8; color: #52637a; }
  .sw-cust-options-list {
    display: flex; flex-direction: column; gap: 8px;
  }
  .sw-cust-option-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; border: 1.5px solid #e7e7ee; border-radius: 10px;
    padding: 10px 12px; cursor: pointer; transition: all .15s ease;
    user-select: none;
  }
  .sw-cust-option-row.selected {
    border-color: #1ba672; background: #f6fcf4;
  }
  .sw-cust-opt-left {
    display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1;
  }
  .sw-cust-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .sw-cust-radio.checked {
    border-color: #1ba672;
  }
  .sw-cust-radio.checked::after {
    content: ''; width: 9px; height: 9px; background: #1ba672; border-radius: 50%;
  }
  .sw-cust-checkbox {
    width: 18px; height: 18px; border-radius: 4px; border: 2px solid #ccc;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 12px; font-weight: 900; color: transparent;
  }
  .sw-cust-checkbox.checked {
    border-color: #1ba672; background: #1ba672; color: #fff;
  }
  .sw-cust-opt-info {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  }
  .sw-cust-opt-name {
    font-size: 13px; font-weight: 700; color: #282c3f;
  }
  .sw-cust-opt-badge {
    font-size: 10px; font-weight: 800; background: #e9f7ea; color: #1ba672;
    padding: 2px 6px; border-radius: 4px;
  }
  .sw-cust-opt-price {
    font-size: 13px; font-weight: 800; color: #282c3f; margin-left: 8px; flex-shrink: 0;
  }
  .sw-cust-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-top: 1px solid #f0f0f4; background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
  }
  .sw-cust-total-box {
    display: flex; flex-direction: column;
  }
  .sw-cust-add-btn {
    background: #1ba672; color: #fff; font-size: 14px; font-weight: 800;
    border: none; border-radius: 12px; padding: 12px 24px; cursor: pointer;
    box-shadow: 0 3px 10px rgba(27,166,114,0.35); transition: transform .1s;
  }
  .sw-cust-add-btn:active { transform: scale(0.97); }

  /* Dish card Customise button styling */
  .sw-dish-add-btn.has-custom {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3px 10px; line-height: 1.1; min-height: 32px;
  }
  .sw-custom-badge {
    font-size: 8px; font-weight: 800; color: #1ba672; letter-spacing: 0.3px;
    margin-top: 1px;
  }
  .sw-dish-custom-hint {
    font-size: 9px; font-weight: 700; color: #1ba672; text-align: center;
    margin-top: 2px;
  }
  .sw-search-dish-add-btn.has-custom {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3px 10px; line-height: 1.1; min-height: 32px;
  }

  .rs-empty{text-align:center;color:var(--muted);padding:30px;font-size:14px;}
  .cart-bar{position:sticky;bottom:10px;margin:0 12px 14px;z-index:55;}
  .cart-btn{width:100%;display:flex;align-items:center;gap:10px;background:var(--green);color:#fff;border:none;border-radius:12px;padding:13px 16px;font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 4px 14px rgba(46,158,91,.4);font-family:inherit;}
  .cart-btn .chev{margin-left:auto;}
  .cart-drawer{position:fixed;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -4px 24px rgba(0,0,0,.25);z-index:80;display:none;max-height:70vh;flex-direction:column;}
  .cart-drawer.show{display:flex;}
  .cart-head{display:flex;justify-content:space-between;align-items:center;padding:16px;font-weight:800;font-size:16px;border-bottom:1px solid #f0f0f0;}
  .cart-head span{cursor:pointer;color:var(--muted);}
  #rs-cart-list{overflow-y:auto;padding-bottom:16px;}
  .bill-row{display:flex;justify-content:space-between;padding:10px 16px;font-weight:700;border-top:1px dashed #ddd;margin:8px 12px 0;}

  /* ================= MODERN SWIGGY CART UI ================= */
  .sw-top-bar{background:#fff;padding:12px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #eaecee;position:sticky;top:0;z-index:15;}
  .sw-back-btn{border:none;background:none;font-size:22px;color:#1c1c1c;cursor:pointer;line-height:1;padding:0;}
  .sw-top-title h3{font-size:15px;font-weight:700;color:#1c1c1c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .sw-top-title .sub{font-size:11.5px;color:#686b78;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .sw-save-banner{background:#e8faee;color:#0e7737;font-size:11.5px;font-weight:700;padding:8px 14px;border-radius:20px;margin:10px 14px 2px;display:flex;align-items:center;gap:6px;}
  .sw-card{background:#ffffff;border-radius:18px;margin:12px;padding:14px;box-shadow:0 1px 6px rgba(0,0,0,0.05);border:1px solid #ebedf0;}
  .sw-card-head{font-size:11px;font-weight:800;letter-spacing:0.8px;text-transform:uppercase;color:#8a8d98;margin-bottom:12px;}
  .sw-one-strip{background:linear-gradient(135deg,#fff2f2,#fff7f4);border:1px solid #ffd8d8;border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
  .sw-one-badge{background:var(--primary);color:#fff;font-size:9.5px;font-weight:900;padding:2px 5px;border-radius:4px;letter-spacing:0.4px;}
  .sw-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #f2f3f6;}
  .sw-item:last-child{border-bottom:none;}
  .sw-veg-icon{width:15px;height:15px;border:1.5px solid #2e9e5b;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px;margin-top:2px;}
  .sw-veg-dot{width:6px;height:6px;background:#2e9e5b;border-radius:50%;}
  .sw-nonveg-icon{width:15px;height:15px;border:1.5px solid #d0021b;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px;margin-top:2px;}
  .sw-nonveg-dot{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:7px solid #d0021b;}
  .sw-item-info{flex:1;min-width:0;margin-left:8px;}
  .sw-item-name{font-size:14px;font-weight:600;color:#1c1c1c;line-height:1.3;}
  .sw-item-addon{font-size:11px;color:#8a8d98;margin-top:2px;}
  .sw-item-controls{display:flex;align-items:center;gap:12px;flex:0 0 auto;}
  .sw-qty-stepper{display:flex;align-items:center;gap:10px;border:1px solid #dcdfe4;border-radius:8px;padding:3px 9px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.04);}
  .sw-qty-stepper button{border:none;background:none;font-size:15px;color:#1c1c1c;font-weight:800;cursor:pointer;line-height:1;}
  .sw-qty-stepper span{font-size:13px;font-weight:800;color:#1c1c1c;min-width:12px;text-align:center;}
  .sw-price-col{text-align:right;min-width:54px;}
  .sw-mrp-strike{font-size:11px;color:#999;text-decoration:line-through;line-height:1.2;}
  .sw-final-price{font-size:14px;font-weight:800;color:#1c1c1c;line-height:1.2;}
  .sw-pills-row{display:flex;gap:8px;overflow-x:auto;padding-top:12px;border-top:1px dashed #e8ebf0;margin-top:4px;}
  .sw-pill-btn{border:1px solid #e2e4e8;border-radius:20px;background:#fff;padding:6px 12px;font-size:11.5px;font-weight:700;color:#444;white-space:nowrap;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:4px;}
  .sw-pill-btn.danger{border-color:#ffcdd2;color:#d0021b;background:#fff8f8;}
  .sw-meal-carousel{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory;}
  .sw-meal-card{flex:0 0 110px;background:#f8f9fb;border:1px solid #ebedf0;border-radius:12px;padding:8px;scroll-snap-align:start;text-align:left;position:relative;}
  .sw-meal-img{width:100%;height:70px;border-radius:8px;object-fit:cover;background:#eee;}
  .sw-meal-add{position:absolute;top:12px;right:12px;background:#fff;color:#0ea960;border:1px solid #0ea960;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:14px;cursor:pointer;box-shadow:0 2px 4px rgba(0,0,0,0.15);}
  .sw-meal-name{font-size:11px;font-weight:600;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .sw-meal-price{font-size:11.5px;font-weight:800;color:#1c1c1c;margin-top:2px;}
  .sw-savings-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f2f3f6;cursor:pointer;}
  .sw-savings-row:last-child{border-bottom:none;}
  .sw-savings-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1;}
  .sw-savings-ico{font-size:18px;}
  .sw-savings-txt{font-size:13px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .sw-del-tabs{display:flex;gap:6px;background:#f2f4f8;border-radius:24px;padding:3px;margin-bottom:12px;}
  .sw-del-tab{flex:1;border:none;background:none;padding:7px;border-radius:20px;font-size:12px;font-weight:700;color:#686b78;cursor:pointer;font-family:inherit;}
  .sw-del-tab.active{background:#1c1c1c;color:#fff;}
  .sw-del-option{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #ebedf0;border-radius:12px;margin-bottom:8px;cursor:pointer;}
  .sw-del-option.selected{border-color:#ff5200;background:#fff9f6;}
  .sw-bill-acc-head{display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;}
  .sw-bill-details{display:none;margin-top:12px;padding-top:12px;border-top:1px dashed #e8ebf0;}
  .sw-bill-details.open{display:block;}
  .sw-bottom-bar{position:fixed;bottom:var(--nav-h);left:0;right:0;max-width:480px;margin:0 auto;background:#fff;padding:10px 16px;border-top:1px solid #eaecee;box-shadow:0 -4px 18px rgba(0,0,0,0.08);display:flex;align-items:center;justify-content:space-between;z-index:90;}
  .sw-bottom-to-pay{font-size:18px;font-weight:900;color:var(--text);line-height:1.1;}
  .sw-bottom-link{font-size:11.5px;font-weight:700;color:#0ea960;cursor:pointer;margin-top:3px;}
  .sw-pay-btn{background:#0ea960;color:#fff;border:none;border-radius:12px;padding:14px 28px;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit;box-shadow:0 3px 8px rgba(14,169,96,0.25);transition:transform .1s;}
  .sw-pay-btn:active{transform:scale(0.98);}

  /* Search Tabs & Dish Cards */
  .sw-search-tabs{display:flex;gap:8px;margin:8px 0 14px;}
  .sw-search-tab{flex:1;padding:10px 12px;background:#fff;border:1.5px solid #e2e4e8;border-radius:24px;font-size:13px;font-weight:800;color:#555;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .15s;font-family:inherit;}
  .sw-search-tab.active{background:#1c1c1c;color:#fff;border-color:#1c1c1c;box-shadow:0 2px 8px rgba(0,0,0,0.12);}
  .sw-search-tab .tab-badge{font-size:11px;padding:1px 7px;border-radius:10px;background:#f0f2f5;color:#444;}
  .sw-search-tab.active .tab-badge{background:rgba(255,255,255,0.22);color:#fff;}
  .sw-search-dish-card{display:flex;justify-content:space-between;align-items:flex-start;padding:14px;background:#fff;border-bottom:1px solid #f0f0f4;cursor:pointer;transition:background .12s;}
  .sw-search-dish-card:hover{background:#fafafc;}
  .sw-search-dish-card:last-child{border-bottom:none;}
  .sw-search-dish-left{flex:1;min-width:0;padding-right:12px;}
  .sw-search-dish-name{font-size:15px;font-weight:800;color:var(--text);margin-top:4px;line-height:1.25;}
  .sw-search-dish-price{font-size:14.5px;font-weight:900;color:var(--text);margin-top:5px;}
  .sw-search-dish-rest{display:inline-flex;align-items:center;gap:4px;margin-top:7px;font-size:11.5px;color:#ff5200;font-weight:700;padding:3px 8px;background:#fff5ee;border-radius:6px;}
  .sw-search-dish-rest .sw-rest-arrow{font-size:9.5px;}
  .sw-search-dish-desc{font-size:11.5px;color:#7e808c;margin-top:5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .sw-search-dish-right{position:relative;flex:0 0 100px;width:100px;display:flex;flex-direction:column;align-items:center;margin-bottom:8px;}
  .sw-search-dish-img-wrap{position:relative;width:100px;height:100px;border-radius:12px;background:#f2f2f5;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,0.04);}
  .sw-search-dish-img{width:100%;height:100%;object-fit:cover;display:block;}
  .sw-search-dish-btn-box{position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);width:84px;z-index:2;}
  .sw-search-dish-add-btn{width:100%;height:32px;background:#fff;color:#1ba672;border:1px solid #d4d5d9;border-radius:8px;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,0.12);text-transform:uppercase;display:flex;align-items:center;justify-content:center;font-family:inherit;}
  .sw-search-dish-add-btn:hover{background:#f8faf8;}
  .sw-search-dish-stepper{width:100%;height:32px;background:#fff;border:1px solid #1ba672;border-radius:8px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 6px rgba(0,0,0,0.12);font-weight:900;color:#1ba672;overflow:hidden;}
  .sw-search-dish-stepper button{width:26px;height:100%;border:none;background:transparent;color:#1ba672;font-size:16px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;}
  .sw-search-dish-stepper span{font-size:13px;font-weight:800;}
#net-loading{position:fixed;top:0;left:0;right:0;height:3px;z-index:10002;display:none;background:linear-gradient(90deg,#ff5200,#ffb04d,#ff5200);background-size:200% 100%;animation:netmove 1.1s linear infinite}
@keyframes netmove{0%{background-position:0% 0}100%{background-position:200% 0}}
#net-pill{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:10002;display:none;background:rgba(17,17,17,.92);color:#fff;font-size:11.5px;font-weight:700;padding:6px 12px;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.2)}
