/* ===== CSS Variables & Theme ===== */
:root {
  --primary: #d4380d;
  --primary-dark: #a8200d;
  --secondary: #1a1a2e;
  --accent: #f39c12;
  --bg: #faf8f6;
  --bg-alt: #f3f0ec;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #d5cdc4;
  --shadow: 0 2px 15px rgba(120,90,60,0.10);
  --shadow-lg: 0 10px 40px rgba(120,90,60,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --strip-h: 36px;
  --nav-h: 70px;
  --header-h: calc(var(--nav-h) + var(--strip-h));
  --max-w: 1200px;
  --green: #00b894;
  --yellow: #fdcb6e;
  --red: #e17055;
  --blue: #0984e3;
  --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #2d1f0e 100%);
  --sidebar-text: rgba(255,255,255,0.75);
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(212,56,13,0.2);
  --sidebar-border: rgba(255,255,255,0.08);
  --card-border-accent: #d4380d;
  --table-stripe: rgba(212,56,13,0.03);
  --table-header-bg: #2d2215;
  --table-header-text: rgba(255,255,255,0.85);
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #1a1a2e;
  --bg-card: #16213e;
  --text: #e0e0e0;
  --text-light: #a0a0b0;
  --text-muted: #6c6c80;
  --border: #2a2a40;
  --shadow: 0 2px 15px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --secondary: #e0e0e0;
  --sidebar-bg: linear-gradient(180deg, #0a0a14 0%, #1a1a2e 100%);
  --sidebar-text: rgba(255,255,255,0.6);
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(212,56,13,0.25);
  --sidebar-border: rgba(255,255,255,0.06);
  --card-border-accent: #d4380d;
  --table-stripe: rgba(212,56,13,0.05);
  --table-header-bg: #1a1a2e;
  --table-header-text: rgba(255,255,255,0.8);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--text); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-green { background: rgba(0,184,148,0.15); color: var(--green); border: 1px solid rgba(0,184,148,0.25); }
.badge-yellow { background: rgba(253,203,110,0.2); color: #e67e22; border: 1px solid rgba(253,203,110,0.3); }
.badge-red { background: rgba(225,112,85,0.15); color: var(--red); border: 1px solid rgba(225,112,85,0.25); }
.badge-blue { background: rgba(9,132,227,0.15); color: var(--blue); border: 1px solid rgba(9,132,227,0.25); }

/* ===== Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-alt) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 16px; margin-bottom: 8px; width: 80%; }
.skeleton-title { height: 24px; margin-bottom: 12px; width: 60%; }
.skeleton-img { height: 200px; width: 100%; }

/* ===== Top Call Strip ===== */
.top-call-strip {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  text-align: center;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--strip-h);
  z-index: 1001;
}
.top-call-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-call-msg {
  font-weight: 500;
}
.top-call-btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.top-call-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}
@media (max-width: 480px) {
  .top-call-strip { font-size: 0.78rem; }
  .top-call-inner { gap: 10px; }
}

/* ===== Header / Navbar ===== */
.header {
  position: fixed;
  top: var(--strip-h);
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(212,56,13,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Auth buttons */
.btn-login {
  padding: 8px 20px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-login:hover { background: var(--primary); color: #fff; }

.user-menu {
  position: relative;
  cursor: pointer;
}
.user-menu .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  display: none;
  overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a, .user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-alt); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 14px 16px; font-size: 1rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212,56,13,0.3); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--bg-alt); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

/* ===== Full-Bleed Hero ===== */
.hero-fullbleed {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,20,0.82) 0%, rgba(10,10,20,0.55) 50%, rgba(212,56,13,0.25) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 20px 60px;
  max-width: 850px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.hero-title span {
  background: linear-gradient(135deg, #ff6b35, #d4380d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}
.hero-fullbleed .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-white:hover { background: #fff; color: var(--primary); border-color: #fff; }
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

@media (max-width: 768px) {
  .hero-fullbleed { min-height: 90vh; }
  .hero-inner { padding: 60px 20px 80px; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-fullbleed .hero-btns { flex-direction: column; }
  .hero-fullbleed .hero-btns .btn,
  .hero-fullbleed .hero-btns .btn-outline-white { width: 100%; text-align: center; }
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}
.trust-item span { font-size: 1.1rem; }
.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
@media (max-width: 768px) {
  .trust-divider { display: none; }
  .trust-items { gap: 16px; }
  .trust-item { font-size: 0.78rem; }
}

/* ===== Category Showcase ===== */
.category-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.cat-tile:hover { transform: scale(1.02); }
.cat-tile-lg {
  grid-row: span 2;
  min-height: 460px;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.cat-tile-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
  width: 100%;
}
.cat-tile-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.cat-tile-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.cat-tile-content p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 8px; }
.cat-tile-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .category-showcase { grid-template-columns: 1fr; }
  .cat-tile-lg { grid-row: span 1; min-height: 260px; }
  .cat-tile { min-height: 200px; }
}

/* ===== Stats Counter Section ===== */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #0d0d20 100%);
}
[data-theme="dark"] .stats-section {
  background: linear-gradient(135deg, #16213e 0%, #0a0a14 100%);
}
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.counter-card {
  padding: 30px 16px;
}
.counter-card .counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  display: inline;
  line-height: 1;
}
.counter-card .counter-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.8;
}
.counter-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 768px) {
  .stats-counter-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .counter-card .counter-number { font-size: 2.2rem; }
}

/* ===== Gallery Strip ===== */
.gallery-strip {
  overflow: hidden;
  padding: 4px 0;
  background: var(--bg-alt);
}
.gallery-scroll {
  display: flex;
  gap: 4px;
  animation: galleryScroll 35s linear infinite;
  width: max-content;
}
.gallery-scroll img {
  height: 180px;
  width: auto;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}
@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-strip:hover .gallery-scroll {
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .gallery-scroll img { height: 120px; }
}

/* ===== Features V2 (horizontal cards) ===== */
.features-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card-v2 {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  align-items: flex-start;
}
.feature-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-icon-v2 {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
@media (max-width: 768px) {
  .features-grid-v2 { grid-template-columns: 1fr; }
}

/* ===== Process Steps ===== */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.process-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}
.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(212,56,13,0.3);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.process-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
  position: relative;
}
.process-connector::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
@media (max-width: 768px) {
  .process-steps { flex-direction: column; align-items: center; }
  .process-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }
  .process-connector::after {
    right: -3px;
    top: auto;
    bottom: -3px;
    transform: rotate(45deg);
  }
}

/* ===== CTA V2 (with background image) ===== */
.cta-section-v2 {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,20,0.88) 0%, rgba(212,56,13,0.6) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}
.cta-inner h2 { color: #fff; font-size: 2.2rem; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; line-height: 1.7; }
.cta-section-v2 .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Testimonials V2 ===== */
.testimonials-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card-v2 {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card-v2:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial-quote {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: Georgia, serif;
}
.testimonial-card-v2 .testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}
.testimonial-card-v2 .testimonial-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 16px; }
@media (max-width: 768px) {
  .testimonials-grid-v2 { grid-template-columns: 1fr; }
}

/* ===== Legacy Hero (keep for pages that may use it) ===== */
.hero {
  margin-top: var(--header-h);
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.product-card-img .product-icon {
  font-size: 3rem;
}
.product-card-img .stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.product-card-body {
  padding: 20px;
}
.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.product-card-body .category-label {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-card-body .specs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 10px 0;
}
.product-card-body .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0;
}
.product-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}
.product-card-actions .btn { flex: 1; }

/* ===== Features / Why Choose Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(212,56,13,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn-outline { border-color: #fff; color: #fff; }
.cta-btns .btn-outline:hover { background: #fff; color: var(--primary); }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.testimonial-info h4 { font-size: 0.9rem; }
.testimonial-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: #ccc;
  padding: 60px 0 0;
}
[data-theme="dark"] .footer { background: #0a0a14; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #aaa; font-size: 0.9rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--primary); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-social { justify-content: center; }
}

/* ===== Catalog Page ===== */
.page-header {
  margin-top: var(--header-h);
  padding: 50px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-light); }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.view-toggle {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-btn {
  padding: 8px 12px;
  background: var(--bg-card);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn.active { background: var(--primary); color: #fff; }

/* List View */
.products-list {
  grid-template-columns: 1fr !important;
}
.products-list .product-card {
  display: grid;
  grid-template-columns: 250px 1fr 180px;
  align-items: stretch;
}
.products-list .product-card-img { height: 100%; min-height: 150px; }
.products-list .product-card-body { padding: 20px; }
.products-list .product-card-actions {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 20px;
  gap: 10px;
  border-left: 1px solid var(--border);
}
.products-list .product-card-actions .btn {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .products-list .product-card {
    grid-template-columns: 1fr;
  }
  .products-list .product-card-actions {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .filter-tabs { justify-content: center; }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212,56,13,0.03) 100%);
}
.modal-header h3 { font-size: 1.2rem; }
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  font-family: inherit;
}
.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 .error-msg {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: var(--red); }
.form-group.error .error-msg { display: block; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Toast Notification ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.3s ease;
  font-size: 0.9rem;
}
.toast.toast-success { border-left: 4px solid var(--green); }
.toast.toast-error { border-left: 4px solid var(--red); }
.toast.toast-info { border-left: 4px solid var(--blue); }
.toast.toast-warning { border-left: 4px solid var(--accent); }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-exit { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* ===== Dashboard Styles ===== */
.dashboard {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 240px 1fr;
}
.dash-sidebar {
  background: var(--sidebar-bg);
  border-right: none;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  padding: 24px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.dash-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 12px;
}
.dash-sidebar-header h3 { font-size: 1rem; color: var(--sidebar-text-active); }
.dash-sidebar-header p { font-size: 0.8rem; color: var(--sidebar-text); }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 10px;
  color: var(--sidebar-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
}
.dash-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--sidebar-text-active);
}
.dash-nav a.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  border-left-color: var(--primary);
}
.dash-content {
  padding: 30px;
  overflow-y: auto;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(212,56,13,0.03) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(26,26,46,0.03) 0%, transparent 50%);
}
.dash-content::-webkit-scrollbar { width: 8px; }
.dash-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.dash-content::-webkit-scrollbar-track { background: transparent; }
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.dash-header h2 {
  font-size: 1.5rem;
  position: relative;
  padding-left: 14px;
}
.dash-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--card-border-accent);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212,56,13,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.stat-card h3 { font-size: 1.8rem; font-weight: 800; }
.stat-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th {
  background: var(--table-header-bg);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--table-header-text);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}
.data-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.data-table tbody tr:nth-child(even) td { background: var(--table-stripe); }
.data-table tr:hover td { background: rgba(212,56,13,0.06); }

/* ===== Action Panel ===== */
.action-panel {
  padding: 16px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(212,56,13,0.02) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

/* ===== About Page ===== */
.about-hero {
  margin-top: var(--header-h);
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-hero-content h1 { font-size: 2.5rem; margin-bottom: 16px; }
.about-hero-content h1 span { color: var(--primary); }
.about-hero-content p { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; }

.ceo-section {
  padding: 80px 0;
}
.ceo-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.ceo-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 5rem;
}
.ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.ceo-photo span { font-size: 1rem; margin-top: 8px; font-weight: 600; }
.ceo-info h2 { font-size: 1.8rem; margin-bottom: 4px; }
.ceo-info .ceo-title { color: var(--primary); font-weight: 600; margin-bottom: 20px; font-size: 1rem; }
.ceo-info p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.ceo-info .ceo-vision {
  padding: 20px;
  background: rgba(212,56,13,0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 20px;
}
.ceo-info .ceo-vision h4 { color: var(--primary); margin-bottom: 8px; }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.capability-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.capability-card .cap-icon { font-size: 2.5rem; margin-bottom: 12px; }
.capability-card h3 { font-size: 1rem; margin-bottom: 6px; }
.capability-card p { font-size: 0.85rem; color: var(--text-light); }

/* ===== About Story Grid ===== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-story-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-story-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.about-story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-img-main {
  grid-column: span 2;
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.about-img-secondary {
  grid-column: span 2;
  border-radius: var(--radius);
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ===== CEO V2 Card ===== */
.ceo-card-v2 {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.ceo-left-col {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.ceo-photo-v2 {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.ceo-photo-v2 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.ceo-sidebar-info {
  margin-top: 20px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ceo-sidebar-info h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.ceo-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.ceo-sidebar-stat {
  text-align: center;
  padding: 10px 4px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}
.ceo-sidebar-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 800;
}
.ceo-sidebar-stat span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ceo-sidebar-contact p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.ceo-sidebar-contact p:last-child { margin-bottom: 0; }

/* CEO Achievements Grid */
.ceo-achievements { margin-top: 24px; }
.ceo-achievements h4 { margin-bottom: 16px; }
.ceo-achieve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ceo-achieve-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.ceo-achieve-item span {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ceo-achieve-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ===== Certifications Grid ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.cert-card {
  text-align: center;
  padding: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
}
.cert-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cert-card-img {
  width: 100%;
  aspect-ratio: 0.75;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
}
.cert-card-body {
  padding: 20px 20px 24px;
}
.cert-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cert-badge-gold { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #5a3e00; }
.cert-badge-blue { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); color: #1a3a5c; }
.cert-badge-green { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #1a4a3a; }
.cert-icon {
  width: 72px;
  height: 72px;
  background: rgba(212,56,13,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.cert-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cert-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.cert-card .cert-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.cert-card .cert-meta span { display: block; margin-top: 2px; }

/* Certificate Lightbox */
.cert-lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); z-index: 9999;
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
}
.cert-lightbox.active { display: flex; }
.cert-lightbox img {
  max-width: 90vw; max-height: 90vh; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Certifications trust strip on homepage */
.cert-trust-strip {
  background: var(--bg-alt);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cert-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cert-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cert-trust-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.cert-trust-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.cert-trust-item .cert-trust-text h4 {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text);
}
.cert-trust-item .cert-trust-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-hero-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .ceo-card-v2 { grid-template-columns: 1fr; padding: 24px; }
  .ceo-left-col { position: static; max-width: 320px; margin: 0 auto; }
  .ceo-photo-v2 { max-width: 280px; margin: 0 auto; }
  .ceo-card { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 250px; margin: 0 auto; }
  .ceo-achieve-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; max-width: 400px; }
  .cert-trust-inner { gap: 16px; }
  .cert-trust-item { padding: 10px 14px; }
}

/* ===== About Page – Sticky Section Navigator ===== */
.about-section-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.about-section-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.about-nav-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.about-nav-pill {
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  text-align: left;
}
.about-nav-pill:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.about-nav-pill.active {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 1024px) {
  .about-section-nav { display: none; }
}

/* ===== About Page – VMV Tabbed Section ===== */
#vision-mission-values .tabs {
  justify-content: center;
  border-bottom: none;
  gap: 8px;
  margin-bottom: 32px;
}
#vision-mission-values .tab-btn {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
#vision-mission-values .tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  border-bottom-color: var(--primary);
}
#vision-mission-values .tab-btn:hover:not(.active) {
  background: var(--bg-alt);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(212,56,13,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.85rem; color: var(--text-light); }
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 30px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Contact Cards Strip ===== */
.contact-cards-strip {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.contact-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.contact-quick-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}
.contact-quick-card h4 { font-size: 1rem; margin-bottom: 6px; }
.contact-quick-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ===== Contact Grid V2 ===== */
.contact-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-form-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-map-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-container-v2 {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.map-container-v2 iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-whatsapp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.whatsapp-icon-big {
  width: 48px;
  height: 48px;
  background: rgba(37,211,102,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-whatsapp-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-whatsapp-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.contact-whatsapp-card .btn { flex-shrink: 0; }
.contact-product-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
}
.contact-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
  gap: 12px;
}
.contact-product-img-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-cards-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid-v2 { grid-template-columns: 1fr; }
  .contact-whatsapp-card { flex-direction: column; text-align: center; }
}

/* ===== Dashboard Mobile ===== */
@media (max-width: 768px) {
  .dashboard { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: fixed;
    left: -260px;
    top: var(--header-h);
    bottom: 0;
    width: 260px;
    z-index: 500;
    transition: left var(--transition);
  }
  .dash-sidebar.open { left: 0; }
  .dash-content {
    padding: 20px;
    background-image: none;
  }
  .dash-toggle {
    display: block !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card h3 { font-size: 1.4rem; }
  .stat-card p { font-size: 0.8rem; }
  .data-table {
    display: block;
    overflow-x: auto;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.dash-toggle { display: none; }

/* ===== Floating Buttons ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  z-index: 900;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.fab-whatsapp:hover { transform: scale(1.1); color: #fff; }

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 34px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Inquiry Cart Sidebar ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1400;
  display: none;
}
.cart-overlay.show { display: block; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.1rem; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  align-items: center;
}
.cart-item-img {
  width: 50px;
  height: 50px;
  background: var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.85rem; margin-bottom: 2px; }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== Animations (Intersection Observer) ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Empty State ===== */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 0.9rem; }

/* ===== Login Modal Specific ===== */
.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.login-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--transition);
}
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== RFQ Form ===== */
.rfq-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}
.rfq-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rfq-step.active { color: var(--primary); font-weight: 600; }
.rfq-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.rfq-step.active .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.rfq-step.completed .step-num { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Favorites heart */
.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 4px;
}
.fav-btn.active { color: var(--red); }
.fav-btn:hover { color: var(--red); }

/* Order status */
.status-timeline-wrap {
  margin-top: 8px;
}
.status-timeline {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.status-dot.completed { background: var(--green); }
.status-dot.current { background: var(--primary); animation: pulse 1.5s infinite; }
.status-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}
.status-line.completed { background: var(--green); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,56,13,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(212,56,13,0); }
}

/* Status step labels */
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.status-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .status-label { font-size: 0.55rem; }
  .status-timeline { gap: 2px; }
}

/* Negotiation badge */
.badge-purple { background: rgba(108,92,231,0.15); color: #6c5ce7; border: 1px solid rgba(108,92,231,0.25); }
.badge-orange { background: rgba(255,152,0,0.15); color: #f57c00; border: 1px solid rgba(255,152,0,0.25); }

/* Negotiation thread */
.negotiation-thread {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.negotiation-thread::-webkit-scrollbar { width: 6px; }
.negotiation-thread::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.negotiation-thread::-webkit-scrollbar-track { background: transparent; }

.neg-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}
.neg-message.sent {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
}
.neg-message.sent .neg-meta { color: rgba(255,255,255,0.7); }
.neg-message.received {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.neg-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.neg-price {
  font-weight: 700;
  font-size: 1rem;
  margin: 6px 0;
}
.neg-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Order detail modal wider */
.modal-wide { max-width: 700px; }

/* Order info grid */
.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.order-info-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}
.order-info-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Clickable table row */
.data-table tr.clickable-row { cursor: pointer; }
.data-table tr.clickable-row:hover td { background: rgba(212,56,13,0.04); }

/* ===== Orders Toolbar ===== */
.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.orders-toolbar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.orders-toolbar .filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.orders-toolbar .filter-group input,
.orders-toolbar .filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.orders-toolbar .filter-group input:focus,
.orders-toolbar .filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.orders-toolbar .toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}
@media (max-width: 768px) {
  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .orders-toolbar .filter-group {
    width: 100%;
  }
  .orders-toolbar .filter-group input,
  .orders-toolbar .filter-group select {
    width: 100%;
  }
  .orders-toolbar .toolbar-actions {
    margin-left: 0;
    justify-content: stretch;
  }
  .orders-toolbar .toolbar-actions .btn {
    flex: 1;
  }
}

/* ===== Utility Animations ===== */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== Print Styles ===== */
@media print {
  .header, .footer, .fab-whatsapp, .back-to-top, .cart-sidebar, .cart-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
