    :root {
      --bg: #f1f4fb;
      --surface: #ffffff;
      --ink: #0f172a;
      --muted: #64748b;
      --border: #e2e8f0;
      --indigo: #6366f1;
      --indigo-dark: #4338ca;
      --pink: #ec4899;
      --emerald: #10b981;
      --amber: #f59e0b;
      --sky: #0ea5e9;
      --rose: #f43f5e;
      --drawer-w: 240px;
      --topbar-h: 52px;
      --radius: 14px;
      --shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    * { box-sizing: border-box; }

    html, body {
      margin: 0;
      padding: 0;
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 13px;
      line-height: 1.45;
      background: var(--bg);
      color: var(--ink);
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
    }

    /* ================= TOPBAR ================= */
    .ew-topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: calc(var(--topbar-h) + var(--safe-top));
      padding: var(--safe-top) 12px 0;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 1030;
    }

    @media (min-width: 992px) {
      .ew-topbar { left: var(--drawer-w); }
    }

    .ew-topbar-left, .ew-topbar-right {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .ew-brand {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: -0.02em;
      color: var(--ink);
      text-decoration: none !important;
    }

    .ew-brand img {
      height: 24px;
      width: 24px;
      border-radius: 6px;
      object-fit: cover;
    }

    .ew-icon-btn {
      position: relative;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      cursor: pointer;
      text-decoration: none !important;
      transition: all 0.15s ease;
    }

    .ew-icon-btn:hover {
      background: #eef2ff;
      color: var(--indigo);
      border-color: #c7d2fe;
    }

    .ew-pill-link {
      height: 32px;
      padding: 0 11px;
      border-radius: 999px;
      background: linear-gradient(135deg, #eef2ff, #e0e7ff);
      color: var(--indigo-dark);
      font-weight: 700;
      font-size: 11.5px;
      align-items: center;
      gap: 5px;
      text-decoration: none !important;
    }

    .ew-badge-dot {
      position: absolute;
      top: -4px;
      right: -4px;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      border-radius: 999px;
      color: #fff;
      font-size: 9.5px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .bg-pink { background: var(--pink); }

    /* Notifications Dropdown */
    .ew-notif-menu {
      width: 290px;
      padding: 0;
      border-radius: 14px;
      border: 1px solid var(--border);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
      overflow: hidden;
      font-size: 12px;
    }

    .ew-notif-head {
      padding: 9px 12px;
      font-weight: 700;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      font-size: 11.5px;
    }

    .ew-notif-list {
      max-height: 240px;
      overflow-y: auto;
    }

    .ew-notif-foot {
      display: block;
      text-align: center;
      padding: 8px;
      font-weight: 700;
      font-size: 11.5px;
      color: var(--indigo);
      background: #f8fafc;
      border-top: 1px solid var(--border);
      text-decoration: none !important;
    }

    /* ================= CUSTOM SCROLLABLE DRAWER ================= */
    .ew-drawer-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.45);
      backdrop-filter: blur(2px);
      z-index: 1045;
    }

    .ew-drawer-backdrop.show { display: block; }

    .ew-drawer {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: var(--drawer-w);
      height: 100vh;
      height: 100dvh;
      background: linear-gradient(180deg, #111827 0%, #1e1b4b 100%);
      color: #e2e8f0;
      display: flex;
      flex-direction: column;
      z-index: 1050;
      transform: translateX(-100%);
      transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
      padding-top: var(--safe-top);
    }

    .ew-drawer.open { transform: translateX(0); }

    @media (min-width: 992px) {
      .ew-drawer { transform: translateX(0); }
    }

    .ew-drawer-head {
      height: 52px;
      padding: 0 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      flex-shrink: 0;
    }

    .ew-drawer-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #fff;
      font-weight: 800;
      font-size: 15px;
      text-decoration: none !important;
    }

    .ew-drawer-brand img {
      width: 26px;
      height: 26px;
      border-radius: 7px;
    }

    .ew-drawer-close {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .ew-user-mini {
      margin: 10px 10px 6px;
      padding: 8px 10px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.07);
      display: flex;
      align-items: center;
      gap: 9px;
      text-decoration: none !important;
      color: #fff;
      flex-shrink: 0;
    }

    .ew-user-mini img {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      object-fit: cover;
      border: 1.5px solid #818cf8;
    }

    .ew-user-name {
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 155px;
    }

    .ew-user-sub {
      font-size: 10.5px;
      color: #a5b4fc;
    }

    .ew-drawer-search {
      margin: 4px 10px 8px;
      position: relative;
      flex-shrink: 0;
    }

    .ew-drawer-search i {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: #94a3b8;
    }

    .ew-drawer-search input {
      width: 100%;
      height: 32px;
      padding: 0 10px 0 28px;
      border-radius: 9px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
      font-size: 12px;
      outline: none;
    }

    .ew-drawer-search input::placeholder { color: #94a3b8; }

    /* Native Touch-Scrollable Middle Menu */
    .ew-drawer-scroll {
      flex: 1 1 auto;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      padding: 2px 10px 12px;
    }

    .ew-nav-group {
      font-size: 9.5px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: #818cf8;
      padding: 10px 8px 4px;
    }

    .ew-nav-link {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 7px 9px;
      margin-bottom: 2px;
      border-radius: 10px;
      color: #cbd5e1;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none !important;
      transition: all 0.15s ease;
    }

    .ew-nav-link:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    .ew-nav-link.active {
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    }

    .ew-nav-ico {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      flex-shrink: 0;
    }

    .c-indigo  { background: rgba(99, 102, 241, 0.22); color: #a5b4fc; }
    .c-emerald { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
    .c-rose    { background: rgba(244, 63, 94, 0.22);  color: #fda4af; }
    .c-amber   { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
    .c-sky     { background: rgba(14, 165, 233, 0.22); color: #7dd3fc; }
    .c-pink    { background: rgba(236, 72, 153, 0.22); color: #f9a8d4; }
    .c-purple  { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
    .c-teal    { background: rgba(20, 184, 166, 0.22); color: #5eead4; }
    .c-orange  { background: rgba(249, 115, 22, 0.22); color: #fdba74; }

    .ew-nav-link.active .ew-nav-ico {
      background: rgba(255, 255, 255, 0.22);
      color: #fff;
    }

    .ew-pill-tag {
      margin-left: auto;
      font-size: 9px;
      font-weight: 800;
      padding: 1px 6px;
      border-radius: 999px;
      background: var(--rose);
      color: #fff;
    }

    /* Pinned Logout Footer */
    .ew-drawer-foot {
      flex-shrink: 0;
      padding: 8px 10px calc(10px + var(--safe-bottom));
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(15, 23, 42, 0.65);
    }

    .ew-logout-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      height: 36px;
      border-radius: 10px;
      background: linear-gradient(135deg, #f43f5e, #e11d48);
      color: #fff !important;
      font-weight: 700;
      font-size: 12px;
      text-decoration: none !important;
      box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    }

    /* ================= MAIN WORKSPACE ================= */
    .ew-main {
      padding-top: calc(var(--topbar-h) + var(--safe-top) + 12px);
      padding-bottom: calc(74px + var(--safe-bottom));
      padding-left: 12px;
      padding-right: 12px;
      max-width: 1380px;
      margin: 0 auto;
    }

    @media (min-width: 992px) {
      .ew-main {
        margin-left: var(--drawer-w);
        padding-bottom: 24px;
        padding-left: 18px;
        padding-right: 18px;
      }
    }

    /* Compact Colorful Hero Banner */
    .ew-hero {
      background: linear-gradient(125deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
      border-radius: var(--radius);
      padding: 14px 16px;
      color: #fff;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
      box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35);
    }

    .ew-hero h1 {
      font-size: 15px;
      font-weight: 800;
      margin: 0 0 2px;
      letter-spacing: -0.01em;
    }

    .ew-hero p {
      margin: 0;
      font-size: 11.5px;
      opacity: 0.92;
    }

    .ew-hero-btns {
      display: flex;
      gap: 7px;
      flex-wrap: wrap;
    }

    .ew-btn-chip {
      height: 32px;
      padding: 0 12px;
      border-radius: 9px;
      font-size: 11.5px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      text-decoration: none !important;
      border: none;
      cursor: pointer;
      transition: transform 0.12s ease;
    }

    .ew-btn-chip:active { transform: scale(0.96); }
    .ew-btn-white { background: #fff; color: var(--indigo-dark) !important; }
    .ew-btn-amber { background: #fbbf24; color: #1e1b4b !important; }

    /* Compact Colorful KPI Grid */
    .ew-kpi-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 9px;
      margin-bottom: 12px;
    }

    @media (min-width: 768px) {
      .ew-kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    }

    .ew-kpi {
      border-radius: var(--radius);
      padding: 11px 13px;
      color: #fff;
      position: relative;
      overflow: hidden;
      text-decoration: none !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: var(--shadow);
      transition: transform 0.15s ease;
    }

    .ew-kpi:hover { transform: translateY(-2px); color: #fff; }

    .kpi-g1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
    .kpi-g2 { background: linear-gradient(135deg, #10b981, #059669); }
    .kpi-g3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
    .kpi-g4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

    .ew-kpi-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .ew-kpi-num {
      font-size: 20px;
      font-weight: 800;
      line-height: 1.1;
    }

    .ew-kpi-ico {
      width: 30px;
      height: 30px;
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.22);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
    }

    .ew-kpi-title {
      font-size: 11.5px;
      font-weight: 700;
      margin-top: 6px;
      opacity: 0.95;
    }

    .ew-kpi-sub {
      font-size: 10px;
      opacity: 0.85;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 3px;
    }

    /* Compact Cards */
    .ew-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      margin-bottom: 12px;
      overflow: hidden;
    }

    .ew-card-head {
      padding: 10px 14px;
      border-bottom: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: #fff;
    }

    .ew-card-title {
      font-size: 13px;
      font-weight: 800;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--ink);
    }

    .ew-card-body { padding: 12px 14px; }

    /* Free Service Mini Tiles */
    .ew-mini-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 7px;
      margin-bottom: 10px;
    }

    @media (max-width: 575.98px) {
      .ew-mini-stats { grid-template-columns: repeat(2, 1fr); }
    }

    .ew-mini-box {
      padding: 8px 6px;
      border-radius: 10px;
      text-align: center;
      background: #f8fafc;
      border: 1px solid var(--border);
    }

    .ew-mini-box.highlight {
      background: #ecfdf5;
      border-color: #a7f3d0;
    }

    .ew-mini-box .val {
      font-size: 16px;
      font-weight: 800;
      line-height: 1.2;
    }

    .ew-mini-box .lbl {
      font-size: 10.5px;
      font-weight: 600;
      color: var(--muted);
    }

    /* Compact Notice Strip */
    .ew-notice {
      background: linear-gradient(135deg, #fff1f2, #ffe4e6);
      border: 1px solid #fecdd3;
      color: #881337;
      border-radius: 12px;
      padding: 9px 12px;
      font-size: 11.5px;
      margin-bottom: 12px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }

    /* Compact Inputs & Buttons */
    .ew-label {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 4px;
      display: block;
    }

    .ew-input {
      width: 100%;
      height: 36px;
      padding: 0 11px;
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      font-size: 13px;
      font-family: inherit;
      background: #fff;
      color: var(--ink);
    }

    .ew-input:focus {
      outline: none;
      border-color: var(--indigo);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
    }

    textarea.ew-input {
      height: auto;
      padding: 8px 11px;
    }

    .ew-btn-primary {
      height: 36px;
      padding: 0 14px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }

    .ew-btn-primary:disabled { opacity: 0.65; }

    /* Compact Table & Mobile Card Transformation */
    .ew-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    .ew-table th {
      background: #f8fafc;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 8px 10px;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }

    .ew-table td {
      padding: 9px 10px;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: top;
    }

    .ew-table tr.sec-row td {
      background: #eef2ff;
      color: var(--indigo-dark);
      font-weight: 800;
      font-size: 11px;
      padding: 7px 10px;
    }

    .ew-pill {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 700;
    }

    .pill-success { background: #dcfce7; color: #15803d; }
    .pill-warning { background: #fef3c7; color: #b45309; }
    .pill-danger  { background: #fee2e2; color: #b91c1c; }
    .pill-info    { background: #e0f2fe; color: #0369a1; }
    .pill-muted   { background: #f1f5f9; color: #475569; }

    @media (max-width: 767.98px) {
      .ew-table thead { display: none; }
      .ew-table tbody tr {
        display: block;
        margin: 8px 10px;
        padding: 9px 11px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
      }
      .ew-table tbody tr.sec-row {
        background: #eef2ff;
        border-color: #c7d2fe;
        padding: 7px 10px;
      }
      .ew-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 5px 0;
        border-bottom: 1px dashed #e2e8f0;
        text-align: right;
        font-size: 11.5px;
      }
      .ew-table tbody tr.sec-row td {
        display: block;
        text-align: left;
        border-bottom: none;
        padding: 0;
      }
      .ew-table tbody td:last-child { border-bottom: none; }
      .ew-table tbody td:not(.sec-cell)::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        text-align: left;
        flex-shrink: 0;
        font-size: 11px;
      }
    }

    /* Compact AI Support Chat */
    .ai-avatar {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .online-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--emerald);
      display: inline-block;
      margin-right: 3px;
    }

    .ai-chat-feed {
      height: 340px;
      overflow-y: auto;
      padding: 12px;
      background: #f8fafc;
      scroll-behavior: smooth;
    }

    .ai-welcome {
      text-align: center;
      padding: 20px 12px;
      color: var(--muted);
    }

    .welcome-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 10px;
      border-radius: 14px;
      background: linear-gradient(135deg, #eef2ff, #fce7f3);
      color: var(--indigo);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .ai-message-row {
      display: flex;
      margin-bottom: 10px;
      align-items: flex-start;
    }

    .ai-message-row.user { justify-content: flex-end; }

    .ai-message-avatar {
      width: 26px;
      height: 26px;
      min-width: 26px;
      border-radius: 8px;
      background: var(--indigo);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      margin-right: 7px;
    }

    .ai-message-row.user .ai-message-avatar {
      background: var(--emerald);
      margin-right: 0;
      margin-left: 7px;
    }

    .ai-message-content { max-width: 84%; }
    .ai-message-meta { font-size: 10px; color: var(--muted); margin-bottom: 2px; }

    .ai-message-bubble {
      padding: 8px 11px;
      border-radius: 11px;
      background: #fff;
      border: 1px solid var(--border);
      font-size: 12px;
      line-height: 1.45;
      word-break: break-word;
    }

    .ai-message-row.user .ai-message-bubble {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      color: #fff;
      border: none;
    }

    .ai-typing {
      padding: 6px 12px;
      background: #f8fafc;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
    }

    .ai-typing span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--indigo);
      animation: pulseDot 1s infinite;
    }
    .ai-typing span:nth-child(2) { animation-delay: 0.2s; }
    .ai-typing span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes pulseDot {
      0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
      40% { opacity: 1; transform: scale(1); }
    }

    .ai-resolution-box, .ai-callback-form {
      padding: 10px 12px;
      border-top: 1px solid var(--border);
      background: #fff;
    }

    .ai-chat-closed {
      padding: 10px;
      text-align: center;
      background: #dcfce7;
      color: #166534;
      font-weight: 700;
      font-size: 12px;
      border-radius: 10px;
    }

    /* ================= MOBILE BOTTOM APP BAR ================= */
    .ew-bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: calc(56px + var(--safe-bottom));
      padding-bottom: var(--safe-bottom);
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-around;
      z-index: 1035;
      box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    }

    .ew-bottom-nav a {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      font-size: 10px;
      font-weight: 700;
      color: var(--muted);
      text-decoration: none !important;
    }

    .ew-bottom-nav a i { font-size: 15px; }
    .ew-bottom-nav a.active { color: var(--indigo); }

    .ew-bottom-fab {
      flex: 0 0 42px !important;
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff !important;
      margin-top: -14px;
      box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
    }

    .ew-footer {
      margin-left: var(--drawer-w);
      padding: 12px 18px;
      font-size: 11.5px;
      color: var(--muted);
      justify-content: space-between;
      border-top: 1px solid var(--border);
      background: #fff;
    }
    
    /* Cart-specific compact mobile-first layout */
    .ew-cart-item {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 11px 14px;
      border-bottom: 1px solid #f1f5f9;
      transition: background 0.15s ease;
    }
    .ew-cart-item:last-child { border-bottom: none; }
    .ew-cart-item:hover { background: #fafbff; }

    .ew-cart-thumb {
      width: 58px;
      height: 58px;
      min-width: 58px;
      border-radius: 11px;
      border: 1px solid var(--border);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 4px;
    }
    .ew-cart-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .ew-cart-info {
      flex: 1 1 auto;
      min-width: 0;
    }
    .ew-cart-name {
      font-weight: 700;
      font-size: 12.5px;
      color: var(--ink);
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ew-cart-meta {
      font-size: 11px;
      color: var(--muted);
    }

    .ew-qty-stepper {
      display: inline-flex;
      align-items: center;
      border: 1px solid #cbd5e1;
      border-radius: 9px;
      background: #f8fafc;
      overflow: hidden;
      height: 30px;
    }
    .ew-qty-stepper button {
      width: 26px;
      height: 28px;
      border: none;
      background: transparent;
      color: var(--ink);
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .ew-qty-stepper button:hover {
      background: #e0e7ff;
      color: var(--indigo);
    }
    .ew-qty-stepper input {
      width: 34px;
      height: 28px;
      border: none;
      border-left: 1px solid #e2e8f0;
      border-right: 1px solid #e2e8f0;
      background: #fff;
      text-align: center;
      font-size: 12px;
      font-weight: 700;
      color: var(--ink);
      -moz-appearance: textfield;
    }
    .ew-qty-stepper input::-webkit-outer-spin-button,
    .ew-qty-stepper input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .ew-cart-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      flex-shrink: 0;
    }
    .ew-cart-total {
      font-weight: 800;
      font-size: 13px;
      color: var(--ink);
    }

    .ew-summary-sticky {
      position: sticky;
      top: calc(var(--topbar-h) + var(--safe-top) + 12px);
    }
    .ew-sum-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      font-size: 12px;
      color: var(--muted);
    }
    .ew-sum-grand {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 10px;
      margin-top: 8px;
      border-top: 1px dashed var(--border);
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
    }

    .ew-checkout-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      height: 38px;
      border-radius: 11px;
      border: none;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff !important;
      font-size: 12.5px;
      font-weight: 700;
      text-decoration: none !important;
      box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
      transition: transform 0.12s ease;
    }
    .ew-checkout-btn:active { transform: scale(0.98); }

    @media (max-width: 575.98px) {
      .ew-cart-item {
        flex-wrap: wrap;
        padding: 10px 12px;
      }
      .ew-cart-info {
        width: calc(100% - 72px);
      }
      .ew-cart-controls-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 6px;
        margin-top: 2px;
        border-top: 1px dashed #f1f5f9;
      }
    }
    
     .ew-addr-card {
      display: block;
      border: 1px solid var(--border);
      border-radius: 11px;
      padding: 11px 13px;
      margin-bottom: 9px;
      cursor: pointer;
      background: #fff;
      transition: all 0.15s ease;
    }
    .ew-addr-card:hover { border-color: #a5b4fc; background: #fafbff; }
    .ew-addr-card.is-selected { border-color: var(--indigo); background: #eef2ff; }
    .ew-sum-line {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 5px 0;
      font-size: 12px;
      color: var(--muted);
    }
    .ew-sum-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 10px;
      margin-top: 8px;
      border-top: 1px dashed var(--border);
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
    }
    .ew-place-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      height: 38px;
      border-radius: 11px;
      border: none;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      font-size: 12.5px;
      font-weight: 700;
      box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
      cursor: pointer;
    }
    .ew-place-btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .ew-summary-sticky { position: sticky; top: calc(var(--topbar-h) + var(--safe-top) + 12px); }
    .ew-loc-box {
      padding: 12px 14px;
      border-radius: 11px;
      border: 1px solid var(--border);
      background: #fafbff;
      font-size: 12px;
      line-height: 1.5;
    }
    .ew-loc-box a { color: var(--indigo-dark); font-weight: 600; }
     body.ew-auth-body {
      padding-top: 0;
      padding-bottom: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px 14px;
      background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 50%, #ecfeff 100%);
    }
    .ew-auth-card {
      width: 100%;
      max-width: 400px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow-md);
      overflow: hidden;
    }
    .ew-auth-head {
      background: linear-gradient(125deg, #4f46e5 0%, #6366f1 48%, #ec4899 100%);
      color: #fff;
      padding: 18px 20px;
      text-align: center;
    }
    .ew-auth-submit {
      width: 100%;
      height: 38px;
      border-radius: 11px;
      border: none;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      font-size: 12.5px;
      font-weight: 700;
      box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
      cursor: pointer;
    }
    
    body.ew-auth-body {
      padding-top: 0;
      padding-bottom: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px 14px;
      background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 50%, #ecfeff 100%);
    }
    .ew-auth-card {
      width: 100%;
      max-width: 390px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow-md);
      overflow: hidden;
    }
    .ew-auth-head {
      background: linear-gradient(125deg, #4f46e5 0%, #6366f1 48%, #ec4899 100%);
      color: #fff;
      padding: 20px;
      text-align: center;
    }
    .ew-auth-submit {
      height: 36px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, #6366f1, #ec4899);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
      cursor: pointer;
    }
    .ew-bk-meta-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 10px;
    }
    .ew-bk-cell {
      background: #f8fafc;
      border: 1px solid #eef2f6;
      border-radius: 10px;
      padding: 8px 10px;
    }
    .ew-bk-lbl {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--muted);
      letter-spacing: 0.3px;
    }
    .ew-bk-val {
      font-size: 12px;
      font-weight: 700;
      color: var(--ink);
      margin-top: 2px;
      overflow-wrap: anywhere;
    }
    @media (max-width: 767.98px) {
      .ew-bk-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .ew-notif-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 11px 14px;
      border-bottom: 1px solid #f1f5f9;
      font-size: 12px;
    }
    .ew-notif-row:last-child { border-bottom: none; }
    .ew-notif-row.is-unread { background: #eef2ff; }
    .ew-notif-dot {
      width: 8px;
      height: 8px;
      min-width: 8px;
      border-radius: 50%;
      background: var(--indigo);
      margin-top: 5px;
    }
    .ew-notif-row:not(.is-unread) .ew-notif-dot { background: #cbd5e1; }
    
     .ew-pd-main-img {
      width: 100%;
      height: 290px;
      object-fit: contain;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px;
    }
    .ew-pd-thumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .ew-pd-thumb {
      width: 58px;
      height: 58px;
      padding: 4px;
      border: 1.5px solid var(--border);
      border-radius: 9px;
      background: #fff;
      cursor: pointer;
    }
    .ew-pd-thumb.active {
      border-color: var(--indigo);
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
    }
    .ew-pd-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .ew-pd-price-box {
      background: #f8fafc;
      border: 1px solid #eef2f6;
      border-radius: 12px;
      padding: 12px 14px;
    }
    .ew-pd-price {
      font-size: 22px;
      font-weight: 800;
      color: var(--indigo-dark);
    }
    .ew-pd-old-price {
      font-size: 13px;
      color: var(--muted);
      text-decoration: line-through;
      margin-left: 6px;
    }
    .ew-variant-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 7px 11px;
      margin: 0 6px 6px 0;
      background: #fff;
      font-size: 11.5px;
      cursor: pointer;
    }
    .ew-variant-pill input { accent-color: var(--indigo); margin: 0; }
    .ew-variant-pill:has(input:checked) {
      border-color: var(--indigo);
      background: #eef2ff;
      color: var(--indigo-dark);
      font-weight: 600;
    }
    @media (max-width: 767.98px) {
      .ew-pd-main-img { height: 220px; }
    }