/* ================================
   Conserv — unified dark theme CSS
   ================================ */

/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }

/* Theme tokens */
:root{
  --bg:#0b1324;
  --panel:#111a2b;
  --panel-2:#0e172a;
  --border:#1d2741;

  --text:#e9edf5;
  --muted:#9aa8c7;

  --primary:#004085;      /* navbar */
  --primary-700:#00346b;
  --accent:#ffdd57;       /* highlight */
  --action:#1c64f2;       /* buttons/CTAs */

  --success:#063;
  --warning:#653;
  --danger:#612;
}

/* Base */
html,body{ height:100%; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Containers */
main{ max-width:1200px; margin:20px auto; padding:0 20px; }
.card{ background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:16px; }

/* =================
   WORLD-CLASS NAVIGATION
   ================= */
.navbar{
  background: linear-gradient(135deg, #004085 0%, #00346b 100%);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

/* Brand/Logo */
.nav-brand .brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: -0.5px;
}
.nav-brand .brand:hover{ opacity: 0.9; text-decoration: none; }
.brand-logo{
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-icon{
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
  flex-shrink: 0;
}
.brand-fallback{
  display: none;
  align-items: center;
  justify-content: center;
}
.brand-text{ 
  white-space: nowrap; 
  margin-left: 4px;
}

/* Center Navigation */
.nav-center{
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
.nav-links{
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-mobile-actions{
  display: none !important;
  width: 100%;
}

.nav-mobile-actions[hidden]{
  display: none !important;
}

/* Navigation Links */
.nav-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
.nav-link svg{
  width: 18px;
  height: 18px;
  stroke-width: 2;
  opacity: 0.9;
}
.nav-link:hover{
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-link.active{
  background: rgba(255, 221, 87, 0.2);
  color: var(--accent);
}
.nav-link.active svg{ color: var(--accent); }

/* Dropdown Chevron */
.nav-link .chevron{
  width: 14px;
  height: 14px;
  margin-left: -2px;
  transition: transform 0.2s;
}
.dropdown[aria-expanded="true"] .nav-link .chevron{
  transform: rotate(180deg);
}

/* Right Side Actions */
.nav-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Payment Button */
.btn-payment{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-payment svg{
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}
.btn-payment:hover{
  background: #ffe770;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 221, 87, 0.3);
  text-decoration: none;
}

/* Auth Buttons */
.btn-ghost{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover{
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.btn-primary{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover{
  background: #ffe770;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 221, 87, 0.3);
  text-decoration: none;
}

/* User Avatar & Menu */
.user-menu-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px 6px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
}
.user-menu-btn:hover{
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.user-menu-btn .chevron{
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.user-dropdown[aria-expanded="true"] .user-menu-btn .chevron{
  transform: rotate(180deg);
}

.user-avatar, .user-avatar-lg{
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: var(--primary);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.user-avatar{
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.user-avatar-lg{
  width: 48px;
  height: 48px;
  font-size: 20px;
}

/* Dropdown Base */
.dropdown{
  position: relative;
}
.dropdown-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}
.dropdown[aria-expanded="true"] .dropdown-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* User Menu Specific */
.user-menu{
  min-width: 280px;
}
.user-menu-header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(0, 64, 133, 0.05) 0%, rgba(0, 52, 107, 0.05) 100%);
  border-radius: 8px;
  margin-bottom: 4px;
}
.user-info{
  flex: 1;
  min-width: 0;
}
.user-name{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-badge{
  display: inline-block;
  background: rgba(0, 64, 133, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.menu-divider{
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 0;
}

.dropdown-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}
.dropdown-item svg{
  width: 18px;
  height: 18px;
  stroke-width: 2;
  opacity: 0.7;
}
.dropdown-item:hover{
  background: rgba(0, 64, 133, 0.08);
  color: var(--primary);
  text-decoration: none;
}
.dropdown-item:hover svg{ opacity: 1; }

/* Mega Menu */
.mega-dropdown .mega-menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 600px;
  max-width: 800px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}
.mega-dropdown[aria-expanded="true"] .mega-menu{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.mega-menu-section{
  min-width: 0;
}
.mega-menu-title{
  font-size: 0.85rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 64, 133, 0.1);
}
.mega-menu-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 4px;
}
.mega-menu-link:hover{
  background: rgba(0, 64, 133, 0.08);
  color: var(--primary);
  text-decoration: none;
  transform: translateX(4px);
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}
.menu-toggle:hover{
  background: rgba(255, 255, 255, 0.1);
}
.menu-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-toggle.active span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2){
  opacity: 0;
  transform: translateX(-10px);
}
.menu-toggle.active span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 1024px){
  body::after {
    content: '';
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 8, 18, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9997;
    pointer-events: none;
  }
  body.menu-open::after {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-center{
    position: fixed !important;
    top: 64px !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(390px, 100vw) !important;
    max-width: 100vw !important;
    height: calc(100dvh - 64px) !important;
    min-height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    background: linear-gradient(180deg, rgba(6, 34, 67, 0.99) 0%, rgba(7, 22, 44, 1) 100%);
    backdrop-filter: blur(16px);
    padding: 18px 16px 24px;
    margin: 0 !important;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 9998;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 44px rgba(0, 0, 0, 0.32);
    pointer-events: none;
  }
  .nav-center.show{
    transform: translateX(0);
    pointer-events: auto;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  .nav-links{
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 1;
  }
  .nav-link{
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .dropdown{
    width: 100%;
  }
  .dropdown .dropdown-toggle{
    width: 100%;
    justify-content: space-between;
  }
  .mega-dropdown .mega-menu{
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
  }
  .mega-dropdown[aria-expanded="true"] .mega-menu{
    transform: none;
  }
  .mega-menu-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mega-menu-title{
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .mega-menu-link{
    color: rgba(255, 255, 255, 0.9);
  }
  .mega-menu-link:hover{
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .nav-mobile-actions{
    display: grid !important;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-mobile-cta,
  .nav-mobile-secondary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
  }
  .nav-mobile-cta{
    background: var(--accent);
    color: var(--primary);
  }
  .nav-mobile-cta svg{
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
  }
  .nav-mobile-secondary{
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
  .nav-mobile-cta:hover,
  .nav-mobile-secondary:hover{
    transform: translateY(-1px);
    text-decoration: none;
  }
  .nav-mobile-user-card{
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-mobile-user-summary{
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav-mobile-user-meta{
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .nav-mobile-user-label{
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
  }
  .nav-mobile-user-email{
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-mobile-auth{
    display: grid;
    gap: 10px;
  }
  .menu-toggle{
    display: flex;
    z-index: 10000;
    position: relative;
  }
  .user-dropdown .dropdown-menu{
    right: 0;
    left: auto;
    z-index: 10000;
  }
  .mega-dropdown .mega-menu{
    z-index: 10000;
  }
  .btn-payment span,
  .btn-ghost,
  .btn-primary{
    display: none;
  }
  .btn-payment{
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 480px){
  .nav-container{
    padding: 0 16px;
  }
  .brand-logo{
    height: 38px;
    max-width: 150px;
  }
  .brand-text{
    font-size: 1.1rem;
  }
  .nav-actions{
    gap: 8px;
  }
  .user-menu-btn{
    padding: 5px 8px 5px 5px;
  }
  .user-menu-btn .chevron{
    width: 14px;
    height: 14px;
  }
  .nav-center{
    padding: 16px 14px 22px;
  }
}

/* =================
   Report Table Styles
   ================= */
.toolbar{ display:flex; flex-wrap:wrap; gap:10px; align-items:end; }
.table-wrap{ width:100%; overflow:auto; border:1px solid var(--border); border-radius:10px; }
.report-table{ width:100%; border-collapse:separate; border-spacing:0; }
.report-table thead th{ position:sticky; top:0; background:var(--panel); z-index:1; cursor:pointer; user-select:none; }
.report-table thead th:hover{ background:#162446; }
.report-table tbody tr:nth-child(odd){ background:rgba(255,255,255,0.02); }
.report-table tbody tr:hover{ background:rgba(255,255,255,0.06); }
.report-table th, .report-table td{ padding:10px 12px; border-bottom:1px solid var(--border); }
.report-table td.numeric, .report-table th.numeric{ text-align:right; font-variant-numeric: tabular-nums; }
.row-total td{ font-weight:800; }

/* =================
   Hero/marketing blocks
   ================= */
.about,.services,.video-section{
  background:var(--panel);
  color:var(--text);
  text-align:center;
  padding:40px 20px;
  border-radius:12px;
  border:1px solid var(--border);
  box-shadow:0 2px 10px rgba(0,0,0,.15);
  margin-top:20px;
}
.about h2,.services h2,.video-section h2{ color:#dbe6ff; margin-bottom:16px; }
.about p,.services p{ color:var(--muted); font-size:1.05rem; }

/* Slideshow */
.slideshow{ position:relative; max-width:100%; margin:20px auto; border-radius:12px; overflow:hidden; box-shadow:0 4px 10px rgba(0,0,0,.25); z-index: 1;}
.slides img{ width:100%; display:none; transition:opacity 1s ease-in-out; }
.slides img.active{ display:block; }

/* Video */
video{ width:100%; max-width:800px; height:300px; border-radius:12px; border:1px solid var(--border); }

/* =================
   Forms (generic)
   ================= */
form{
  /* NOTE: no #fff here to avoid white-on-white */
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
  max-width:520px;
  margin:0 auto;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
}
label{ display:block; margin:.55rem 0 .3rem; font-weight:700; color:var(--text); }
input,select,textarea{
  width:100%; padding:.65rem .75rem;
  background:var(--panel-2);
  color:var(--text);
  border:1px solid #213055;
  border-radius:8px;
  outline:none;
}
input::placeholder,textarea::placeholder{ color:#aab4d0; }

.form-grid{ display:block; }
.form-grid .grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
.checkbox{ display:flex; align-items:center; gap:.5rem; color:var(--muted); }

.auth-card{ max-width:640px; margin:2rem auto; background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:20px; }

/* Buttons */
button,.btn{
  background:var(--action);
  color:#fff;
  border:none;
  padding:.6rem 1rem;
  border-radius:.6rem;
  font-weight:700;
  cursor:pointer;
  transition:filter .2s, background .2s, color .2s;
}
button:hover,.btn:hover{ filter:brightness(1.05); }
button.secondary{ background:var(--primary); }
button.ghost{ background:transparent; border:1px solid var(--border); color:var(--text); }
button.ghost:hover{ background:var(--panel-2); }

/* Flash messages */
.flashes{ max-width:820px; margin:1rem auto; }
.flash{ padding:.6rem .8rem; border-radius:.6rem; margin:.4rem 0; }
.flash.success{ background:var(--success); color:#cfc; }
.flash.info{ background:#024; color:#cfe; }
.flash.warning{ background:var(--warning); color:#fed; }
.flash.danger{ background:var(--danger); color:#fec; }

/* =================
   BuildAdvisor section
   ================= */
.chat{ background:var(--panel-2); border:1px solid var(--border); border-radius:10px; padding:12px; min-height:220px; max-height:360px; overflow:auto; }
.chat-input{ display:flex; gap:8px; }
.bubble{ padding:10px 12px; border-radius:12px; margin:8px 0; max-width:85%; white-space:pre-wrap; }
.bubble.user{ background:#1b2a45; margin-left:auto; }
.bubble.assistant{ background:#13213d; margin-right:auto; }
.hint{ color:var(--muted); font-size:13px; margin-top:8px; }
table{ width:100%; border-collapse:collapse; }
th,td{ padding:8px; border-bottom:1px solid var(--border); text-align:left; }
.total{ margin-top:10px; font-weight:800; }
.notes{ margin-top:8px; color:var(--muted); font-size:13px; }

/* Chat text input (explicit to avoid global overrides) */
input[type="text"].chat-input-field,
.chat-input input[type="text"]{
  background:#0c1428; color:var(--text); border:1px solid #213055;
}

/* =================
   Products / Cart
   ================= */
.product-container{ display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }
.product-card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:12px; width:250px; padding:16px; text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  transition:transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:0 6px 12px rgba(0,0,0,.25); }
.product-card img,.product-image{
  width:100%; height:150px; object-fit:cover; border-radius:10px; margin-bottom:12px;
  border:1px solid var(--border);
}
.product-card h3{ color:#dbe6ff; margin-bottom:8px; }
.product-card p{ color:var(--muted); margin-bottom:10px; }

.quantity-selector{ display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:10px; }
.quantity-selector input{
  width:64px; text-align:center; background:var(--panel-2); color:var(--text);
  border:1px solid #2a3a63; border-radius:8px; padding:6px;
}

.cart-container{
  max-width:900px; margin:20px auto; padding:20px;
  background:var(--panel); border:1px solid var(--border); border-radius:12px;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.cart-table{ width:100%; border-collapse:collapse; margin-bottom:16px; }
.cart-table th,.cart-table td{ padding:10px; text-align:center; border:1px solid var(--border); color:var(--text); }
.cart-summary{ text-align:right; margin-top:10px; }
.cart-summary p{ font-size:1.1rem; color:#e6ebff; }
.cart-summary button{ background:var(--action); color:#fff; padding:10px 20px; border-radius:8px; }

/* Detailed product image */
.detailed-product-image{
  width:100%; max-height:220px; object-fit:cover; border-radius:12px; margin-bottom:10px; border:1px solid var(--border);
}

/* Map */
#map{ height:400px; width:100%; margin-top:20px; border:1px solid var(--border); border-radius:12px; }

/* =================
   Footer
   ================= */
footer{
  background:var(--primary);
  color:#fff;
  text-align:center;
  padding:20px 0; margin-top:20px;
}
footer p{ margin:0; font-size:.95rem; }

/* =================
   Responsive tweaks
   ================= */
@media (max-width:768px){
  .about p,.services p{ font-size:1rem; }
  .auth-card, form{ padding:16px; }
  .form-grid .grid-2{ grid-template-columns:1fr; }
}


.table-qty{
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.qty-btn{
  background:#213055; color:#e9edf5; border:1px solid #2a3a63;
  width:32px; height:32px; border-radius:8px; font-size:18px; line-height:1;
  cursor:pointer;
}
.qty-btn:hover{ filter:brightness(1.1); }
.qty-input{
  width:64px; text-align:center; background:#0e172a; color:#e9edf5;
  border:1px solid #2a3a63; border-radius:8px; padding:6px;
}
.remove-btn{
  background:transparent; color:#e9edf5; border:1px solid #2a3a63; border-radius:8px;
  padding:6px 10px; cursor:pointer;
}
.remove-btn:hover{ background:#1b2a45; }

/* =================
   BuildAdvisor Enhancements
   ================= */

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  justify-content: flex-start;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Message Time */
.msg-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.7;
}

/* Method Badge */
.method-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.method-badge.ai {
  background: rgba(28, 100, 242, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(28, 100, 242, 0.3);
}

.method-badge.formula {
  background: rgba(255, 221, 87, 0.2);
  color: #ffdd57;
  border: 1px solid rgba(255, 221, 87, 0.3);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  text-transform: capitalize;
}

.category-tab:hover {
  background: var(--panel);
  border-color: var(--action);
}

.category-tab.active {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

/* Category Breakdown */
.category-breakdown-item {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--panel-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Secondary Button */
.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--panel);
  border-color: var(--action);
  color: var(--action);
}
