/* ============================================================
   BOSOM BUDDY NEXUS — GLOBAL STYLESHEET
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-black: #1A1A1A;
  --primary-orange: #FF8C42;
  --primary-blue: #0066FF;
  --primary-green: #00AA00;
  --orange-dark: #e67a22;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 28px rgba(0,0,0,0.12);
  --sidebar-width: 275px;
  --bg-body: #0b0b0b;
  --card-bg: #181818;
  --text-color: #eef2f6;
  --text-muted: #a0abb8;
  --border-color: #2c2c2c;
  --sidebar-bg: #050505;
  --header-bg: #050505;
  --footer-bg: #050505;
  --ticker-bg: rgba(0,0,0,0.75);
  --nav-link-color: #c8d6e5;
  --nav-hover-bg: rgba(255,140,66,0.18);
}

body.light {
  --bg-body: #f4f6fa;
  --card-bg: #ffffff;
  --text-color: #1a1a1a;
  --text-muted: #4b5563;
  --border-color: #e2e8f0;
  --sidebar-bg: #0f0f0f;
  --header-bg: #0f0f0f;
  --footer-bg: #0f0f0f;
  --ticker-bg: rgba(0,0,0,0.55);
  --nav-link-color: #d1d9e6;
  --nav-hover-bg: rgba(255,140,66,0.12);
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-color);
  transition: background 0.25s, color 0.2s;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1001;
  border-right: 2px solid var(--primary-orange);
  display: flex;
  flex-direction: column;
  padding: 1.2rem 0.8rem 0.8rem;
  box-shadow: 3px 0 20px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
}

.sidebar-logo {
  flex-shrink: 0;
  text-align: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,140,66,0.2);
  margin-bottom: 0.2rem;
}

.sidebar-logo img {
  width: 100px;
  height: auto;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-logo img:hover {
  transform: scale(1.04);
}

.sidebar-logo h2 {
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.3px;
}

.sidebar-logo h2 span:nth-child(1) { color: var(--primary-blue); }
.sidebar-logo h2 span:nth-child(2) { color: var(--primary-orange); }
.sidebar-logo h2 span:nth-child(3) { color: var(--primary-green); }

.sidebar-logo p {
  color: #adb9cc;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.6rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-orange) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--primary-orange); border-radius: 20px; }

.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--nav-link-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
}

.sidebar-nav .nav-link i {
  width: 22px;
  font-size: 1rem;
  transition: 0.2s;
}

.sidebar-nav .nav-link:hover {
  background: var(--nav-hover-bg);
  color: var(--primary-orange);
  transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--primary-orange), #e07b2e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,140,66,0.3);
}

.sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,140,66,0.15);
  padding-top: 12px;
  margin-top: 4px;
}

.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.theme-row span {
  color: #b3c2d8;
  font-size: 0.75rem;
}

.toggle-switch {
  width: 44px;
  height: 22px;
  background: #333a4a;
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle-switch .knob {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: 0.25s;
}

body.light .toggle-switch { background: #333a4a; }
body.light .toggle-switch .knob { transform: translateX(0); }

body:not(.light) .toggle-switch { background: var(--primary-orange); }
body:not(.light) .toggle-switch .knob { transform: translateX(22px); }

.sidebar-copy {
  color: #7b8aa3;
  font-size: 0.6rem;
  text-align: center;
  padding: 10px 0 4px;
}

.sidebar-copy i { color: var(--primary-orange); }

/* ---------- HEADER / TICKER ---------- */
.sticky-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 999;
  background: var(--header-bg);
  border-bottom: 2px solid var(--primary-orange);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: left 0.3s;
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0.5rem;
  background: var(--ticker-bg);
}

.ticker-track {
  display: inline-flex;
  animation: scrollTicker 36s linear infinite;
}

.ticker-track span {
  padding: 0 2.2rem;
  font-weight: 600;
  color: #eef2f6;
  font-size: 0.8rem;
}

.ticker-track i {
  margin-right: 8px;
  color: var(--primary-orange);
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ---------- MAIN ---------- */
.main-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 62px;
  margin-left: var(--sidebar-width);
  padding: 30px 28px 0;
  transition: margin-left 0.3s;
  min-height: calc(100vh - 62px);
}

main {
  flex: 1 0 auto;
  padding-bottom: 30px;
}

.page {
  display: none;
  animation: fadeUp 0.4s ease;
}

.page.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 100%),
              url('images/print.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 30px;
  border-radius: 28px;
  color: white;
  text-align: center;
  margin-bottom: 40px;
  border: 2px solid var(--primary-orange);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
  border-radius: 28px;
}

.hero h1, .hero p, .hero .btn {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--primary-orange);
  text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.hero h1 span:nth-child(1) { color: var(--primary-blue); }
.hero h1 span:nth-child(2) { color: var(--primary-orange); }
.hero h1 span:nth-child(3) { color: var(--primary-green); }

.hero p {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 12px auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  font-weight: 500;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-orange), #d96f1e);
  color: white;
  padding: 10px 32px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(255,140,66,0.35);
  text-decoration: none;
  z-index: 2;
  position: relative;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,140,66,0.45);
}

/* ---------- PAGE TITLES ---------- */
.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  border-left: 6px solid var(--primary-orange);
  padding-left: 16px;
  margin: 0 0 1.5rem 0;
  color: var(--text-color);
}

.page-title span:nth-child(1) { color: var(--primary-blue); }
.page-title span:nth-child(2) { color: var(--primary-orange); }
.page-title span:nth-child(3) { color: var(--primary-green); }

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  border-left: 6px solid var(--primary-orange);
  padding-left: 16px;
  margin: 2rem 0 1rem;
  color: var(--primary-orange);
}

.service-list {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.service-list:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-orange);
}

.service-list ul { list-style: none; }

.service-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.service-list li:last-child { border-bottom: 0; }

.service-list li i {
  width: 28px;
  color: var(--primary-orange);
  font-size: 1.2rem;
}

.badge {
  background: var(--primary-orange);
  color: white;
  font-size: 0.65rem;
  border-radius: 40px;
  padding: 0.2rem 0.8rem;
  margin-left: 8px;
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.8rem;
}

.team-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-orange);
  margin-bottom: 14px;
  background: #ccc;
}

.team-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}

.team-tab {
  padding: 8px 20px;
  border-radius: 40px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  color: var(--text-color);
}

.team-tab.active {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

.team-tab:hover { border-color: var(--primary-orange); }

.team-group { display: none; }
.team-group.active { display: grid; }

/* ---------- CONTACT ---------- */
.contact-detail {
  margin: 0.6rem 0;
  font-size: 0.95rem;
}

.contact-detail i {
  width: 28px;
  color: var(--primary-orange);
}

.support-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.support-link {
  padding: 0.6rem 1.5rem;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: 0.2s;
}

.support-link:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.sms { background: #34B7F1; }

/* ---------- ABOUT ---------- */
.about-hero {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%),
              url('images/videoproduction.png');
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  padding: 60px 30px;
  color: white;
  text-align: center;
  border: 2px solid var(--primary-orange);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  margin-bottom: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-hero h1 {
  font-size: 2.4rem;
  color: var(--primary-orange);
  text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.about-hero h1 span:nth-child(1) { color: var(--primary-blue); }
.about-hero h1 span:nth-child(2) { color: var(--primary-orange); }
.about-hero h1 span:nth-child(3) { color: var(--primary-green); }

.about-hero p {
  max-width: 700px;
  font-size: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* ---------- FOOTER ---------- */
footer {
  flex-shrink: 0;
  background: var(--footer-bg);
  color: #9aa8b9;
  padding: 20px 28px;
  border-top: 2px solid var(--primary-orange);
  text-align: center;
  font-size: 0.85rem;
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  transition: background 0.25s, width 0.3s, margin-left 0.3s;
  margin-top: auto;
}

footer i {
  color: var(--primary-orange);
  margin: 0 4px;
}

/* ---------- SIDEBAR TOGGLE (mobile) ---------- */
.sidebar-toggle {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 1002;
  background: #1a1a1a;
  color: white;
  border: 2px solid var(--primary-orange);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: 0.2s;
}

.sidebar-toggle:hover { background: var(--primary-orange); }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    width: 290px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay.active { display: block; }
  .sticky-header { left: 0; }
  .main-wrapper {
    margin-left: 0;
    padding: 30px 16px 0;
  }
  footer {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px;
  }
  .hero h1, .about-hero h1 { font-size: 1.6rem; }
  .hero, .about-hero {
    min-height: 220px;
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .main-wrapper { padding: 20px 12px 0; }
  .hero, .about-hero {
    padding: 32px 16px;
    min-height: 180px;
  }
  .hero h1, .about-hero h1 { font-size: 1.4rem; }
  .btn { padding: 8px 22px; font-size: 0.8rem; }
  .team-grid { grid-template-columns: 1fr; }
  footer { padding: 20px 12px; }
  .map-container iframe { height: 240px !important; }
}

/* ---------- MAP ---------- */
.map-container iframe {
  height: 320px !important;
  border-radius: 20px;
}

/* ---------- SLIDER ---------- */
.slider-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background: #1a1a1a;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slider-container img {
  width: 100%;
  flex: 0 0 100%;
  height: auto;
  aspect-ratio: 800/400;
  object-fit: cover;
  display: block;
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.slider-caption i {
  color: var(--primary-orange);
  margin-right: 8px;
}

.slider-controls {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.slider-controls .btn { padding: 6px 20px; }

.slider-indicator {
  text-align: center;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.slider-indicator i {
  color: var(--primary-orange);
  margin-right: 6px;
}

/* ---------- HOME DASHBOARD ---------- */
.home-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0 1rem;
}

.home-dash-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.8rem 1.2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: 0.2s;
  text-align: center;
}

.home-dash-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-orange);
}

.home-dash-card i {
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: 0.5rem;
}

.home-dash-card h3 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.home-dash-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.home-cta {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border-color);
  text-align: center;
  margin: 1.8rem 0;
}

.home-cta .btn { margin-top: 0.8rem; }

/* ---------- QUICK ACCESS ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.quick-card {
  background: var(--card-bg);
  padding: 2rem 1rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-color);
  transition: 0.25s;
  box-shadow: var(--shadow);
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-orange);
}

.quick-card i {
  font-size: 2.2rem;
  color: var(--primary-orange);
  margin-bottom: 0.8rem;
  display: block;
}

.quick-card h4 { font-weight: 600; }
.quick-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- LEGAL DOCS ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.legal-card {
  background: var(--card-bg);
  padding: 1.5rem 1rem;
  border-radius: 20px;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: 0.25s;
}

.legal-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-4px);
}

.legal-card i {
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: 0.5rem;
  display: block;
}

.legal-card .view-doc {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 6px 16px;
  background: var(--primary-orange);
  color: white;
  border-radius: 40px;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}

/* ---------- EVENTS ---------- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.event-item {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 6px solid var(--primary-orange);
  box-shadow: var(--shadow);
}

.event-item h3 { color: var(--primary-orange); }

.event-item .date {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- LOADING SCREENS ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  font-family: 'Inter', sans-serif;
  transition: opacity 1s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-screen .spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

#loading-screen .spinner img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
}

#loading-screen .spinner .ring {
  position: absolute;
  inset: 0;
  border: 5px solid #2c2c2c;
  border-top: 5px solid var(--primary-orange);
  border-right: 5px solid var(--primary-blue);
  border-bottom: 5px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loading-screen h2 {
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 1rem;
}

#loading-screen h2 span:nth-child(1) { color: var(--primary-blue); }
#loading-screen h2 span:nth-child(2) { color: var(--primary-orange); }
#loading-screen h2 span:nth-child(3) { color: var(--primary-green); }

#loading-screen p {
  color: #a0abb8;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

#page-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  flex-direction: column;
  color: white;
}

#page-loader.active { display: flex; }

#page-loader .spinner {
  position: relative;
  width: 64px;
  height: 64px;
}

#page-loader .spinner img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 2;
}

#page-loader .spinner .ring {
  position: absolute;
  inset: 0;
  border: 4px solid #2c2c2c;
  border-top: 4px solid var(--primary-orange);
  border-right: 4px solid var(--primary-blue);
  border-bottom: 4px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

#page-loader span {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-top: 0.8rem;
}

/* ---------- PORTFOLIO / VIDEO (COMPACT) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.video-info {
  padding: 0.55rem 0.7rem 0.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-info h4 {
  margin-bottom: 0.2rem;
  color: var(--text-color);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-info p {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.video-tags .tag {
  background: var(--border-color);
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.58rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.portfolio-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.portfolio-tab {
  padding: 10px 24px;
  border-radius: 40px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  color: var(--text-color);
}

.portfolio-tab.active {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

.portfolio-tab:hover { border-color: var(--primary-orange); }

.portfolio-content { display: none; }
.portfolio-content.active { display: block; }

/* ---------- NOTIFICATION POPUP ---------- */
.notification-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card-bg);
  border-left: 6px solid var(--primary-orange);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 9997;
  max-width: 360px;
  animation: slideUp 0.5s ease;
  border: 1px solid var(--border-color);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-popup .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.notification-popup h4 {
  color: var(--primary-orange);
  margin-bottom: 0.3rem;
}

.notification-popup p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.notification-popup .days {
  font-weight: 700;
  color: var(--primary-blue);
}

/* ============================================================
   PRODUCT & SERVICE CARDS (compact grid)
   ============================================================ */

#productsContainer,
#servicesContainer {
  display: grid;
  gap: 0.75rem;
}

#productsContainer {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

#servicesContainer {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* ----- PRODUCT CARD ----- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-orange);
}

.product-card .product-img-wrap {
  position: relative;
  padding-top: 58%;
  background: var(--bg-body);
  overflow: hidden;
}

.product-card .product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-card .product-img-wrap .stock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
}

.product-card .product-img-wrap .stock-badge.in-stock { background: rgba(76, 175, 80, 0.9); }
.product-card .product-img-wrap .stock-badge.out-of-stock { background: rgba(220, 40, 40, 0.9); }

.product-card .product-info {
  padding: 0.6rem 0.7rem 0.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-info h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-color);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-info p {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.product-card .product-meta .price {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--primary-blue);
}

.product-card .product-meta .stock {
  font-size: 0.62rem;
  font-weight: 600;
}

.product-card .product-meta .stock.in-stock { color: var(--primary-green); }
.product-card .product-meta .stock.out-of-stock { color: #f85149; }

/* ----- SERVICE CARD ----- */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem 0.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-hover);
}

.service-card .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 152, 0, 0.12);
  color: var(--primary-orange);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.service-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-color);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.service-card .service-meta .price {
  font-weight: 700;
  color: var(--primary-orange);
  font-size: 0.78rem;
}

/* ----- STATS BAR ----- */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-item i {
  font-size: 0.8rem;
  color: var(--primary-orange);
}

.stat-item strong {
  font-size: 0.8rem;
  color: var(--text-color);
}

.refresh-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 4px 14px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  margin-left: auto;
}

.refresh-btn:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: scale(1.02);
}

.refresh-btn i {
  font-size: 0.75rem;
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----- TOAST ----- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #da3633;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 90vw;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  font-size: 1.1rem;
}

.toast .close-toast {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
}

.toast .close-toast:hover {
  opacity: 1;
}

/* ----- EMPTY / LOADING STATES ----- */
#productsContainer .empty-state,
#productsContainer .loading-state,
#servicesContainer .empty-state,
#servicesContainer .loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
}

.empty-state i,
.loading-state i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.empty-state p,
.loading-state p {
  font-size: 0.8rem;
}

.spinner-dots {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE — GRIDS
   ============================================================ */

@media (max-width: 600px) {
  #productsContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  #servicesContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product-card .product-info h3 { font-size: 0.72rem; }
  .product-card .product-info p { font-size: 0.62rem; -webkit-line-clamp: 2; }
  .product-card .product-meta .price { font-size: 0.75rem; }
  .product-card .product-meta .stock { font-size: 0.58rem; }

  .service-card h3 { font-size: 0.74rem; }
  .service-card p { font-size: 0.62rem; }
  .service-card .service-meta .price { font-size: 0.72rem; }
  .service-card .icon-wrap {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0.8rem;
    gap: 0.35rem;
  }
  .stat-item { font-size: 0.68rem; }
  .stat-item strong { font-size: 0.74rem; }
  .refresh-btn { margin-left: 0; margin-top: 0.2rem; }

  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 100%;
    font-size: 0.75rem;
    padding: 10px 14px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #productsContainer { grid-template-columns: repeat(3, 1fr); }
  #servicesContainer { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1025px) {
  #productsContainer { grid-template-columns: repeat(4, 1fr); }
  #servicesContainer { grid-template-columns: repeat(4, 1fr); }
}