/* ============================================================================
 * public/assets/css/brand.css — Master stylesheet
 * Member Technologies
 * ----------------------------------------------------------------------------
 * NOTE: All chat-widget styling (launcher, choice dropdown, customer panel,
 *       admin agent console) lives inside views/partials/chat.ejs so the
 *       widget is fully self-contained. This file has no .chat-*, no
 *       .admin-chat-*, no .chat-launcher, no .chat-panel rules.
 *
 * v3 — Logo height on desktop is now 70px. Header height raised to 90px
 *      to give the larger logo vertical breathing room. Responsive values
 *      scaled proportionally on tablets and phones.
 * ========================================================================== */

/* ============================================================
 * 1. VARIABLES
 * ============================================================ */
:root {
  --primary-color:    #2c3e6e;
  --secondary-color:  #3a4f8a;
  --accent-color:     #4fc3f7;
  --accent-hover:     #3fb3e5;
  --gold:             #ffb300;
  --gold-soft:        #ffd54f;
  --danger:           #dc3545;
  --danger-hover:     #c82333;
  --success:          #28a745;
  --success-hover:    #218838;
  --warning:          #ffc107;
  --info:             #17a2b8;
  --text-color:       #333333;
  --text-muted:       #666666;
  --text-soft:        #999999;
  --light-text:       #f8f9fa;
  --background-color: #f5f7fa;
  --card-bg:          #ffffff;
  --white:            #ffffff;
  --border-color:     #dddddd;
  --border-soft:      #eeeeee;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow:    0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-height: 90px;         /* was 70px — raised for the 70px logo */
  --topstrip-height: 34px;
  --container-max: 1280px;
}

/* ============================================================
 * 2. RESET
 * ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: calc(var(--topstrip-height) + var(--header-height));
}
img, video, audio { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-color); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* ============================================================
 * 3. CONTAINER
 * ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide   { max-width: 1600px; }
.container-narrow { max-width: 900px; }

main { flex: 1; padding-top: 0; }

/* ============================================================
 * 4. TOP STRIP
 * ============================================================ */
.top-strip {
  background: #1a2649;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  height: var(--topstrip-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002;
  overflow: hidden;
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  height: 100%;
}
.top-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.top-strip-left .ts-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.top-strip-left .ts-contact:hover { color: var(--accent-color); }
.top-strip-left .ts-contact i { font-size: 13px; }
.top-strip-left .ts-label { display: inline; }
.top-strip-left .divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.top-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-strip-right a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  padding: 2px;
}
.top-strip-right a:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

/* Mobile: show icons only, keep social icons visible */
@media (max-width: 768px) {
  .top-strip { font-size: 11px; }
  .top-strip .container { padding: 0 10px; gap: 8px; }
  .top-strip-left { gap: 12px; }
  .top-strip-left .ts-label { display: none; }
  .top-strip-left .ts-contact i { font-size: 15px; }
  .top-strip-right { display: flex; gap: 8px; }
  .top-strip-right a { font-size: 14px; }
}

@media (max-width: 400px) {
  .top-strip-left { gap: 10px; }
  .top-strip-right { gap: 6px; }
  .top-strip-right a { font-size: 13px; }
}

/* ============================================================
 * 5. HEADER
 * ============================================================ */
.site-header {
  position: fixed;
  top: var(--topstrip-height);
  left: 0; right: 0;
  height: var(--header-height);
  background: var(--primary-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  z-index: 1001;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: 100%;
  max-width: var(--container-max);
  margin-left: 0 auto;
  padding: 0 10px;
}

/* Brand — logo height 70px on desktop */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform var(--transition);
  text-decoration: none;
  height: 100%;
}
.brand:hover { transform: scale(1.03); }
.brand img {
  height: 70px;
  width: auto;
  border-radius: 6px;
  display: block;
}
.brand .logo-desktop { display: block; }
.brand .logo-mobile  { display: none;  }

/* Primary nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav li { position: relative; }
.main-nav a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav li.active > a {
  background: rgba(255, 255, 255, 0.10);
  color: var(--accent-color);
}
.main-nav a i { font-size: 0.85rem; }

/* Dropdown menu — always vertical */
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: 340px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(79, 195, 247, 0.25);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 50;
  display: flex;
  flex-direction: column;
  list-style: none;
}
.main-nav li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown-menu li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: none;
}
.main-nav .dropdown-menu a {
  color: var(--text-color);
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 0.88rem;
  white-space: nowrap;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.main-nav .dropdown-menu a:hover {
  background: #f0f7fc;
  color: var(--primary-color);
  font-weight: 600;
}
.main-nav .dropdown-menu a i {
  width: 16px;
  text-align: center;
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Header action icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background var(--transition), transform var(--transition);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

/* User menu */
.user-menu { position: relative; }
.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  padding: 4px 12px 4px 4px;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
}
.user-avatar-btn:hover { background: rgba(255, 255, 255, 0.16); }
.user-avatar-btn img,
.user-avatar-btn .avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.user-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.user-menu .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 50;
  list-style: none;
}
.user-menu:hover .dropdown-menu,
.user-menu.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu .dropdown-menu .menu-header {
  padding: 10px 18px 8px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.user-menu .dropdown-menu .menu-header .name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}
.user-menu .dropdown-menu .menu-header .email {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}
.user-menu .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.user-menu .dropdown-menu a:hover { background: #f0f7fc; color: var(--primary-color); }
.user-menu .dropdown-menu a i { width: 16px; text-align: center; color: var(--primary-color); }
.user-menu .dropdown-menu .logout-link { color: var(--danger); }
.user-menu .dropdown-menu .logout-link i { color: var(--danger); }

/* Auth buttons */
.auth-buttons-header { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary  { background: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 195, 247, 0.35); }
.btn-dark     { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-dark:hover { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; transform: translateY(-2px); }
.btn-outline  { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); transform: translateY(-2px); }
.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-hover); transform: translateY(-2px); }
.btn-ghost    { background: transparent; border: 1px solid var(--border-color); color: var(--text-color); }
.btn-ghost:hover { background: #f3f4f7; border-color: var(--primary-color); color: var(--primary-color); }
.btn:disabled, .btn.disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hamburger — fills its container */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.hamburger i {
  font-size: inherit;
  line-height: 1;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.12); }

/* ============================================================
 * 6. MOBILE DRAWER
 * ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--primary-color);
  z-index: 1101;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
.mobile-drawer.active { right: 0; }

.mobile-drawer .drawer-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  min-height: 76px;
}
.mobile-drawer .drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.mobile-drawer .drawer-brand img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
}
.mobile-drawer .drawer-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.mobile-drawer .drawer-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.mobile-drawer .drawer-user-info {
  min-width: 0;
  overflow: hidden;
}
.mobile-drawer .drawer-user-info .name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-drawer .drawer-user-info .email {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-drawer .drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-drawer .drawer-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255,255,255,0.06);
  min-height: 0;
  max-height: none;
}
.mobile-drawer .drawer-nav::-webkit-scrollbar { width: 8px; }
.mobile-drawer .drawer-nav::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); }
.mobile-drawer .drawer-nav::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 8px;
}

.mobile-drawer .drawer-nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s;
}
.mobile-drawer .drawer-nav > a:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent-color); }
.mobile-drawer .drawer-nav > a i {
  width: 20px;
  text-align: center;
  color: var(--accent-color);
}
.mobile-drawer .drawer-logout { color: #ff8a80 !important; }
.mobile-drawer .drawer-logout i { color: #ff8a80 !important; }

/* Drawer dropdown */
.mobile-drawer .drawer-dropdown { border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-drawer .drawer-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 22px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-drawer .drawer-dropdown-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.mobile-drawer .drawer-dropdown-toggle i:first-child {
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}
.mobile-drawer .drawer-dropdown-toggle .drawer-chevron {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.mobile-drawer .drawer-dropdown[data-dropdown-open="true"] .drawer-chevron { transform: rotate(180deg); }
.mobile-drawer .drawer-subnav {
  display: none;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 0;
}
.mobile-drawer .drawer-subnav.open { display: block; }
.mobile-drawer .drawer-subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px 9px 44px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  transition: background 0.15s, color 0.15s;
}
.mobile-drawer .drawer-subnav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mobile-drawer .drawer-subnav a i {
  color: var(--accent-color);
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.mobile-drawer .drawer-foot {
  flex-shrink: 0;
  padding: 12px 20px 60px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
.mobile-drawer .drawer-foot .btn {
  margin-bottom: 8px;
}

@media (max-height: 700px) {
  .mobile-drawer .drawer-nav {
    max-height: 55vh;
  }
  .mobile-drawer .drawer-foot {
    padding-bottom: 30px;
  }
}

/* ============================================================
 * 7. TICKER
 * ============================================================ */
.ticker {
  background: linear-gradient(90deg, #1a2649 0%, #2c3e6e 60%, #1a2649 100%);
  color: #ffffff;
  padding: 9px 0;
  border-bottom: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 5;
}
.ticker-control {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1rem;
  padding: 0 12px;
  cursor: pointer;
  transition: color var(--transition);
}
.ticker-control:hover { color: #ffffff; }
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 22px;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
}
.ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}
.ticker-item i { color: var(--gold); }
.ticker-item a {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: underline;
}
.ticker-item a:hover { color: var(--gold); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
 * 8. HERO / SLIDESHOW
 * ============================================================ */
.hero {
  position: relative;
  height: 78vh;
  min-height: 540px;
  background: #0f1c3d;
  overflow: hidden;
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26,38,73,0.88) 0%, rgba(26,38,73,0.65) 45%, rgba(26,38,73,0.25) 100%);
}
.hero-content-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text { max-width: 640px; color: #ffffff; padding: 20px 0; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(79, 195, 247, 0.15);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(79, 195, 247, 0.35);
}
.hero-title {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}
.hero-title .accent { color: var(--accent-color); }
.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0;
  transition: all var(--transition);
}
.hero-dots button.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  width: 30px;
  border-radius: 6px;
}

/* ============================================================
 * 9. SECTIONS
 * ============================================================ */
.section { padding: 60px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--primary-color); color: #fff; }
.section-dark a { color: var(--accent-color); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
 * 10. CARDS
 * ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f5f7fa;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .thumb .badge.gold { background: var(--gold); color: var(--primary-color); }
.product-card .thumb .badge.success { background: var(--success); }
.product-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card .category {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card .title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 6px;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .title a { color: inherit; }
.product-card .title a:hover { color: var(--accent-color); }
.product-card .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 2.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.product-card .price { font-size: 1.1rem; font-weight: 800; color: var(--primary-color); }
.product-card .price.sale { color: var(--danger); }
.product-card .price-old { font-size: 0.85rem; color: var(--text-soft); text-decoration: line-through; }
.product-card .qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: 12px;
  align-self: flex-start;
}
.product-card .qty-stepper button {
  background: transparent;
  border: none;
  width: 30px;
  height: 32px;
  font-size: 0.9rem;
  color: var(--primary-color);
  transition: background var(--transition);
}
.product-card .qty-stepper button:hover { background: #f0f7fc; }
.product-card .qty-stepper input {
  width: 40px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}
.product-card .qty-stepper input::-webkit-outer-spin-button,
.product-card .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.product-card .actions .btn { flex: 1; min-width: 0; padding: 8px 12px; font-size: 0.82rem; }

/* Service card variant */
.product-card.service-card .thumb::after {
  content: 'Service';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(79, 195, 247, 0.95);
  color: var(--primary-color);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.empty-state i { font-size: 3rem; color: var(--border-color); margin-bottom: 12px; display: block; }
.empty-state p { font-size: 1rem; margin-bottom: 16px; }

/* ============================================================
 * 11. FORMS
 * ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: #fafbfc;
  color: var(--text-color);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled { background: #f2f3f5; color: var(--text-muted); cursor: not-allowed; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group .hint { display: block; font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
  cursor: pointer;
}
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 44px; }
.input-with-icon .toggle-pw,
.input-with-icon .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}
.input-with-icon .toggle-pw:hover { background: rgba(0, 0, 0, 0.05); color: var(--primary-color); }

/* ============================================================
 * 12. TABLES / PILLS / PAGINATION
 * ============================================================ */
.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table thead th {
  background: #f8fafc;
  color: var(--primary-color);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-color);
  white-space: nowrap;
}
.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text-color); vertical-align: middle; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr:last-child td { border-bottom: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.pill.pending, .pill.pending_payment { background: #fff8e1; color: #8a6d3b; }
.pill.confirmed, .pill.processing, .pill.shipped { background: #e3f2fd; color: #0d47a1; }
.pill.delivered, .pill.completed, .pill.paid, .pill.accepted, .pill.converted, .pill.active, .pill.resolved { background: #e8f5e9; color: #1b5e20; }
.pill.cancelled, .pill.failed, .pill.refunded, .pill.declined, .pill.dropped, .pill.escalated { background: #fce4ec; color: #b71c1c; }
.pill.part, .pill.paused, .pill.reviewing, .pill.quoted { background: #fff3cd; color: #856404; }
.pill.open, .pill.applied, .pill.new { background: #e3f2fd; color: #0d47a1; }
.pill.closed, .pill.hired { background: #e8f5e9; color: #1b5e20; }
.pill.draft { background: #eceff1; color: #37474f; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.pagination a:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--primary-color); }
.pagination .active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; background: #f5f5f5; }

/* ============================================================
 * 13. MODALS
 * ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  animation: modal-in 0.22s ease;
}
.modal-lg { max-width: 900px; }
.modal-xl { max-width: 1200px; }
.modal-sm { max-width: 420px; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
.modal-head h3 { font-size: 1.1rem; color: var(--primary-color); font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; color: var(--text-soft); font-size: 1.5rem; line-height: 1; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.modal-close:hover { background: #f3f4f7; color: var(--danger); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }

/* ============================================================
 * 14. TOASTS
 * ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
  pointer-events: none;
}
.toast {
  background: #fff;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }
.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  margin-top: 1px;
}
.toast.success .toast-icon { background: var(--success); }
.toast.error   .toast-icon { background: var(--danger); }
.toast.warning .toast-icon { background: var(--warning); color: #333; }
.toast.info    .toast-icon { background: var(--info); }
.toast-body { flex: 1; line-height: 1.5; word-break: break-word; }
.toast-close { background: none; border: none; color: var(--text-soft); cursor: pointer; font-size: 1rem; padding: 0 2px; }

/* ============================================================
 * 15. BADGES
 * ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--danger);
  color: #fff;
  min-width: 20px;
  height: 20px;
}
.badge.soft  { background: #e8edf5; color: var(--primary-color); }
.badge.gold  { background: var(--gold); color: var(--primary-color); }
.badge.success { background: var(--success); color: #fff; }

/* ============================================================
 * 16. AUTH PAGES
 * ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #eef2f7 0%, #dbe6f3 100%);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 34px 30px;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { width: 70px; height: auto; border-radius: 50%; margin: 0 auto 10px; }
.auth-brand h1 { color: var(--primary-color); font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.auth-brand p { color: var(--text-muted); font-size: 0.9rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-soft); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: #3c4043;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-google:hover { background: #f8f9fa; border-color: #4285F4; box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2); color: #3c4043; }
.btn-google i { color: #4285F4; font-size: 1.1rem; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent-color); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.otp-input-group { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.otp-input-group input {
  width: 52px; height: 62px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: #fafbfc;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.otp-input-group input:focus { border-color: var(--accent-color); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.2); }
.otp-input-group input.error { border-color: var(--danger); background: #fef5f6; }

/* ============================================================
 * 17. CART / CHECKOUT
 * ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.cart-items { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border-soft); }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item .thumb { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; background: #f3f4f7; display: flex; align-items: center; justify-content: center; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .meta .title { font-weight: 700; font-size: 1rem; color: var(--primary-color); margin-bottom: 4px; }
.cart-item .meta .price-unit { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 10px; }
.cart-item .qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: 40px; overflow: hidden; }
.cart-item .qty-stepper button { background: transparent; border: none; width: 32px; height: 34px; color: var(--primary-color); font-size: 1rem; }
.cart-item .qty-stepper input { width: 44px; height: 34px; border: none; text-align: center; font-size: 0.9rem; font-weight: 700; -moz-appearance: textfield; }
.cart-item .qty-stepper input::-webkit-outer-spin-button, .cart-item .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-item .actions-cell { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item .line-total { font-weight: 800; color: var(--primary-color); font-size: 1.05rem; }
.cart-item .remove-btn { background: none; border: none; color: var(--text-soft); font-size: 1rem; padding: 4px; cursor: pointer; }
.cart-item .remove-btn:hover { color: var(--danger); }

.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-height) + var(--topstrip-height) + 20px);
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.cart-summary .row.total { border-top: 2px solid var(--border-soft); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; color: var(--primary-color); }
.cart-summary .row .label { color: var(--text-muted); }
.cart-summary .btn-block { margin-top: 16px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
.checkout-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); padding: 24px; margin-bottom: 20px; }
.checkout-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; }
.checkout-card h3 .step { background: var(--primary-color); color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fafbfc;
  transition: all var(--transition);
}
.payment-option:hover { border-color: var(--accent-color); }
.payment-option.selected { border-color: var(--accent-color); background: #f0f7fc; box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15); }
.payment-option input { display: none; }
.payment-option .icon { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-color); color: var(--accent-color); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.payment-option .text .label { font-weight: 700; color: var(--primary-color); font-size: 0.95rem; }
.payment-option .text .desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.payment-option.disabled { opacity: 0.5; cursor: not-allowed; background: #f2f3f5; }

.order-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); padding: 22px; position: sticky; top: calc(var(--header-height) + var(--topstrip-height) + 20px); }
.order-summary h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.order-summary .item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.88rem; }
.order-summary .item:last-of-type { border-bottom: none; }
.order-summary .item .thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f3f4f7; flex-shrink: 0; }
.order-summary .item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-summary .item .meta { flex: 1; min-width: 0; }
.order-summary .item .meta .title { font-weight: 600; font-size: 0.88rem; color: var(--primary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-summary .item .meta .qty { color: var(--text-muted); font-size: 0.78rem; }
.order-summary .item .line-total { font-weight: 700; color: var(--primary-color); white-space: nowrap; }
.order-summary .totals { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--border-soft); }
.order-summary .totals .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.order-summary .totals .row .label { color: var(--text-muted); }
.order-summary .totals .row.grand { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 1.2rem; font-weight: 800; color: var(--primary-color); }

/* ============================================================
 * 18. NEWS
 * ============================================================ */
.news-hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; padding: 60px 0 50px; text-align: center; }
.news-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.5px; }
.news-hero p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .cover { aspect-ratio: 16 / 9; background: #f3f4f7; overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.news-card .cat { font-size: 0.72rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 6px; }
.news-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--primary-color); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--accent-color); }
.news-card .excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--text-soft); padding-top: 12px; border-top: 1px solid var(--border-soft); }
.news-card .meta .stats { display: flex; gap: 12px; }
.news-card .meta i { margin-right: 4px; }

.news-featured { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 40px; border: 1px solid var(--border-soft); }
.news-featured .cover { min-height: 380px; background: #f3f4f7; overflow: hidden; }
.news-featured .cover img { width: 100%; height: 100%; object-fit: cover; }
.news-featured .body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.news-featured .cat { color: var(--accent-color); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 12px; }
.news-featured h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--primary-color); line-height: 1.25; margin-bottom: 14px; }
.news-featured h2 a { color: inherit; }
.news-featured h2 a:hover { color: var(--accent-color); }
.news-featured p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.news-featured .meta { color: var(--text-soft); font-size: 0.85rem; }

.article-header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); padding: 60px 20px; color: #fff; text-align: center; }
.article-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.25; max-width: 860px; margin: 0 auto 16px; letter-spacing: -0.5px; }
.article-header .meta { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.article-header .meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 36px 40px; border: 1px solid var(--border-soft); font-size: 1.02rem; line-height: 1.85; color: #2d3748; }
.article-body img, .article-body video { margin: 20px auto; border-radius: var(--radius); max-width: 100%; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--primary-color); margin: 26px 0 12px; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary-color); margin: 22px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 14px 0; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent-color); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--accent-color); background: #f0f7fc; padding: 14px 20px; margin: 18px 0; color: #475569; font-style: italic; border-radius: 0 8px 8px 0; }
.article-body pre { background: #f1f5f9; padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 0.88rem; }
.article-body code { font-family: 'Courier New', monospace; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-body th, .article-body td { border: 1px solid var(--border-color); padding: 10px; text-align: left; }

.article-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; margin-top: 16px; border-top: 1px solid var(--border-soft); }
.like-button { display: inline-flex; align-items: center; gap: 8px; background: #fce4ec; color: var(--danger); border: none; padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: transform var(--transition), background var(--transition); }
.like-button:hover { background: #f8bbd0; transform: scale(1.03); }
.like-button.liked i { animation: like-pop 0.5s ease; }
@keyframes like-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-buttons a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem; transition: transform var(--transition), opacity var(--transition); }
.share-buttons a:hover { transform: translateY(-3px); color: #fff; }
.share-buttons .fb { background: #1877f2; }
.share-buttons .tw { background: #000; }
.share-buttons .li { background: #0a66c2; }
.share-buttons .wa { background: #25D366; }
.share-buttons .tg { background: #0088cc; }
.share-buttons .em { background: #ea4335; }
.share-buttons .cp { background: #64748b; }
.share-buttons .tt { background: #000; }

.comments-wrap { margin-top: 30px; }
.comments-wrap h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary-color); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color); display: inline-block; }
.comment-form-box { background: #f8fafc; border-radius: var(--radius); padding: 20px; margin-bottom: 24px; border: 1px solid var(--border-soft); }
.comment-thread { margin-bottom: 18px; }
.comment-thread .comment { background: #fff; border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border-soft); margin-bottom: 10px; }
.comment-thread .comment .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-thread .comment .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--accent-color); color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.comment-thread .comment .name { font-weight: 700; color: var(--primary-color); font-size: 0.92rem; }
.comment-thread .comment .when { font-size: 0.75rem; color: var(--text-soft); }
.comment-thread .comment .pinned { background: var(--gold); color: var(--primary-color); font-size: 0.65rem; padding: 1px 8px; border-radius: 40px; font-weight: 700; }
.comment-thread .comment .text { font-size: 0.92rem; line-height: 1.6; color: var(--text-color); margin-bottom: 6px; word-break: break-word; }
.comment-thread .comment .actions { display: flex; gap: 14px; font-size: 0.8rem; }
.comment-thread .comment .actions button { background: none; border: none; color: var(--accent-color); font-weight: 600; cursor: pointer; padding: 0; }
.comment-thread .comment .actions button:hover { text-decoration: underline; }
.comment-replies { margin-left: 34px; border-left: 2px solid var(--border-soft); padding-left: 14px; margin-top: 8px; }
.reply-form { display: none; margin-top: 12px; padding: 12px; background: #f0f7fc; border-radius: var(--radius); }
.reply-form.open { display: block; }

/* ============================================================
 * 19. PROFILE
 * ============================================================ */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.profile-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); padding: 22px 16px; position: sticky; top: calc(var(--header-height) + var(--topstrip-height) + 20px); }
.profile-sidebar .avatar-box { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.profile-sidebar .avatar-box img,
.profile-sidebar .avatar-box .avatar-fallback { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-color); background: var(--primary-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; cursor: pointer; }
.profile-sidebar .avatar-box .name { font-weight: 700; color: var(--primary-color); font-size: 1rem; margin-bottom: 2px; }
.profile-sidebar .avatar-box .email { font-size: 0.78rem; color: var(--text-soft); word-break: break-all; }
.profile-nav { display: flex; flex-direction: column; gap: 4px; }
.profile-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; color: var(--text-color); font-weight: 500; font-size: 0.9rem; transition: all var(--transition); }
.profile-nav a:hover { background: #f0f7fc; color: var(--primary-color); }
.profile-nav a.active { background: var(--primary-color); color: #fff; }
.profile-nav a.active i { color: var(--accent-color); }
.profile-nav a i { width: 18px; text-align: center; color: var(--primary-color); }

.profile-main { display: flex; flex-direction: column; gap: 20px; }
.profile-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); padding: 26px; }
.profile-panel h2 { font-size: 1.15rem; font-weight: 800; color: var(--primary-color); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.info-item { padding: 14px 16px; background: #f8fafc; border-radius: var(--radius); border-left: 3px solid var(--accent-color); }
.info-item .label { font-size: 0.75rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.7px; font-weight: 700; margin-bottom: 4px; }
.info-item .value { font-size: 0.95rem; color: var(--primary-color); font-weight: 600; word-break: break-word; }

/* ============================================================
 * 20. FOOTER
 * ============================================================ */
.site-footer { background: #0f1a37; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; max-width: var(--container-max); margin: 0 auto; padding: 0 20px 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 42px; width: auto; border-radius: 6px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-brand span b { color: var(--accent-color); }
.footer-about p { line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: background var(--transition), transform var(--transition); }
.footer-social a:hover { background: var(--accent-color); color: var(--primary-color); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--accent-color); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; transition: color var(--transition), padding-left var(--transition); display: inline-block; }
.footer-col a:hover { color: var(--accent-color); padding-left: 4px; }
.footer-col p { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; line-height: 1.5; }
.footer-col p i { color: var(--accent-color); margin-top: 4px; flex-shrink: 0; width: 14px; }
.footer-payments { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer-payments i { font-size: 1.5rem; color: rgba(255, 255, 255, 0.5); transition: color var(--transition); }
.footer-payments i:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: var(--accent-color); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
 * 21. COOKIE CONSENT
 * ============================================================ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(15, 26, 55, 0.97); color: #fff; padding: 18px 20px; z-index: 9998; display: none; border-top: 2px solid var(--accent-color); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); }
.cookie-banner.active { display: block; }
.cookie-banner-inner { max-width: var(--container-max); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-banner-inner p { flex: 1; min-width: 260px; font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.cookie-banner-inner p a { color: var(--accent-color); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================================
 * 23. LOADING OVERLAY — favicon centered, conic ring spinning
 * ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  z-index: 99997;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: loader-fade-in 0.18s ease-out;
}
.loading-overlay.active { display: flex; }
@keyframes loader-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- The favicon-in-ring wrapper ---- */
.loader-ring {
  position: relative;
  width: 104px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* The rotating conic-gradient ring.
   A radial mask cuts the middle out, leaving a 6px-thick
   ring that rotates independently of the favicon. */
.loader-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(79, 195, 247, 0)    0deg,
    rgba(79, 195, 247, 0)   40deg,
    #4fc3f7                 120deg,
    #2c3e6e                 220deg,
    #4fc3f7                 320deg,
    rgba(79, 195, 247, 0)   360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 6px),
    #000 calc(100% - 6px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 6px),
    #000 calc(100% - 6px)
  );
  animation: loader-ring-spin 1.15s linear infinite;
  transform-origin: center center;
  filter: drop-shadow(0 3px 10px rgba(79, 195, 247, 0.35));
}
@keyframes loader-ring-spin {
  to { transform: rotate(360deg); }
}

/* Soft pulsing halo behind the ring (adds depth) */
.loader-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 195, 247, 0.18) 0%,
    rgba(79, 195, 247, 0) 65%
  );
  animation: loader-halo-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes loader-halo-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 0.35; }
}

/* The favicon itself — pinned in the middle, never rotates */
.loader-favicon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 4px;
  box-shadow:
    0 0 0 3px rgba(79, 195, 247, 0.18),
    0 4px 16px rgba(44, 62, 110, 0.18);
  animation: loader-favicon-breathe 1.8s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes loader-favicon-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* The "Loading…" text below the ring */
.loading-overlay .loading-text {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  margin: 0;
  animation: loader-text-breathe 1.8s ease-in-out infinite;
}
@keyframes loader-text-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .loader-ring::before { animation-duration: 2.4s; }
  .loader-ring::after,
  .loader-favicon,
  .loading-overlay .loading-text { animation: none; }
}

/* Mobile: scale down slightly */
@media (max-width: 480px) {
  .loader-ring { width: 84px; height: 84px; }
  .loader-favicon { width: 46px; height: 46px; }
  .loading-overlay .loading-text { font-size: 0.85rem; }
}

/* Keep the old .spinner-large class as a fallback for any page that
   still uses it directly (e.g. inline loaders in admin views). */
.loading-overlay .spinner-large {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(79, 195, 247, 0.25);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ============================================================
 * 23. UTILITIES
 * ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.border { border: 1px solid var(--border-color); }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 992px) { .hide-desktop { display: none !important; } }
@media (max-width: 991px) { .hide-mobile { display: none !important; } }

/* ============================================================
 * 24. RESPONSIVE
 * ============================================================ */

/* Tablet & below — reduce header height and logo */
@media (max-width: 1100px) {
  .cart-layout { grid-template-columns: 1fr 320px; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  :root {
    --header-height: 76px;       /* smaller header on tablet */
  }
  .main-nav,
  .auth-buttons-header { display: none; }
  .hamburger { display: inline-flex; }
  .brand .logo-desktop { display: none !important; }
  .brand .logo-mobile  { display: block !important; height: 58px; width: auto; }
  .brand img { height: 58px; max-height: calc(var(--header-height) - 12px); }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured .cover { min-height: 260px; }
  .cart-layout,
  .checkout-layout,
  .profile-layout { grid-template-columns: 1fr; }
  .cart-summary,
  .order-summary,
  .profile-sidebar { position: static; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .section { padding: 40px 0; }
  .hero { height: 65vh; min-height: 460px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  .product-card .body { padding: 14px; }
  .product-card .title { font-size: 0.92rem; }
  .product-card .actions .btn { font-size: 0.78rem; padding: 7px 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .otp-input-group { gap: 6px; }
  .otp-input-group input { width: 42px; height: 52px; font-size: 1.2rem; }
  .article-body { padding: 22px 18px; font-size: 0.95rem; }
  .comment-replies { margin-left: 20px; padding-left: 10px; }
  .modal { max-width: 100%; }
  .toast-container { top: auto; bottom: 90px; right: 12px; left: 12px; max-width: none; }
}

/* Phones */
@media (max-width: 600px) {
  :root {
    --header-height: 68px;
  }
  .brand .logo-mobile { height: 58px; }
  .brand img { height: 58px; }
  .header-inner { padding: 0 4px; gap: 12px; margin-left: 10px; }
}

@media (max-width: 480px) {
  :root { --header-height: 62px; --topstrip-height: 30px; }
  .brand img { height: 42px; }
  .brand .logo-mobile { height: 42px; }
  .icon-btn { width: 38px; height: 38px; font-size: 0.95rem; }
  .hero { height: 70vh; min-height: 480px; }
  .hero-title { font-size: 1.35rem; }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
  .section-title { font-size: 1.35rem; }
  .auth-card { padding: 24px 20px; border-radius: var(--radius); }
  .auth-brand h1 { font-size: 1.25rem; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px; }
  .modal-foot .btn { flex: 1; }
  .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 0.78rem; }
  .data-table { font-size: 0.82rem; }
  .data-table thead th, .data-table tbody td { padding: 9px 10px; }
  .cart-item { grid-template-columns: 70px 1fr; padding: 14px; gap: 12px; }
  .cart-item .thumb { width: 70px; height: 70px; }
  .cart-item .actions-cell { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-soft); padding-top: 10px; }
}

/* ============================================================
 * 25. PRINT
 * ============================================================ */
@media print {
  .site-header, .top-strip, .ticker, .site-footer,
  .no-print, .cookie-banner { display: none !important; }
  body { background: #fff; padding-top: 0 !important; }
  main { padding-top: 0; }
  .container { max-width: 100%; padding: 0; }
}

/* ============================================================
 * 26. SCROLLBAR
 * ============================================================ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f1f3f5; }
::-webkit-scrollbar-thumb { background: #c2c9d6; border-radius: 6px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: #98a2b3; }

/* ============================================================
 * 27. TOP STRIP — mobile icons-only (defensive, !important)
 * ============================================================ */
@media (max-width: 768px) {
  .top-strip .top-strip-left > a,
  .top-strip .top-strip-left .ts-contact {
    font-size: 0 !important;
    color: transparent !important;
    gap: 0 !important;
    letter-spacing: 0 !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
  }

  .top-strip .top-strip-left > a > i,
  .top-strip .top-strip-left .ts-contact > i,
  .top-strip .top-strip-left > a > span > i,
  .top-strip .top-strip-left .ts-contact > span > i {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .top-strip .top-strip-left .ts-label,
  .top-strip .top-strip-left .divider {
    display: none !important;
  }

  .top-strip .top-strip-left { gap: 10px !important; }
  .top-strip .top-strip-right { gap: 8px !important; }
  .top-strip .top-strip-right a {
    font-size: 14px !important;
    padding: 2px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .top-strip {
    font-size: 11px !important;
    height: 32px !important;
    padding: 0 !important;
  }
  .top-strip .container {
    padding: 0 10px !important;
    gap: 6px !important;
    height: 100% !important;
  }
}

@media (max-width: 420px) {
  .top-strip .top-strip-left { gap: 6px !important; }
  .top-strip .top-strip-right { gap: 5px !important; }
  .top-strip .top-strip-right a { font-size: 12.5px !important; }
  .top-strip .top-strip-left > a > i,
  .top-strip .top-strip-left .ts-contact > i { font-size: 14px !important; }
}

/* ============================================================================
 * END OF brand.css
 * ========================================================================== */