/* ============ CORE RESET ============ */
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  body {
    background-color: #000000; color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    min-height: 100vh; padding-top: env(safe-area-inset-top);
    padding-bottom: calc(100px + env(safe-area-inset-bottom)); overflow-x: hidden;
  }

  /* ============ ANIMATED BACKGROUND ============ */
  .bg-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: 
      radial-gradient(circle at 15% 10%, rgba(50, 80, 255, 0.15) 0%, transparent 40%),
      radial-gradient(circle at 85% 90%, rgba(200, 50, 255, 0.12) 0%, transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  }

  /* ============ HEADER ============ */
  header {
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
  .logo svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2.2; }
  
  .header-actions { display: flex; gap: 10px; align-items: center; }
  .wallet-badge {
    background: rgba(48, 209, 88, 0.15); border: 1px solid rgba(48, 209, 88, 0.3);
    color: #30d158; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
  }
  .icon-btn {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: #fff; cursor: pointer; transition: all 0.2s; position: relative;
  }
  .icon-btn:active { transform: scale(0.9); background: rgba(255, 255, 255, 0.15); }
  .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

  /* ============ SEARCH BAR ============ */
  .search-container { padding: 10px 20px; margin-top: 4px; }
  .search-box {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px; border-radius: 14px; transition: border 0.3s;
  }
  .search-box:focus-within { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
  .search-box svg { width: 18px; height: 18px; stroke: #888; fill: none; stroke-width: 2; }
  .search-box input { background: transparent; border: none; color: #fff; font-size: 0.95rem; width: 100%; outline: none; font-family: inherit; }
  .search-box input::placeholder { color: #666; }

  /* ============ MAIN LAYOUT ============ */
  .container { padding: 10px 20px 20px; }
  .section-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
  .section-heading span { color: #888; font-size: 0.85rem; font-weight: 500; }

  /* ============ PRODUCT GRID ============ */
  .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
  .product-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 14px;
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
  }
  .product-card:active { transform: scale(0.96); }
  .product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  }

  .p-image {
    width: 100%; height: 150px; border-radius: 16px; margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(50, 80, 255, 0.1), rgba(200, 50, 255, 0.05));
    display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
  }
  .p-image img { width: 100%; height: 100%; object-fit: cover; }
  .p-image svg { width: 50px; height: 50px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.5; z-index: 1; }
  
  .p-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-desc { font-size: 0.75rem; color: #888; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
  .p-price { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
  
  .btn-add {
    width: 100%; padding: 12px; border-radius: 14px; border: none;
    background: #fff; color: #000; font-weight: 700; font-size: 0.85rem;
    display: flex; justify-content: center; align-items: center; gap: 6px; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 15px rgba(255,255,255,0.1);
  }
  .btn-add:active { background: #ccc; transform: scale(0.95); }
  .btn-add svg { width: 16px; height: 16px; fill: none; stroke: #000; stroke-width: 2.5; }

  /* ============ BOTTOM NAVIGATION ============ */
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, 0.75); backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-around; align-items: center;
  }
  .nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #666; text-decoration: none; font-size: 0.65rem; font-weight: 600;
    background: none; border: none; cursor: pointer; transition: color 0.3s; width: 60px;
  }
  .nav-item.active { color: #fff; }
  .nav-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s; }
  .nav-item.active svg { transform: translateY(-2px); }

  /* ============ MODALS ============ */
  .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: flex-end; opacity: 0; transition: opacity 0.3s;
  }
  .modal-overlay.show { display: flex; opacity: 1; }
  .modal-content {
    width: 100%; max-width: 500px; background: rgba(20, 20, 22, 0.85);
    border-radius: 28px 28px 0 0; padding: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
    max-height: 90vh; overflow-y: auto; backdrop-filter: blur(40px) saturate(180%);
  }
  .modal-overlay.show .modal-content { transform: translateY(0); }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .modal-header h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
  .close-btn { background: rgba(255, 255, 255, 0.1); border: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; justify-content: center; align-items: center; cursor: pointer; }
  .close-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.2); }

  /* ============ FORMS ============ */
  .input-group { margin-bottom: 16px; }
  .input-group label { display: block; font-size: 0.8rem; color: #888; margin-bottom: 6px; font-weight: 600; margin-left: 4px; }
  .input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 15px; border-radius: 14px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.95rem; outline: none; transition: all 0.2s; font-family: inherit;
  }
  .input-group input:focus, .input-group select:focus { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
  
  .btn-primary {
    width: 100%; padding: 16px; border-radius: 16px; border: none;
    background: #fff; color: #000; font-weight: 800; font-size: 1rem; cursor: pointer;
    transition: all 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px;
  }
  .btn-primary:active { transform: scale(0.97); background: #ddd; }
  
  .divider { display: flex; align-items: center; margin: 24px 0; color: #666; font-size: 0.8rem; font-weight: 600; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
  .divider::before { margin-right: 12px; } .divider::after { margin-left: 12px; }
  
  .social-btn {
    width: 100%; padding: 15px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 600; font-size: 0.95rem;
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
  }
  .social-btn:active { background: rgba(255, 255, 255, 0.1); transform: scale(0.98); }

  /* ============ CART & ORDERS ============ */
  .cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px; background: rgba(255, 255, 255, 0.03); border-radius: 16px; margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .btn-del { background: rgba(255,69,58,0.1); border: none; color: #ff453a; cursor: pointer; padding: 8px; border-radius: 10px; transition: 0.2s; }
  .btn-del:active { transform: scale(0.9); }
  
  .cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 800; margin: 20px 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

  .badge { font-size: 0.65rem; font-weight: 800; padding: 5px 10px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
  .badge.submitted { background: rgba(10, 132, 255, 0.15); color: #64b5ff; border: 1px solid rgba(10, 132, 255, 0.3); }
  .badge.approved { background: rgba(48, 209, 88, 0.15); color: #5ee07a; border: 1px solid rgba(48, 209, 88, 0.3); }
  .badge.rejected { background: rgba(255, 69, 58, 0.15); color: #ff7b72; border: 1px solid rgba(255, 69, 58, 0.3); }

  .filter-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { padding: 8px 16px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #888; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: 0.2s; }
  .filter-tab.active { background: #fff; color: #000; border-color: #fff; }

  /* ============ PREMIUM GLASS TOAST ============ */
  #toast {
    position: fixed; bottom: calc(100px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 32, 0.85); color: #fff; padding: 14px 20px; border-radius: 16px;
    font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; gap: 10px; min-width: 250px; max-width: 90vw;
  }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  #toast.error { border-color: rgba(255, 69, 58, 0.4); }
  #toast.error svg { stroke: #ff453a; }
  #toast.success svg { stroke: #30d158; }

  /* ============ UTILS ============ */
  .hidden { display: none !important; }
  .empty-state { text-align: center; padding: 50px 20px; color: #666; }
  .empty-state svg { width: 60px; height: 60px; stroke: #444; fill: none; stroke-width: 1.5; margin: 0 auto 16px; }
  .skeleton { height: 260px; border-radius: 22px; background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%); background-size: 200% 100%; animation: load 1.5s infinite; }
  @keyframes load { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }