    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
      --primary: #28a745; --primary-dark: #218838; --accent: #ffc107;
      --dark: #1a1a2e; --light: #f8f9fa; --white: #ffffff;
      --text: #212529; --text-muted: #6c757d;
      --shadow: 0 4px 20px rgba(0,0,0,0.1); --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
      --content-padding: 32px; --max-width: 1200px;
    }
    body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-overflow-scrolling: touch; }
    
    /* ===== BACKGROUND CIRCLES IN NAV ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      padding: 16px var(--content-padding);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: transparent;
      transition: all 0.3s;
      width: 100%;
      overflow: hidden;
    }
    
    /* Animated circles behind nav */
    .navbar::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -20%;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, rgba(40,167,69,0.08) 70%, transparent 100%);
      border-radius: 50%;
      z-index: -1;
      animation: floatCircle 20s infinite ease-in-out;
      pointer-events: none;
    }
    
    .navbar::after {
      content: '';
      position: absolute;
      bottom: -60%;
      right: -10%;
      width: 250px;
      height: 250px;
      background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, rgba(40,167,69,0.05) 60%, transparent 100%);
      border-radius: 50%;
      z-index: -1;
      animation: floatCircle 25s infinite reverse ease-in-out;
      pointer-events: none;
    }
    
    @keyframes floatCircle {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(30px, -20px) scale(1.05); }
      66% { transform: translate(-20px, 15px) scale(0.95); }
    }
    
    /* Additional decorative circles */
    .navbar .circle-bg {
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
      pointer-events: none;
      z-index: -1;
    }
    
    /* Mobile: force white nav text over green hero */
    @media (max-width: 768px) {
      .navbar .nav-logo { color: #ffffff !important; }
      .navbar .mobile-menu-btn { color: #ffffff !important; }
      .navbar.scrolled .nav-logo { color: var(--text) !important; }
      .navbar.scrolled .mobile-menu-btn { color: var(--text) !important; }
    }
    .navbar.scrolled { background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
    .navbar.scrolled::before, .navbar.scrolled::after { opacity: 0.3; }
    .navbar.scrolled .nav-links-mobile .nav-link { color: #ffffff !important; }
    .navbar-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
    .nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: #ffffff; text-decoration: none; }
    .nav-logo i { color: var(--accent); }
    .navbar.scrolled .nav-logo { color: var(--text); }
    .nav-links { display: flex; align-items: center; gap: 28px; }
    .nav-link { color: white; text-decoration: none; font-weight: 500; }
    .navbar.scrolled .nav-link { color: var(--text); }
    .nav-cta { background: var(--accent); color: var(--white) !important; padding: 10px 22px; border-radius: 50px; }
    .btn-login, .btn-signup { padding: 8px 20px; border-radius: 50px; text-decoration: none; color: white; font-weight: 500; }
    .btn-signup { background: var(--accent); color: var(--white) !important; }
    .navbar.scrolled .btn-login { color: var(--text); border: 2px solid var(--primary); }
    .navbar.scrolled .btn-signup { color: var(--white) !important; }
    .cart-badge { position: relative; color: white; text-decoration: none; font-size: 1.2rem; display: flex; align-items: center; }
    .navbar.scrolled .cart-badge { color: var(--text); }
    .cart-count { position: absolute; top: -8px; right: -10px; background: var(--accent); color: var(--text); font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .mobile-menu-btn { display: none; background: none; border: none; color: #ffffff; font-size: 1.5rem; cursor: pointer; z-index: 1002; }
    .navbar.scrolled .mobile-menu-btn { color: var(--text); }
    .mobile-nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
    .mobile-nav-overlay.active { display: block; opacity: 1; }
    .nav-links-mobile { display: none; position: fixed; top: 12px; left: 12px; bottom: 12px; width: 280px; max-width: 80vw; background: linear-gradient(180deg, #28a745 0%, #218838 50%, #1e7e34 100%); border-radius: 20px; box-shadow: var(--shadow-lg); z-index: 1001; flex-direction: column; padding: 80px 24px 24px; gap: 8px; transform: translateX(-120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; }
    .nav-links-mobile.active { display: flex; transform: translateX(0); }
    .nav-links-mobile .nav-link { color: #ffffff !important; padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 500; transition: all 0.2s; }
    .nav-links-mobile .nav-link:hover { background: rgba(255,255,255,0.15); }
    .nav-links-mobile .nav-cta { margin-top: 8px; text-align: center; justify-content: center; background: var(--accent); color: #ffffff !important; }
    .nav-links-mobile .nav-auth-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); }
    .nav-links-mobile .btn-login-mobile, .nav-links-mobile .btn-signup-mobile { text-align: center; padding: 12px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.2s; }
    .nav-links-mobile .btn-login-mobile { color: #ffffff !important; border: 2px solid rgba(255,255,255,0.4); }
    .nav-links-mobile .btn-login-mobile:hover { background: rgba(255,255,255,0.1); }
    .nav-links-mobile .btn-signup-mobile { background: var(--accent); color: #ffffff !important; }
    /* Force all mobile nav text white - highest specificity */
    .nav-links-mobile a,
    .nav-links-mobile a:link,
    .nav-links-mobile a:visited,
    .nav-links-mobile a:active { color: #ffffff !important; }
    .nav-links-mobile a i,
    .nav-links-mobile .mobile-nav-close { color: #ffffff !important; }
    .mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.5rem; color: #ffffff !important; cursor: pointer; }
    .hero { min-height: auto; background: linear-gradient(135deg, #28a745 0%, #218838 50%, #1e7e34 100%); position: relative; display: flex; align-items: flex-start; overflow: visible; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; color: white; padding-bottom: 40px; padding-top: 80px; }
    .hero-content { max-width: var(--max-width); margin: 0 auto; padding: 60px var(--content-padding) 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; }
    .hero-text { max-width: 540px; width: 100%; }
    .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; color: var(--accent); margin-bottom: 24px; }
    .hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; color: white; line-height: 1.15; margin-bottom: 20px; word-wrap: break-word; }
    .hero h1 span { color: var(--accent); }
    .hero p { font-size: clamp(0.9rem, 2.5vw, 1.1rem); color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 32px; word-wrap: break-word; }
    .hero-buttons { display: flex; gap: 12px; flex-wrap: nowrap; align-items: center; }
    .btn-primary { background: var(--accent); color: var(--white) !important; padding: 14px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; white-space: nowrap; }
    .btn-outline { background: transparent; color: white; padding: 14px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border: 2px solid rgba(255,255,255,0.3); font-size: 0.95rem; white-space: nowrap; }
    .hero-stats { display: flex; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap; }
    .hero-stat { text-align: center; }
    .hero-stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
    .hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
    /* FIXED: Make phones visible on mobile - changed from visibility:hidden */
    .hero-phone-placeholder { display: flex; justify-content: flex-end; align-items: center; visibility: visible; }
    .phone-mockup { width: 260px; height: 520px; background: var(--dark); border-radius: 40px; padding: 12px; box-shadow: 0 25px 60px rgba(0,0,0,0.3); position: relative; }
    .phone-screen { width: 100%; height: 100%; background: #ffffff; border-radius: 32px; overflow: hidden; position: relative; display: flex; flex-direction: column; border: 2px solid #e9ecef; }
    .phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: var(--dark); border-radius: 0 0 16px 16px; z-index: 5; }
    .phone-chat { padding: 40px 12px 60px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
    .phone-chat::-webkit-scrollbar { width: 0; }
    .chat-header-mock { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 12px; border-radius: 16px 16px 4px 4px; margin-bottom: 8px; flex-shrink: 0; color: white; }
    .chat-msg-mock { padding: 10px 14px; border-radius: 14px; font-size: 0.75rem; max-width: 85%; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; word-wrap: break-word; }
    .chat-msg-mock.visible { opacity: 1; transform: translateY(0); }
    .chat-msg-mock.ai { background: #f8f9fa; color: #1e7e34; border-bottom-left-radius: 4px; align-self: flex-start; border: 1px solid #e9ecef; }
    .chat-msg-mock.user { background: #d4edda; color: #1e7e34; border-bottom-right-radius: 4px; align-self: flex-end; }
    .typing-indicator { display: none; align-self: flex-start; background: #f8f9fa; padding: 12px 16px; border-radius: 14px; border-bottom-left-radius: 4px; margin-bottom: 8px; border: 1px solid #e9ecef; }
    .typing-indicator.active { display: flex; gap: 4px; }
    .typing-indicator .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out; }
    .typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
    .typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
    .typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
    @keyframes typingBounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
    .phone-input-mock { position: absolute; bottom: 12px; left: 12px; right: 12px; background: #f8f9fa; border-radius: 24px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; min-height: 44px; z-index: 5; border: 1px solid #e9ecef; color: #6c757d; }
    .typing-text { font-size: 0.8rem; color: #28a745; white-space: nowrap; overflow: hidden; border-right: 2px solid var(--primary); animation: cursorBlink 0.7s step-end infinite; max-width: 160px; }
    @keyframes cursorBlink { 50% { border-color: transparent; } }
    .float-card { position: absolute; background: #ffffff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; animation: float 6s ease-in-out infinite; white-space: nowrap; z-index: 20; border: 1px solid #e9ecef; color: #1e7e34; font-weight: 600; }
    .float-card-1 { top: -20px; right: -80px; animation-delay: 0s; }
    .float-card-2 { bottom: 80px; left: -90px; animation-delay: 2s; }
    .float-card-3 { top: 40%; right: -100px; animation-delay: 4s; }
    @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
    .float-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
    .float-icon.green { background: #d4edda; color: #28a745; }
    .float-icon.yellow { background: #fff3cd; color: #ffc107; }
    .float-icon.blue { background: #e7f3ff; color: #0d6efd; }
    .moving-phone-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; perspective: 1200px; }
    .moving-phone-container { position: absolute; width: 260px; height: 520px; pointer-events: auto; will-change: transform, left, top; transform-style: preserve-3d; }
    .hero-phones-wrapper { position: relative; width: 100%; height: 520px; display: flex; justify-content: center; align-items: center; gap: 20px; }
    .hero-phone { width: 220px; height: 440px; background: var(--dark); border-radius: 36px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: absolute; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; transform: scale(0.8) translateY(30px); }
    .hero-phone.active { opacity: 1; transform: scale(1) translateY(0); z-index: 10; }
    .hero-phone.prev { opacity: 0.4; transform: scale(0.85) translateX(-180px) rotateY(15deg); z-index: 5; }
    .hero-phone.next { opacity: 0.4; transform: scale(0.85) translateX(180px) rotateY(-15deg); z-index: 5; }
    .hero-phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); border-radius: 28px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
    .hero-phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 24px; background: var(--dark); border-radius: 0 0 14px 14px; z-index: 5; }
    .hero-phone-content { flex: 1; padding: 35px 10px 50px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
    .hero-phone-content::-webkit-scrollbar { width: 0; }
    .hero-chat-header { padding: 10px; border-radius: 14px 14px 3px 3px; margin-bottom: 6px; font-size: 0.7rem; color: white; display: flex; align-items: center; gap: 6px; }
    .hero-chat-header.green { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
    .hero-chat-header.yellow { background: linear-gradient(135deg, #ffc107, #ff9800); }
    .hero-chat-header.plant { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
    .hero-msg { padding: 8px 12px; border-radius: 12px; font-size: 0.7rem; max-width: 90%; word-wrap: break-word; }
    .hero-msg.ai { background: white; color: var(--text); border-bottom-left-radius: 3px; align-self: flex-start; }
    .hero-msg.user { background: #d4edda; color: var(--text); border-bottom-right-radius: 3px; align-self: flex-end; }
    /* Plant specific styles for the replaced phone */
    .plant-showcase {
      text-align: center;
      padding: 15px 0;
    }
    .growing-plant {
      animation: growPlant 2s ease-out infinite alternate;
      transform-origin: bottom center;
      display: inline-block;
    }
    @keyframes growPlant {
      0% { transform: scale(0.95); opacity: 0.8; }
      100% { transform: scale(1.08); opacity: 1; }
    }
    .leaf-icon {
      font-size: 3rem;
      color: #4caf50;
      margin: 5px;
      display: inline-block;
      animation: leafWave 3s ease-in-out infinite;
    }
    @keyframes leafWave {
      0%, 100% { transform: rotate(0deg); }
      25% { transform: rotate(5deg); }
      75% { transform: rotate(-5deg); }
    }
    .hero-phone-input { position: absolute; bottom: 10px; left: 10px; right: 10px; background: #f0f2f5; border-radius: 20px; padding: 8px 12px; font-size: 0.7rem; color: var(--text-muted); }
    .phone-nav-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); }
    .phone-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; }
    .phone-dot.active { background: var(--accent); width: 30px; border-radius: 5px; }
    .features-section { background: var(--white); padding: 80px var(--content-padding) 80px; position: relative; z-index: 2; min-height: auto; overflow: visible; }
    .features-container { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
    .features-left { position: sticky; top: 120px; height: 440px; display: flex; justify-content: center; align-items: center; }
    .features-phone-spot { width: 220px; height: 440px; position: relative; margin: 0 auto; }
    .features-right { flex: 1; padding-bottom: 40px; min-width: 0; }
    .features-header { margin-bottom: 50px; position: relative; z-index: 10; }
    .section-label { display: inline-block; background: #d4edda; color: #218838; padding: 5px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
    .features-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
    .features-header p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
    .features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .feature-card { display: flex; gap: 14px; padding: 16px; background: white; border-radius: 16px; transition: all 0.3s; border: 1px solid #e9ecef; }
    .feature-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
    .feature-icon.green { background: linear-gradient(135deg, #d4edda, #c8e6c9); color: #28a745; }
    .feature-icon.yellow { background: linear-gradient(135deg, #fff3cd, #ffecb5); color: #ffc107; }
    .feature-icon.blue { background: linear-gradient(135deg, #e7f3ff, #d0e8ff); color: #0d6efd; }
    .feature-icon.purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #7b1fa2; }
    .feature-text h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
    .feature-text p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
    /* ============================================
       MARKETPLACE
       ============================================ */
    .marketplace-section {
      background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
      padding: 80px var(--content-padding);
    }
    .marketplace-header {
      max-width: var(--max-width);
      margin: 0 auto 30px;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 20px;
    }
    .marketplace-header-left h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
    .btn-view-all {
      background: var(--primary);
      color: white;
      padding: 10px 24px;
      border-radius: 50px;
      text-decoration: none;
    }
    .btn-upload-product {
      background: var(--accent);
      color: var(--text) !important;
      padding: 10px 24px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      border: none;
      font-size: 0.95rem;
    }
    .products-grid {
      max-width: var(--max-width);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .product-card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      transition: all 0.3s;
    }
    .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
    .product-image {
      height: 200px;
      background: linear-gradient(135deg, #d4edda, #c8e6c9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      color: #28a745;
      overflow: hidden;
    }
    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .product-info { padding: 16px; }
    .product-category { font-size: 0.7rem; color: #28a745; font-weight: 600; text-transform: uppercase; }
    .product-name { font-size: 1rem; font-weight: 700; margin: 6px 0; }
    .product-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }
    .product-price { font-size: 1.1rem; font-weight: 800; color: #218838; }
    .btn-add-cart {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #28a745;
      color: white;
      border: none;
      cursor: pointer;
    }
    /* ====== NEW: Buy Now Button (Yellow bg, White text) ====== */
    .btn-buy-now {
      background-color: #f59e0b;
      color: #ffffff !important;
      border: none;
      padding: 8px 14px;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.85rem;
      text-decoration: none;
    }
    .btn-buy-now:hover {
      background-color: #d97706;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
    /* ====== NEW: Chat Button ====== */
    .btn-chat {
      background: linear-gradient(135deg, #198754, #157347);
      color: white !important;
      border: none;
      padding: 8px 12px;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.85rem;
      text-decoration: none;
    }
    .btn-chat:hover {
      background: linear-gradient(135deg, #157347, #0f5c38);
      transform: translateY(-1px);
    }
    /* ====== NEW: Product Actions ====== */
    .product-actions {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    /* ====== NEW: Farmer Location ====== */
    .farmer-location {
      font-size: 0.8rem;
      color: #6c757d;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .farmer-location i {
      color: #198754;
      font-size: 0.75rem;
    }
    /* ====== NEW: Filter Bar ====== */
    .filter-bar {
      max-width: var(--max-width);
      margin: 0 auto 30px;
    }
    .filter-row {
      display: flex;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 0.5rem;
    }
    .filter-group {
      display: flex;
      align-items: center;
    }
    .search-group {
      flex: 1;
      min-width: 200px;
      position: relative;
    }
    .search-group i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #9ca3af;
      pointer-events: none;
    }
    #search-input {
      width: 100%;
      padding: 0.6rem 1rem 0.6rem 2.5rem;
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      font-size: 0.95rem;
      transition: border-color 0.3s;
    }
    #search-input:focus {
      outline: none;
      border-color: #f59e0b;
    }
    .filter-group select {
      padding: 0.6rem 2rem 0.6rem 1rem;
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      background-color: white;
      font-size: 0.95rem;
      cursor: pointer;
      min-width: 160px;
      transition: border-color 0.3s;
    }
    .filter-group select:focus {
      outline: none;
      border-color: #f59e0b;
    }
    .filter-results-count {
      color: #6b7280;
      font-size: 0.9rem;
    }
    /* ====== NEW: Login Required Modal ====== */
    .login-modal-overlay {
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
    }
    .login-modal-content {
      background: white;
      border-radius: 24px;
      padding: 40px;
      max-width: 400px;
      width: 90%;
      text-align: center;
      position: relative;
      animation: modalSlideIn 0.3s ease;
    }
    @keyframes modalSlideIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .login-modal-close {
      position: absolute;
      right: 1rem;
      top: 1rem;
      font-size: 1.5rem;
      cursor: pointer;
      color: #9ca3af;
      background: none;
      border: none;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.2s;
    }
    .login-modal-close:hover {
      background: #f3f4f6;
      color: #374151;
    }
    .login-modal-body h3 {
      margin-bottom: 0.5rem;
      color: #111827;
      font-size: 1.3rem;
    }
    .login-modal-body p {
      color: #6b7280;
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
    }
    .login-modal-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }
    .login-modal-actions .btn-modal-primary {
      background: #f59e0b;
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: background-color 0.3s;
    }
    .login-modal-actions .btn-modal-primary:hover {
      background: #d97706;
    }
    .login-modal-actions .btn-modal-secondary {
      background: #f3f4f6;
      color: #374151;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: background-color 0.3s;
    }
    .login-modal-actions .btn-modal-secondary:hover {
      background: #e5e7eb;
    }
    /* ====== NEW: Hidden / No Results ====== */
    .product-card.hidden { display: none !important; }
    .no-results-message {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px;
    }
    /* ====== PRODUCT IMAGE GALLERY ====== */
    .product-image-gallery {
      position: relative;
    }
    .gallery-main {
      height: 200px;
      background: linear-gradient(135deg, #d4edda, #c8e6c9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      color: #28a745;
      overflow: hidden;
      cursor: zoom-in;
      position: relative;
    }
    .gallery-main img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s;
    }
    .gallery-main:hover img {
      transform: scale(1.05);
    }
    .gallery-main.no-image {
      cursor: default;
    }
    .gallery-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0,0,0,0.6);
      color: white;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .gallery-thumbs {
      display: flex;
      gap: 4px;
      padding: 8px;
      background: #f8f9fa;
    }
    .gallery-thumb {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      overflow: hidden;
      cursor: zoom-in;
      flex-shrink: 0;
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .gallery-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .gallery-thumb.more {
      background: rgba(0,0,0,0.5);
      color: white;
      font-weight: 700;
      font-size: 0.85rem;
    }
    .gallery-thumb.more span {
      pointer-events: none;
    }
    /* ====== GALLERY MODAL ====== */
    .gallery-modal-overlay {
      position: fixed;
      z-index: 3000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
    .gallery-modal-overlay.active {
      display: flex;
    }
    .gallery-modal-close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 2.5rem;
      cursor: pointer;
      background: none;
      border: none;
      z-index: 3001;
      transition: color 0.2s;
    }
    .gallery-modal-close:hover {
      color: #f59e0b;
    }
    .gallery-modal-main {
      max-width: 80vw;
      max-height: 60vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .gallery-modal-main img {
      max-width: 100%;
      max-height: 60vh;
      object-fit: contain;
      border-radius: 12px;
    }
    .gallery-modal-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.2);
      color: white;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      z-index: 3001;
    }
    .gallery-modal-nav:hover {
      background: rgba(255,255,255,0.4);
    }
    .gallery-modal-prev { left: 20px; }
    .gallery-modal-next { right: 20px; }
    .gallery-modal-counter {
      color: white;
      font-size: 1rem;
      margin-top: 20px;
      opacity: 0.8;
    }
    .gallery-modal-strip {
      display: flex;
      gap: 10px;
      margin-top: 20px;
      max-width: 80vw;
      overflow-x: auto;
      padding: 10px;
      scrollbar-width: thin;
    }
    .gallery-modal-strip::-webkit-scrollbar {
      height: 6px;
    }
    .gallery-modal-strip::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.3);
      border-radius: 3px;
    }
    .gallery-modal-thumb {
      width: 80px;
      height: 80px;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      flex-shrink: 0;
      border: 3px solid transparent;
      transition: border-color 0.2s;
      opacity: 0.6;
    }
    .gallery-modal-thumb.active {
      border-color: #f59e0b;
      opacity: 1;
    }
    .gallery-modal-thumb:hover {
      opacity: 1;
    }
    .gallery-modal-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    /* ============================================
       UPLOAD MODAL
       ============================================ */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .modal-overlay.active {
      display: flex;
      opacity: 1;
    }
    .modal-content-upload {
      background: white;
      border-radius: 24px;
      padding: 40px;
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      transform: scale(0.9);
      transition: transform 0.3s;
    }
    .modal-overlay.active .modal-content-upload {
      transform: scale(1);
    }
    .modal-close {
      position: absolute;
      top: 20px; right: 20px;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--text-muted);
      cursor: pointer;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .modal-close:hover {
      background: var(--light);
      color: var(--text);
    }
    .modal-content-upload h2 {
      font-size: 1.8rem;
      font-weight: 800;
      margin-bottom: 8px;
      color: var(--text);
    }
    .modal-content-upload > p {
      color: var(--text-muted);
      margin-bottom: 24px;
    }
    .upload-form .form-group {
      margin-bottom: 16px;
    }
    .upload-form .form-group label {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }
    .upload-form .form-group input,
    .upload-form .form-group select,
    .upload-form .form-group textarea {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      font-family: inherit;
      font-size: 0.95rem;
      transition: all 0.2s;
      background: white;
    }
    .upload-form .form-group input:focus,
    .upload-form .form-group select:focus,
    .upload-form .form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
    }
    .upload-form .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .upload-form .file-upload {
      border: 2px dashed #e9ecef;
      border-radius: 12px;
      padding: 30px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
    }
    .upload-form .file-upload:hover {
      border-color: var(--primary);
      background: #f8fff8;
    }
    .upload-form .file-upload i {
      font-size: 2rem;
      color: var(--primary);
      margin-bottom: 8px;
    }
    .upload-form .file-upload p {
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .upload-form .file-upload input[type="file"] {
      display: none;
    }
    .btn-upload-submit {
      width: 100%;
      padding: 14px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 8px;
    }
    .btn-upload-submit:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }
    .alert {
      padding: 12px 16px;
      border-radius: 12px;
      margin-bottom: 16px;
      font-size: 0.9rem;
    }
    .alert-success {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    .alert-error {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }
    /* ============================================
       HOW IT WORKS
       ============================================ */
    .how-it-works {
      background: linear-gradient(135deg, #28a745 0%, #218838 100%);
      padding: 60px var(--content-padding);
      text-align: center;
      color: white;
    }
    .steps-grid {
      max-width: 1100px;
      margin: 40px auto 0;
      display: flex;
      gap: 24px;
    }
    .step-card {
      flex: 1;
      background: rgba(255,255,255,0.95);
      border-radius: 16px;
      padding: 30px 20px;
      color: #1e7e34;
    }
    .step-card h3 {
      color: #1e7e34;
      font-size: 1.2rem;
      font-weight: 700;
      margin: 16px 0 8px;
    }
    .step-card p {
      color: #212529;
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .step-number {
      width: 60px;
      height: 60px;
      background: var(--accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 800;
      color: #1e7e34;
      margin: 0 auto 20px;
    }
    /* ============================================
       APPLY AS ADVISOR
       ============================================ */
    .advisor-section {
      background: var(--white);
      padding: 80px var(--content-padding);
      position: relative;
    }
    .advisor-container {
      max-width: var(--max-width);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }
    .advisor-left h2 {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 16px;
      line-height: 1.2;
    }
    .advisor-left h2 span { color: var(--primary); }
    .advisor-left > p {
      color: var(--text-muted);
      font-size: 1.1rem;
      line-height: 1.7;
      margin-bottom: 32px;
    }
    .advisor-benefits {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-bottom: 32px;
    }
    .advisor-benefit {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text);
      font-size: 0.95rem;
    }
    .advisor-benefit i {
      width: 32px;
      height: 32px;
      background: var(--primary);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
    }
    .advisor-right {
      background: var(--light);
      border-radius: 24px;
      padding: 40px;
      border: 1px solid #e9ecef;
    }
    .advisor-form h3 {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text);
    }
    .advisor-form > p {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 24px;
    }
    .form-group {
      margin-bottom: 16px;
    }
    .form-group label {
      display: block;
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 6px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      font-family: inherit;
      font-size: 0.95rem;
      transition: border-color 0.2s;
      background: white;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
    }
    .form-group textarea {
      resize: vertical;
      min-height: 100px;
    }
    .form-group input[type="file"] {
      padding: 10px;
      cursor: pointer;
    }
    .form-group input[type="file"]::file-selector-button {
      background: var(--primary);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 8px;
      margin-right: 12px;
      cursor: pointer;
      font-family: inherit;
    }
    .btn-submit-advisor {
      width: 100%;
      padding: 14px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }
    .btn-submit-advisor:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }
    /* ============================================
       CTA SECTION
       ============================================ */
    .cta-section {
      background: white;
      padding: 80px var(--content-padding);
      text-align: center;
    }
    .cta-section h2 { font-size: 2.2rem; font-weight: 800; color: #28a745; margin-bottom: 16px; }
    /* ============================================
       FOOTER
       ============================================ */
    .footer {
      background: linear-gradient(135deg, #28a745 0%, #218838 100%);
      padding: 50px var(--content-padding) 30px;
      border-top: 3px solid var(--accent);
      border-top-left-radius: 30px;
      border-top-right-radius: 30px;
      margin-top: 20px;
      color: white;
    }
    .footer-grid {
      max-width: var(--max-width);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
      gap: 40px;
    }
    .footer-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 1.2rem;
      color: white;
      text-decoration: none;
    }
    .footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 12px; }
    .footer h4 { color: white; font-size: 0.95rem; margin-bottom: 16px; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; }
    .footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
    /* ============================================
       SCROLL ANIMATIONS
       ============================================ */
    .scroll-animate {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }
    .scroll-animate.animated {
      opacity: 1;
      transform: translateY(0);
    }
    .delay-1 { transition-delay: 0.1s; }
    .delay-2 { transition-delay: 0.2s; }
    .delay-3 { transition-delay: 0.3s; }
    /* ============================================
       RESPONSIVE
       ============================================ */
    @media (max-width: 992px) {
      .hero-content { grid-template-columns: 1fr; text-align: left; }
      /* FIXED: Keep phones visible on tablet */
      .hero-phone-placeholder { display: flex !important; visibility: visible !important; justify-content: center; margin-top: 30px; }
      .hero p { margin: 0 0 32px; }
      .hero-stats { justify-content: flex-start; }
      .hero-buttons { justify-content: flex-start; flex-wrap: nowrap; }
      .hero-badge { margin-left: 0; }
      .features-container { grid-template-columns: 1fr; }
      .features-left { position: relative; top: 0; height: auto; margin-bottom: 40px; }
      .features-grid { grid-template-columns: 1fr; }
      .advisor-container { grid-template-columns: 1fr; }
      .advisor-left { text-align: center; }
      .advisor-benefits { align-items: center; }
      .steps-grid { flex-direction: column; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: left; }
      .products-grid { grid-template-columns: repeat(2, 1fr); }
      .upload-form .form-row { grid-template-columns: 1fr; }
      .hero-phones-wrapper { height: 400px; }
      .hero-phone { width: 180px; height: 360px; }
      .hero-phone.prev { transform: scale(0.85) translateX(-120px) rotateY(15deg); }
      .hero-phone.next { transform: scale(0.85) translateX(120px) rotateY(-15deg); }
      .filter-row { flex-direction: column; align-items: stretch; }
      .search-group { min-width: 100%; }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .mobile-menu-btn { display: block; color: #ffffff !important; }
      .navbar .nav-logo { color: #ffffff !important; }
      .moving-phone-wrapper { 
        position: relative; 
        height: auto; 
        margin: 20px auto;
        perspective: 1200px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .moving-phone-container {
        position: relative;
        margin: 0 auto;
        left: 0 !important;
        top: 0 !important;
        transform: translateX(0) rotateY(0deg) !important;
      }
      .float-card { 
        display: flex !important; 
        position: absolute;
      }
      .float-card-1 { top: -15px; right: -60px; }
      .float-card-2 { bottom: 60px; left: -70px; }
      .float-card-3 { top: 35%; right: -80px; }
      .features-left { display: none; }
      .hero { padding-top: 70px; }
      .hero-content { grid-template-columns: 1fr; padding: 20px 16px; }
      /* FIXED: Make phones container visible and properly positioned */
      .hero-phone-placeholder { 
        display: block !important; 
        visibility: visible !important;
        width: 100%;
        margin: 30px 0;
        min-height: 380px;
      }
      .hero h1 { font-size: 1.8rem; text-align: left !important; line-height: 1.2; }
      .hero p { font-size: 0.9rem; text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
      .hero-buttons { justify-content: flex-start !important; flex-wrap: nowrap !important; gap: 10px; }
      .hero-stats { justify-content: flex-start !important; gap: 16px; }
      .hero-content { text-align: left !important; }
      .hero-badge { margin-left: 0 !important; font-size: 0.75rem; }
      .btn-primary, .btn-outline { padding: 10px 18px; font-size: 0.85rem; }
      .products-grid { grid-template-columns: 1fr; }
      .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
        text-align: left; 
        gap: 24px;
      }
      .footer-grid > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
      }
      /* FIXED: Adjusted phone sizes and positions for mobile visibility */
      .hero-phones-wrapper { 
        height: 320px; 
        width: 100%;
        position: relative;
        margin: 0 auto;
      }
      .hero-phone { 
        width: 160px; 
        height: 320px; 
      }
      .hero-phone.active { 
        opacity: 1; 
        transform: scale(1) translateY(0);
        left: 50%;
        margin-left: -80px;
      }
      .hero-phone.prev { 
        transform: scale(0.7) translateX(-100px) rotateY(15deg); 
        opacity: 0.4;
        left: 0;
      }
      .hero-phone.next { 
        transform: scale(0.7) translateX(100px) rotateY(-15deg); 
        opacity: 0.4;
        right: 0;
        left: auto;
      }
      .phone-nav-dots { 
        bottom: -30px;
        background: rgba(0,0,0,0.4);
        padding: 4px 12px;
        border-radius: 20px;
      }
      .hero-phone-content { padding: 30px 8px 40px; }
      .hero-msg { font-size: 0.6rem; padding: 5px 8px; }
      .hero-chat-header { font-size: 0.6rem; }
    }
    /* Extra small devices */
    @media (max-width: 550px) {
      .hero-phone-placeholder { min-height: 340px; }
      .hero-phones-wrapper { height: 280px; }
      .hero-phone { width: 140px; height: 280px; }
      .hero-phone.active { margin-left: -70px; }
      .hero-phone.prev { transform: scale(0.65) translateX(-80px) rotateY(15deg); }
      .hero-phone.next { transform: scale(0.65) translateX(80px) rotateY(-15deg); }
      .hero-phone-content { padding: 25px 6px 35px; }
      .hero-msg { font-size: 0.55rem; padding: 4px 6px; }
    }
    /* Mobile nav text force white */
    @media (max-width: 768px) {
      .navbar.scrolled .nav-logo,
      .navbar.scrolled .mobile-menu-btn,
      .navbar .nav-logo,
      .navbar .mobile-menu-btn { color: #ffffff !important; }
    }