/* ============================================================
   MHS SOLUTIONS — PREMIUM STYLESHEET
   css/styles.css
   ============================================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --color-bg:           #0a0a0a;
  --color-surface:      #111111;
  --color-card:         #141414;
  --color-card-alt:     #0f0f0f;
  --color-border:       rgba(255, 255, 255, 0.06);
  --color-border-gold:  rgba(245, 197, 24, 0.28);
  --color-gold:         #f5c518;
  --color-gold-glow:    rgba(245, 197, 24, 0.14);
  --color-text:         #e2e2e2;
  --color-chalk:        #7a7a7a;
  --color-white:        #ffffff;
  --color-danger:       #ff5252;
  --font-heading:       'Montserrat', sans-serif;
  --font-body:          'Inter', sans-serif;
  --radius-sm:          6px;
  --radius-md:          12px;
  --radius-lg:          18px;
  --shadow-card:        0 6px 32px rgba(0, 0, 0, 0.55);
  --shadow-gold:        0 0 28px rgba(245, 197, 24, 0.12);
  --ease:               cubic-bezier(0.4, 0, 0.2, 1);
  --transition:         0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max:      1200px;
  --nav-height:         72px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ---- LAYOUT UTILITIES ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.text-center  { text-align: center; }
.text-chalk   { color: var(--color-chalk); }
.highlight-text { color: var(--color-gold); }

/* ---- BUTTONS ---- */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.72rem;
}

.btn-lg {
  padding: 17px 40px;
  font-size: 0.86rem;
}

.btn-hero {
  padding: 15px 32px;
  font-size: 0.82rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.glass {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

/* Nav center */
#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-chalk);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links li a:hover {
  color: var(--color-white);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.nav-active {
  color: var(--color-white);
}

.nav-links li a.nav-active::after {
  width: 100%;
}

/* Nav CTA group */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Call Now button in nav */
.btn-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-border-gold);
  background: rgba(245, 197, 24, 0.06);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav-call:hover {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
}

/* Hamburger */
.mobile-menu-icon {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.mobile-menu-icon:hover { color: var(--color-gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 80px) 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero.hero-bg {
  background-image: url('../assets/images/hero-lab.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.80) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 0;
}

/* Grid lines texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

/* Ambient gold glow */
.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  left: -5%;
  width: 65%;
  height: 80%;
  background: radial-gradient(
    ellipse at top left,
    rgba(245, 197, 24, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: fadeInUp 0.9s var(--ease) both;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-border-gold);
  background: rgba(245, 197, 24, 0.07);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 26px;
  letter-spacing: -0.028em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-chalk);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.88;
}

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

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-chalk);
}

.stat-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 36px;
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  z-index: 2;
  animation: bounceY 2.2s ease-in-out infinite;
  transition: color var(--transition);
}

.hero-scroll-hint:hover { color: var(--color-gold); }

@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   SECTIONS — COMMON
   ============================================================ */
section {
  padding: 100px 0;
}

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.section-heading {
  margin-bottom: 60px;
}

.section-heading h2,
.academy-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  color: var(--color-white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-heading .subtitle {
  font-size: 1rem;
  color: var(--color-chalk);
  max-width: 560px;
  line-height: 1.75;
}

.text-center .subtitle { margin: 0 auto; }

/* ============================================================
   CARDS GRID
   ============================================================ */
.grid-cards.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ============================================================
   MODERN CARD
   ============================================================ */
.card.modern-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.card.modern-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card.modern-card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.card.modern-card:hover::before { opacity: 1; }

.card.modern-card.dark-accent {
  background: var(--color-card-alt);
  border-color: rgba(255, 255, 255, 0.04);
}

.card.modern-card.dark-accent:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

/* Card icon */
.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 197, 24, 0.09);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background var(--transition), box-shadow var(--transition);
}

.card-icon i {
  font-size: 1.05rem;
  color: var(--color-gold);
}

.card.modern-card:hover .card-icon {
  background: rgba(245, 197, 24, 0.16);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.18);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.card p {
  font-size: 0.88rem;
  color: var(--color-chalk);
  line-height: 1.78;
}

/* SEO Badge */
.badge-container { margin-top: 20px; }

.seo-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(245, 197, 24, 0.07);
  border: 1px solid rgba(245, 197, 24, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.gradient-bg {
  background: linear-gradient(160deg, #0c0c0c 0%, #0f0e07 55%, #0a0a0a 100%);
  position: relative;
}

.gradient-bg::after {
  content: '';
  position: absolute;
  bottom: -5%; right: -5%;
  width: 55%; height: 110%;
  background: radial-gradient(
    ellipse at bottom right,
    rgba(245, 197, 24, 0.035) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.bg-matte    { background: #0c0c0c; }
.bg-darkgray { background: #0e0e0e; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Image frame */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #080808;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-frame--tall {
  min-height: 480px;
}

.img-frame-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Split content */
.split-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--color-white);
  margin: 10px 0 18px;
  letter-spacing: -0.02em;
}

.split-content p {
  font-size: 0.93rem;
  color: var(--color-chalk);
  line-height: 1.82;
  margin-bottom: 24px;
}

/* ============================================================
   SERVICE AREA
   ============================================================ */
.section-service-area .split-layout {
  gap: 56px;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  margin: 22px 0 28px;
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.coverage-list li i {
  color: var(--color-gold);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.split-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.split-note {
  font-size: 0.8rem;
  color: var(--color-chalk);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.split-note i { color: var(--color-gold); }

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.comparison-col {
  padding: 36px 32px;
  border-radius: var(--radius-md);
}

.comparison-typical {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.comparison-mhs {
  background: rgba(245, 197, 24, 0.04);
  border: 1px solid var(--color-border-gold);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.comparison-header h3 {
  font-size: 0.97rem;
  font-weight: 700;
}

.typical-hdr i { color: var(--color-danger); font-size: 1.15rem; }
.typical-hdr h3 { color: rgba(255, 255, 255, 0.5); }

.mhs-hdr i { color: var(--color-gold); font-size: 1.15rem; }
.mhs-hdr h3 { color: var(--color-white); }

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.comparison-typical .comparison-list li { color: rgba(255, 255, 255, 0.38); }
.comparison-typical .comparison-list li i {
  color: var(--color-danger);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.68rem;
}

.comparison-mhs .comparison-list li { color: var(--color-text); }
.comparison-mhs .comparison-list li i {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.68rem;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.comparison-vs {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   LAB SECTION
   ============================================================ */
.lab-layout {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 60px;
  align-items: start;
}

.lab-header-col .section-label { margin-bottom: 12px; }

.lab-header-col h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--color-white);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.lab-header-col > p {
  font-size: 0.91rem;
  color: var(--color-chalk);
  line-height: 1.82;
  margin-bottom: 28px;
}

.lab-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.lab-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.lab-img-wrap:hover img { transform: scale(1.04); }

.lab-cards-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lab-cards-col .card.modern-card {
  padding: 28px 24px;
}

/* ============================================================
   HIGH-END LOCKSMITHING
   ============================================================ */
.highend-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}

.highend-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   VEHICLE SECURITY (VIDEO BG)
   ============================================================ */
.section-security {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: #050505;
}

.security-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.security-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.security-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 55%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.security-content {
  position: relative;
  z-index: 1;
}

.security-inner { max-width: 740px; }

.security-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--color-white);
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}

.security-sub {
  font-size: 0.94rem;
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.8;
}

.security-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 36px;
  margin: 36px 0 40px;
}

.security-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.security-icon {
  width: 44px;
  height: 44px;
  background: rgba(245, 197, 24, 0.09);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-icon i { color: var(--color-gold); font-size: 0.98rem; }

.security-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 5px;
}

.security-text p {
  font-size: 0.82rem;
  color: var(--color-chalk);
  line-height: 1.65;
}

/* ============================================================
   TRADITIONAL LOCKSMITH
   ============================================================ */
.traditional-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trad-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.trad-card:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.trad-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #080808;
}

.trad-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.trad-card:hover .trad-img-wrap img {
  transform: scale(1.06);
}

.trad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.trad-badge {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--color-gold);
  padding: 3px 10px;
  border-radius: 4px;
}

.trad-badge--emergency {
  background: var(--color-danger);
  color: var(--color-white);
}

.trad-body {
  padding: 22px 20px 26px;
}

.trad-body h3 {
  font-size: 0.96rem;
  color: var(--color-white);
  margin: 10px 0 8px;
}

.trad-body p {
  font-size: 0.84rem;
  color: var(--color-chalk);
  line-height: 1.75;
}

/* ============================================================
   B2B / WORKSHOPS
   ============================================================ */
.section-b2b .split-content p {
  margin-bottom: 0;
}

.b2b-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0 32px;
}

.b2b-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.b2b-icon {
  width: 28px;
  height: 28px;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.b2b-icon i { color: var(--color-gold); font-size: 0.7rem; }

.b2b-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.b2b-list p {
  font-size: 0.83rem;
  color: var(--color-chalk);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   SHOP PREVIEW
   ============================================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.shop-item .shop-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item .shop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.45s var(--ease);
}

.shop-item:hover .shop-img-wrap img {
  transform: scale(1.08);
}

.shop-body {
  padding: 18px 20px 22px;
}

.shop-body h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 7px;
}

.shop-body p {
  font-size: 0.82rem;
  color: var(--color-chalk);
  line-height: 1.65;
}

.shop-cta { padding-top: 8px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-gold); }

.faq-question[aria-expanded="true"] { color: var(--color-gold); }

.faq-icon {
  font-size: 0.72rem;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 22px;
  font-size: 0.89rem;
  color: var(--color-chalk);
  line-height: 1.88;
}

.faq-answer strong {
  color: var(--color-gold);
  font-weight: 700;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.section-cta {
  position: relative;
  padding: 130px 0;
  background: #050505;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 197, 24, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.section-cta .section-label {
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-white);
  margin: 12px 0 20px;
  letter-spacing: -0.025em;
}

.cta-content > p {
  font-size: 1.02rem;
  color: var(--color-chalk);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.88;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.cta-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--color-chalk);
}

.cta-info-item i { color: var(--color-gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #070707;
  border-top: 1px solid var(--color-border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding: 72px 28px 56px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--color-chalk);
  line-height: 1.78;
  max-width: 270px;
  margin-bottom: 24px;
}

.footer-nav-col h4,
.footer-contact-col h4 {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 0.86rem;
  color: var(--color-chalk);
  transition: color var(--transition);
}

.footer-nav-col a:hover { color: var(--color-white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--color-chalk);
}

.footer-contact-item i {
  color: var(--color-gold);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--color-chalk);
  transition: color var(--transition);
}

.footer-contact-item a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.77rem;
  color: rgba(122, 122, 122, 0.5);
  letter-spacing: 0.03em;
}

.footer-bottom-links a {
  color: rgba(122, 122, 122, 0.5);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--color-chalk); }

/* Social icons */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-chalk);
  font-size: 0.84rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal targets start hidden */
.card.modern-card,
.trad-card,
.shop-item,
.comparison-grid,
.section-heading,
.reveal-item,
.faq-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card.modern-card.is-visible,
.trad-card.is-visible,
.shop-item.is-visible,
.comparison-grid.is-visible,
.section-heading.is-visible,
.reveal-item.is-visible,
.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grid children */
.grid-cards .card:nth-child(1)  { transition-delay: 0s; }
.grid-cards .card:nth-child(2)  { transition-delay: 0.1s; }
.grid-cards .card:nth-child(3)  { transition-delay: 0.2s; }

.lab-cards-col .card:nth-child(1) { transition-delay: 0s; }
.lab-cards-col .card:nth-child(2) { transition-delay: 0.1s; }
.lab-cards-col .card:nth-child(3) { transition-delay: 0.18s; }
.lab-cards-col .card:nth-child(4) { transition-delay: 0.26s; }

.highend-cards .card:nth-child(1) { transition-delay: 0s; }
.highend-cards .card:nth-child(2) { transition-delay: 0.12s; }
.highend-cards .card:nth-child(3) { transition-delay: 0.24s; }

.traditional-grid .trad-card:nth-child(1) { transition-delay: 0s; }
.traditional-grid .trad-card:nth-child(2) { transition-delay: 0.1s; }
.traditional-grid .trad-card:nth-child(3) { transition-delay: 0.2s; }
.traditional-grid .trad-card:nth-child(4) { transition-delay: 0.3s; }

.shop-grid .shop-item:nth-child(1) { transition-delay: 0s; }
.shop-grid .shop-item:nth-child(2) { transition-delay: 0.1s; }
.shop-grid .shop-item:nth-child(3) { transition-delay: 0.2s; }
.shop-grid .shop-item:nth-child(4) { transition-delay: 0.3s; }

.faq-list .faq-item:nth-child(1) { transition-delay: 0s; }
.faq-list .faq-item:nth-child(2) { transition-delay: 0.06s; }
.faq-list .faq-item:nth-child(3) { transition-delay: 0.12s; }
.faq-list .faq-item:nth-child(4) { transition-delay: 0.18s; }
.faq-list .faq-item:nth-child(5) { transition-delay: 0.24s; }
.faq-list .faq-item:nth-child(6) { transition-delay: 0.30s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .nav-links { gap: 14px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .traditional-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .lab-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lab-header-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .lab-header-col .section-label,
  .lab-header-col h2,
  .lab-header-col > p {
    grid-column: 1 / -1;
  }
  .lab-img-wrap {
    grid-column: 1 / -1;
  }
  .lab-cards-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .highend-layout {
    grid-template-columns: 1fr;
  }
  .highend-visual {
    display: none;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comparison-divider {
    display: none;
  }
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 56px 28px 40px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat-divider { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Mobile nav */
  #main-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
  }

  #main-nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links li a {
    display: block;
    padding: 15px 0;
    font-size: 0.85rem;
    letter-spacing: 0.07em;
  }

  .nav-links li a::after { display: none; }

  .nav-cta-group .btn-primary { display: none; }

  .mobile-menu-icon { display: flex; }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + 56px);
    padding-bottom: 80px;
  }

  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.94rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    justify-content: center;
  }

  .hero-stats { margin-top: 40px; padding-top: 24px; }

  /* Sections */
  section { padding: 72px 0; }

  .section-heading { margin-bottom: 40px; }

  .comparison-grid { gap: 12px; }

  .comparison-col { padding: 24px 20px; }

  .lab-header-col {
    grid-template-columns: 1fr;
  }

  .lab-cards-col {
    grid-template-columns: 1fr;
  }

  .security-services {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .traditional-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 28px 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .cta-info-row {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions a { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .hero h1 { font-size: 1.85rem; }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 6px 12px;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FLOATING ACTION BUTTONS
   ============================================================ */
.mhs-fab {
  position: fixed;
  right: 20px;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  box-shadow: none;
}

.mhs-fab::before,
.mhs-fab::after {
  display: none !important;
  content: none !important;
}

.fab-call {
  bottom: 100px;
}

.fab-call img {
  width: 200px;
  height: auto;
  display: block;
}

.fab-ai {
  bottom: 20px;
}

.fab-ai img {
  width: 220px;
  height: auto;
  display: block;
}

/* ============================================================
   AI CHAT PANEL
   ============================================================ */
.ai-panel {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 340px;
  max-height: 500px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  z-index: 9100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

.ai-panel[hidden] {
  display: none;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.ai-panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e6edf3;
  letter-spacing: 0.02em;
}

.ai-close-btn {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.ai-close-btn:hover {
  color: #e6edf3;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #c9d1d9;
}

.ai-msg {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.45;
  word-break: break-word;
}

.ai-msg.user {
  align-self: flex-end;
  background: #1f6feb;
  color: #fff;
  border-bottom-right-radius: 3px;
}

.ai-msg.assistant {
  align-self: flex-start;
  background: #21262d;
  color: #c9d1d9;
  border-bottom-left-radius: 3px;
}

.ai-msg.error {
  align-self: flex-start;
  background: #3d1c1c;
  color: #f97583;
  border-bottom-left-radius: 3px;
}

.ai-panel-footer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #30363d;
  background: #161b22;
}

.ai-input-field {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  padding: 7px 10px;
  font-size: 0.87rem;
  outline: none;
}

.ai-input-field:focus {
  border-color: #1f6feb;
}

.ai-send-btn {
  background: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.87rem;
  cursor: pointer;
  white-space: nowrap;
}

.ai-send-btn:hover {
  background: #388bfd;
}

@media (max-width: 480px) {
  .mhs-fab.fab-call { bottom: 88px; }
  .mhs-fab.fab-ai   { bottom: 14px; }
  .fab-call img { width: 160px; }
  .fab-ai   img { width: 175px; }

  .ai-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 88px;
    max-height: 60vh;
  }
}

/* ==========================================
   MHS AI ASSISTANT PREMIUM PANEL
   Solo panel / no modifica FAB
   Compatible con js actual
   ========================================== */

.ai-panel-premium {
  position: fixed;
  right: 26px;
  bottom: 108px;
  width: min(420px, calc(100vw - 24px));
  z-index: 9998;
  border-radius: 28px;
  color: #f6f1df;
  font-family: inherit;
}

.ai-panel-premium[hidden] {
  display: none !important;
}

.ai-panel-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 193, 7, 0.24);
  background:
    linear-gradient(180deg, rgba(14, 16, 30, 0.96) 0%, rgba(10, 11, 19, 0.98) 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 196, 42, 0.08) inset,
    0 0 34px rgba(255, 170, 0, 0.12);
  backdrop-filter: blur(14px);
}

.ai-panel-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.5;
}

.ai-panel-glow-1 {
  top: -40px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 186, 43, 0.28) 0%, rgba(255, 186, 43, 0) 72%);
}

.ai-panel-glow-2 {
  bottom: -50px;
  left: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(71, 116, 255, 0.18) 0%, rgba(71, 116, 255, 0) 74%);
}

.ai-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 195, 0, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 192, 0, 0.08) 0%, rgba(255, 192, 0, 0.02) 100%);
}

.ai-panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ai-panel-avatar-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 190, 35, 0.18), rgba(255, 190, 35, 0.04));
  border: 1px solid rgba(255, 196, 42, 0.22);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 10px 28px rgba(0, 0, 0, 0.34);
}

.ai-panel-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-panel-status-dot {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #18d26e;
  box-shadow: 0 0 0 3px rgba(10, 11, 19, 0.9), 0 0 14px rgba(24, 210, 110, 0.9);
}

.ai-panel-brand-copy {
  min-width: 0;
}

.ai-panel-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff7da;
  letter-spacing: 0.01em;
}

.ai-panel-subtitle {
  margin: 4px 0 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: rgba(255, 225, 150, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ai-panel-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 206, 73, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8e7aa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ai-panel-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 196, 42, 0.12);
  border-color: rgba(255, 206, 73, 0.34);
}

.ai-panel-modes {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 12px 18px 6px;
  flex-wrap: wrap;
}

.ai-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 42, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f4e5b0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ai-mode-chip.is-active {
  background: linear-gradient(180deg, rgba(255, 196, 42, 0.22), rgba(255, 196, 42, 0.1));
  border-color: rgba(255, 206, 73, 0.34);
  box-shadow: 0 8px 18px rgba(255, 179, 0, 0.12);
}

.ai-mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18d26e;
  box-shadow: 0 0 10px rgba(24, 210, 110, 0.7);
}

.ai-mode-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.ai-panel-intro-card {
  position: relative;
  z-index: 1;
  margin: 8px 18px 10px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 196, 42, 0.12);
  background:
    linear-gradient(180deg, rgba(23, 27, 51, 0.88) 0%, rgba(15, 18, 32, 0.92) 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
}

.ai-intro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(24, 210, 110, 0.16);
  border: 1px solid rgba(24, 210, 110, 0.26);
  color: #97ffbf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ai-panel-intro-card p {
  margin: 0;
  color: rgba(243, 238, 220, 0.9);
  font-size: 0.94rem;
  line-height: 1.55;
}

.ai-messages {
  position: relative;
  z-index: 1;
  margin: 0 18px;
  padding: 8px 4px 4px;
  max-height: 320px;
  min-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 196, 42, 0.38) transparent;
}

.ai-messages::-webkit-scrollbar {
  width: 8px;
}

.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 196, 42, 0.28);
  border-radius: 999px;
}

.ai-msg {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  word-wrap: break-word;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ai-msg.assistant {
  margin-right: auto;
  border: 1px solid rgba(255, 196, 42, 0.12);
  background: linear-gradient(180deg, rgba(25, 29, 53, 0.92), rgba(14, 16, 28, 0.96));
  color: #f5f0df;
}

.ai-msg.user {
  margin-left: auto;
  border: 1px solid rgba(255, 196, 42, 0.22);
  background: linear-gradient(180deg, rgba(255, 194, 39, 0.94), rgba(219, 157, 0, 0.92));
  color: #111217;
  font-weight: 700;
}

.ai-msg.error {
  margin-right: auto;
  border: 1px solid rgba(255, 84, 84, 0.24);
  background: linear-gradient(180deg, rgba(90, 21, 28, 0.92), rgba(58, 11, 16, 0.96));
  color: #ffd2d2;
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}

.ai-quick-chip {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 42, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f2dfa2;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: default;
}

.ai-panel-composer {
  position: relative;
  z-index: 1;
  margin: 12px 18px 18px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 196, 42, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 19, 31, 0.96) 0%, rgba(11, 13, 21, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.ai-composer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ai-composer-label {
  color: #fff2c2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-composer-state {
  color: rgba(255, 225, 150, 0.72);
  font-size: 0.78rem;
}

.ai-input-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px 48px;
  gap: 10px;
  align-items: end;
}

.ai-side-action,
.premium-send-btn {
  border: none;
  outline: none;
  cursor: pointer;
}

.ai-side-action {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 196, 42, 0.14);
  color: #f4e3ad;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ai-side-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 196, 42, 0.1);
  border-color: rgba(255, 196, 42, 0.24);
}

.premium-input {
  width: 100%;
  min-height: 42px;
  max-height: 110px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 42, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff6db;
  font: inherit;
  line-height: 1.45;
  box-sizing: border-box;
}

.premium-input::placeholder {
  color: rgba(255, 236, 183, 0.46);
}

.premium-input:focus {
  outline: none;
  border-color: rgba(255, 196, 42, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 196, 42, 0.08);
}

.premium-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffc72b 0%, #e7a900 100%);
  color: #111217;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(231, 169, 0, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.premium-send-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.premium-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Voice button states */
.ai-side-action--disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.ai-side-action--listening {
  background: rgba(255, 70, 70, 0.18);
  border-color: rgba(255, 70, 70, 0.5);
  animation: ai-pulse-mic 1.2s ease-in-out infinite;
}

@keyframes ai-pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 70, 0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 70, 70, 0); }
}

@media (max-width: 640px) {
  .ai-panel-premium {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
  }

  .ai-panel-header {
    padding: 16px 16px 12px;
  }

  .ai-panel-avatar-wrap {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .ai-panel-title {
    font-size: 1rem;
  }

  .ai-panel-subtitle {
    font-size: 0.72rem;
  }

  .ai-panel-intro-card {
    margin: 8px 16px 10px;
  }

  .ai-messages {
    margin: 0 16px;
    max-height: 280px;
  }

  .ai-panel-composer {
    margin: 12px 16px 16px;
    padding: 12px;
  }

  .ai-input-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px 44px;
    gap: 8px;
  }

  .ai-side-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .premium-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}