/* ============================================================
   KCIB — Modern Design System  v3.0
   Accent: #ff6d38  |  Display: Google Sans  |  Body: Google Sans + Sarabun
   ============================================================ */

/* ===================== GOOGLE SANS FONT ===================== */
@font-face {
  font-family: 'Google Sans';
  src: url('../Google_Sans/static/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../Google_Sans/static/GoogleSans-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../Google_Sans/static/GoogleSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../Google_Sans/static/GoogleSans-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../Google_Sans/static/GoogleSans-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../Google_Sans/static/GoogleSans-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ===================== VARIABLES ===================== */
:root {
  --accent:        #ff6d38;
  --accent-dark:   #e04e1e;
  --accent-light:  #fff1ec;
  --accent-glow:   rgba(255,109,56,.22);
  --dark:          #111111;
  --dark-2:        #191919;
  --dark-3:        #242424;
  --bg:            #f4f5f8;
  --bg-2:          #ffffff;
  --border:        #e2e5eb;
  --border-strong: #c8ccd6;
  --text:          #0f172a;
  --text-2:        #475569;
  --text-3:        #94a3b8;
  --success:       #22c55e;
  --success-bg:    #f0fdf4;
  --danger:        #ef4444;
  --danger-bg:     #fef2f2;
  --warning:       #f59e0b;
  --warning-bg:    #fffbeb;
  --info:          #3b82f6;
  --info-bg:       #eff6ff;
  --shadow-xs:     0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:     0 2px 10px rgba(0,0,0,.09);
  --shadow:        0 6px 24px rgba(0,0,0,.11);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.16);
  --shadow-accent: 0 8px 28px rgba(255,109,56,.32);
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --nav-h:         68px;
  --trans:         all 0.28s ease;
  --font-display:  'Google Sans', 'Sarabun', system-ui, sans-serif;
}

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

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

body {
  font-family: 'Google Sans', 'Sarabun', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===================== LOADING OVERLAY ===================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, #1a1a1a 0%, #0d0d0d 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,109,56,.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.02) 0%, transparent 50%);
  pointer-events: none;
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.loading-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 24px rgba(255,109,56,.45));
  animation: loading-float 2.4s ease-in-out infinite;
}
@keyframes loading-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}
.loading-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 24px;
  opacity: 0.9;
}
.loading-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9a6c);
  border-radius: 99px;
  animation: loadbar 1.8s ease-in-out infinite;
}
@keyframes loadbar {
  0%   { width: 0%; }
  50%  { width: 65%; }
  100% { width: 100%; }
}
.loading-text {
  color: rgba(255,255,255,.4);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(14,14,14,0.90);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--trans);
}
#navbar.scrolled {
  background: rgba(14,14,14,0.98);
  box-shadow: 0 4px 32px rgba(0,0,0,.35);
  border-bottom-color: rgba(255,255,255,.05);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.nav-brand-sub  { font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: 0.3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  flex: 1;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: var(--trans);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}
.nav-link.active { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Google Sign-In button container */
.nav-signin-btn { display: flex; align-items: center; }

/* User menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
  border: 1px solid rgba(255,255,255,.12);
}
.user-menu:hover { background: rgba(255,255,255,.1); }
.user-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.user-avatar-init {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-name  { font-size: 14px; font-weight: 600; color: #fff; }
.user-role  { font-size: 11px; color: var(--accent); font-weight: 600; }
.user-caret { color: rgba(255,255,255,.5); font-size: 10px; transition: transform .2s; }
.user-menu.open .user-caret { transform: rotate(180deg); }

/* User dropdown */
#user-dropdown {
  position: fixed;
  top: calc(var(--nav-h) + 6px);
  right: 20px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  animation: dropIn .2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-header {
  padding: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dropdown-user-name  { font-weight: 700; font-size: 14px; color: var(--text); }
.dropdown-user-role  { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.dropdown-user-email { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.dropdown-items { padding: 6px; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--trans);
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ===================== LANG TOGGLE ===================== */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
}
.lang-btn:hover { color: rgba(255,255,255,.85); }
.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,109,56,.35);
}

/* Mobile notif bell — always hidden on desktop regardless of JS */
@media (min-width: 769px) {
  #mobile-notif-btn { display: none !important; }
  .nav-lang-in-menu { display: none; }
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: var(--trans);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
}
.nav-overlay.active { display: block; }

/* ===================== PAGES ===================== */
.page { display: none; min-height: calc(100vh - var(--nav-h)); padding-top: var(--nav-h); }
.page.active { display: block; }

/* ===================== HERO ===================== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(145deg, #0e0e0e 0%, #141414 40%, #0e0e0e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 55%, rgba(255,109,56,.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255,255,255,.025) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(255,255,255,.018) 0%, transparent 55%);
  pointer-events: none;
  animation: hero-orbs 14s ease-in-out infinite alternate;
}
@keyframes hero-orbs {
  0%   { opacity: 1; }
  50%  { opacity: 0.7; transform: scale(1.05) translate(1%, -1%); }
  100% { opacity: 1; transform: scale(1) translate(0,0); }
}

/* Geometric grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.12; }
  90%  { opacity: 0.12; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 36px rgba(255,109,56,.5)) drop-shadow(0 12px 24px rgba(0,0,0,.4));
  animation: hero-float 4s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,109,56,.1);
  border: 1px solid rgba(255,109,56,.25);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero-title span {
  color: transparent;
  background: linear-gradient(120deg, #ff6d38, #ff9a6c);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,.58);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c5f 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-xl);
  border: none;
  transition: var(--trans);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.12) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255,109,56,.45);
  color: #fff;
  text-decoration: none;
}
.hero-cta:hover::before { opacity: 1; }

.hero-welcome {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 10px 20px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}
.hero-welcome img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  font-size: 22px;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}

/* Canvas network */
#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Mouse spotlight */
.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 480px at var(--mx, 50%) var(--my, 50%),
    rgba(255,109,56,.10) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ===================== NOTICE BAR ===================== */
.notice-bar {
  background: linear-gradient(90deg, #e04e1e 0%, var(--accent) 50%, #ff8c5f 100%);
  background-size: 200% 100%;
  animation: notice-shift 6s ease-in-out infinite alternate;
  color: #fff;
  text-align: center;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
@keyframes notice-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 72px 24px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-alt { background: #fff; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ===================== CATEGORY CARDS ===================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  text-decoration: none;
  display: block;
  position: relative;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff9a6c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,109,56,.25);
  text-decoration: none;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card-top {
  padding: 28px 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.cat-info { flex: 1; }
.cat-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
  color: var(--text);
}
.cat-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.cat-card-bottom {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.cat-count-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.cat-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: var(--trans);
}
.cat-card:hover .cat-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(5px);
}

/* ===================== STATS ROW ===================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.stat-card {
  background: linear-gradient(145deg, #111111 0%, #191919 60%, #141414 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0);
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  border-color: rgba(255,109,56,.2);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,109,56,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 24px rgba(255,109,56,.3);
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.55); font-weight: 600; }

/* ===================== HOW TO STEPS ===================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: var(--trans);
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
}
.step-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.step-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ===================== EQUIPMENT PAGE ===================== */

/* Category banner header (bhead style) */
.bhead-banner {
  background: var(--bhead-c, var(--dark));
  color: #fff;
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(0,0,0,.12);
}
.bhead-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: calc(100%/12) 100%;
  pointer-events: none;
}
.bh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.bh-tag {
  font-size: 11px;
  color: rgba(255,255,255,.62);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.bh-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
}
.bh-title-en {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  font-size: .6em;
  display: block;
  margin-top: 4px;
}
.bh-desc {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  margin: 12px 0 0;
  max-width: 560px;
  line-height: 1.5;
}

/* Sticky controls bar below banner */
.equip-search-sticky {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.equip-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.equip-back {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
  font-family: inherit;
}
.equip-back:hover { border-color: var(--accent); color: var(--accent); }
.equip-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  transition: var(--trans);
}
.equip-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.equip-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  font-family: inherit;
}
.equip-search input::placeholder { color: var(--text-3); }
.equip-search svg { color: var(--text-3); flex-shrink: 0; }

.equip-filters {
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 16px 24px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,109,56,.3);
}
.fc-tick  { font-size: 11px; font-weight: 800; line-height: 1; }
.fc-icon  { font-size: 14px; line-height: 1; }
.fc-label { line-height: 1; }

.equip-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.equip-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-2);
}
.equip-empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.equip-empty-msg { font-size: 16px; font-weight: 600; }

/* Equipment grid */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Equipment card */
.eq-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.eq-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff9a6c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.eq-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(255,109,56,.2);
}
.eq-card:hover::after { transform: scaleX(1); }
.eq-card-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.eq-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.eq-card-info { flex: 1; min-width: 0; }
.eq-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.eq-card-id {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}
.eq-avail-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.eq-avail-badge.available   { background: var(--success-bg); color: var(--success); }
.eq-avail-badge.unavailable { background: var(--danger-bg);  color: var(--danger);  }

.eq-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eq-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.eq-meta-icon { width: 16px; flex-shrink: 0; opacity: 0.6; margin-top: 1px; }
.eq-detail {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eq-rad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  width: fit-content;
}

.eq-card-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.eq-model { font-size: 12px; color: var(--text-3); font-weight: 600; }
.btn-book {
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8050 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255,109,56,.25);
}
.btn-book:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,109,56,.38); }
.btn-book:disabled {
  background: var(--border);
  color: var(--text-3);
  cursor: not-allowed;
  transform: none;
}

/* ===================== MY BOOKINGS PAGE ===================== */
.my-bookings-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.page-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.page-h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  flex: 1;
}
.page-h1 span { color: var(--accent); }

.booking-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
  border-left: 4px solid transparent;
  transition: var(--trans);
}
.booking-card:hover { box-shadow: var(--shadow); }
.booking-card.pending { border-left-color: var(--warning); }
.booking-card.approved { border-left-color: var(--success); }
.booking-card.rejected, .booking-card.cancelled { border-left-color: var(--danger); }

.booking-card-head {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.booking-status-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.booking-item-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.booking-id   { font-size: 12px; color: var(--text-3); font-weight: 600; }
.booking-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.booking-card-body {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.booking-field-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.booking-field-value { font-size: 14px; font-weight: 600; color: var(--text); }

.booking-card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.btn-cancel {
  padding: 8px 18px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}
.btn-cancel:hover { background: var(--danger); color: #fff; }

/* ===================== DASHBOARD PAGE ===================== */
.dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.dash-stat {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--trans);
}
.dash-stat:hover { box-shadow: var(--shadow); }
.dash-stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dash-stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--text); line-height: 1; }
.dash-stat-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.dashboard-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.dashboard-table-head {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-table-title { font-size: 16px; font-weight: 800; color: var(--text); }
.table-wrapper { overflow-x: auto; }
table.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--bg); }

/* ===================== STATUS BADGES ===================== */
.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending-1 { background: #fff7ed; color: #c2410c; }
.status-pending-2 { background: var(--info-bg); color: var(--info); }
.status-approved  { background: var(--success-bg); color: #16a34a; }
.status-rejected  { background: var(--danger-bg); color: var(--danger); }
.status-cancelled { background: var(--bg); color: var(--text-3); }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-head-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--accent-light);
  flex-shrink: 0;
}
.modal-head-info { flex: 1; }
.modal-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.modal-subtitle { font-size: 13px; color: var(--text-2); }
.modal-close {
  background: var(--bg);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body { padding: 24px; }

/* ===================== FORM ELEMENTS ===================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,109,56,.1);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 36px;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Time slots */
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  background: #fff;
  color: var(--text-2);
}
.time-slot:hover { border-color: var(--accent); color: var(--accent); }
.time-slot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.time-slot.disabled {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Flatpickr overrides */
.flatpickr-calendar {
  font-family: var(--font);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}
.flatpickr-months {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.flatpickr-months .flatpickr-month { background: transparent; color: var(--text); height: 34px; }
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month { fill: var(--text-2); color: var(--text-2); padding: 6px 8px; border-radius: var(--radius-sm); }
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover { fill: var(--accent); color: var(--accent); background: #fff3ee; }
.flatpickr-current-month { font-size: 14px; font-weight: 700; color: var(--text); padding-top: 4px; }
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-family: var(--font);
  font-size: 14px;
  border: none;
  padding: 0 2px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover { background: #f1f5f9; }
.flatpickr-current-month input.cur-year { color: var(--text); font-weight: 700; font-family: var(--font); font-size: 14px; }
.numInputWrapper:hover { background: #f1f5f9; }
.numInputWrapper span { border-color: var(--border); }
.flatpickr-weekdays { background: #fff; }
.flatpickr-weekday { color: var(--text-3); font-weight: 700; font-size: 11px; text-transform: uppercase; }
.flatpickr-day { border-radius: var(--radius-sm); color: var(--text); font-size: 13px; }
.flatpickr-day:hover { background: #fff3ee; border-color: var(--accent); color: var(--accent); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.flatpickr-day.today:not(.selected) { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.flatpickr-day.disabled, .flatpickr-day.disabled:hover {
  color: #ccc;
  background: transparent;
  opacity: 1;
  text-decoration: line-through;
  cursor: not-allowed;
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--text-3); }
@media (min-width: 769px) { #mobile-cart-link { display: none !important; } }

/* Info box */
.info-box {
  background: var(--info-bg);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 20px;
  line-height: 1.5;
}
.info-box.warning {
  background: var(--warning-bg);
  border-color: #fde68a;
  color: #92400e;
}
.info-box.accent {
  background: var(--accent-light);
  border-color: #fed7aa;
  color: #9a3412;
}

/* Modal footer */
.modal-foot {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8050 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,109,56,.32);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.15) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,109,56,.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary {
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== TOAST ===================== */
#toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}
.toast {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid transparent;
  animation: toastIn .3s ease;
  pointer-events: all;
  transition: opacity .3s, transform .3s;
}
.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); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.toast-msg   { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.toast-close {
  background: none; border: none;
  color: var(--text-3); font-size: 16px;
  cursor: pointer; padding: 0; flex-shrink: 0;
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-desc  { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }

/* ===================== SKELETON ===================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, #ebebeb 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===================== FOOTER ===================== */
#site-footer {
  background: linear-gradient(160deg, #0d0d0d 0%, #111111 100%);
  color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-top {
  padding: 48px 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.footer-col-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.footer-brand-name { font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand-sub  { font-size: 12px; color: var(--accent); font-weight: 600; }
.footer-info { font-size: 14px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans);
}
.footer-social-link:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}
.footer-map-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.footer-bottom {
  padding: 16px 24px;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== MOBILE SIGN-IN SLOT ===================== */
.mobile-signin-slot {
  display: none; /* hidden on desktop — shown via media query */
}
.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.mobile-logout-btn {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.mobile-logout-btn:hover { background: var(--danger); color: #fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Hero mobile: stack layout, smaller type */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px 80px;
  }
  .hero-hl-line { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-bottom-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-info-card { min-width: 0; width: 100%; transform: none !important; }
  .hero-scroll-cue { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(280px, 80vw);
    flex-direction: column;
    background: var(--dark);
    z-index: 1001;
    padding: 80px 16px 32px;
    gap: 4px;
    transition: right .35s ease;
    border-left: 1px solid rgba(255,255,255,.08);
    align-items: stretch;
  }
  .nav-links.open { right: 0; }
  .nav-link { padding: 12px 16px; font-size: 15px; border-radius: var(--radius-sm); }
  .nav-right { display: none; }
  .nav-right.mobile-open {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 1001;
  }
  .nav-hamburger { display: flex; }
  .lang-toggle { display: none; }
  .nav-lang-in-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 4px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  /* Sign-in / user card inside mobile drawer */
  .mobile-signin-slot {
    display: block;
    padding: 10px 8px 6px;
  }
  .mobile-signin-slot > div { justify-content: center; }

  .cat-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  /* Equipment page: mobile layout */
  .bhead-banner { padding: 36px 0 28px; }
  .bh-title { font-size: clamp(28px, 7vw, 42px); }
  .equip-controls { gap: 8px; }
  .equip-search { min-width: 0; }

  .form-row { grid-template-columns: 1fr; }
  .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { padding: 0; align-items: flex-end; }

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

  .footer-top-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-map { order: -1; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ===================== FOCUS ===================== */
:focus-visible {
  outline: 3px solid rgba(255,109,56,.5);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  animation: fadeIn .4s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-enter {
  animation: cardEnter .3s ease both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ===================== MY BOOKINGS (v2 — Old style) ===================== */
.bk-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.bk-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bk-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--trans);
}
.bk-filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.bk-filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.bk-filter-count {
  background: rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
}
.bk-filter-tab:not(.active) .bk-filter-count { background: var(--border); color: var(--text-2); }

.bk-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--trans);
}
.bk-item:hover { box-shadow: var(--shadow-sm); }

.bk-item-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.bk-item-title  { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.bk-item-meta   { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; }

.bk-item-body   { padding: 14px 18px; }

.bk-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
}
.bk-meta-item { font-size: 13px; color: var(--text-2); }

/* Approval progress steps */
.bk-progress {
  display: flex;
  align-items: center;
  padding: 8px 0 4px;
  overflow-x: auto;
}

.bk-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bk-prog-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-3);
}

.bk-prog-step.done .bk-prog-circle {
  background: var(--success); border-color: var(--success); color: #fff;
}
.bk-prog-step.current .bk-prog-circle {
  background: var(--warning); border-color: var(--warning); color: #fff;
  animation: bk-pulse 1.5s ease infinite;
}
.bk-prog-step.rejected .bk-prog-circle {
  background: var(--danger); border-color: var(--danger); color: #fff;
}
@keyframes bk-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

.bk-prog-label {
  font-size: 10px; color: var(--text-3); text-align: center; max-width: 64px; line-height: 1.3;
}

.bk-prog-line {
  flex: 1; min-width: 20px; height: 2px;
  background: var(--border);
  margin: 0 4px 16px;
}
.bk-prog-line.done { background: var(--success); }

.bk-empty {
  text-align: center;
  padding: 60px 20px;
}
.bk-empty-icon  { font-size: 52px; margin-bottom: 16px; }
.bk-empty-title { font-size: 18px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.bk-empty-desc  { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }

/* ===================== DASHBOARD (v2 — Old style) ===================== */
.dash-v2-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.dash-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .dash-v2-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .dash-v2-stats { grid-template-columns: 1fr; } }

.dash-v2-stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--trans);
}
.dash-v2-stat-card:hover { box-shadow: var(--shadow-sm); }

.dash-v2-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dash-v2-stat-num   { font-size: 26px; font-weight: 800; line-height: 1; }
.dash-v2-stat-label { font-size: 13px; color: var(--text-3); margin-top: 3px; }

.dash-v2-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.dash-v2-tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dash-v2-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.dash-v2-tab-btn:hover:not(.active) { color: var(--text-2); }

.dash-v2-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-xs); }

.dash-v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-v2-table th {
  background: var(--bg);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.dash-v2-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dash-v2-table tr:last-child td { border-bottom: none; }
.dash-v2-table tr:hover td { background: var(--bg); }

/* btn-sm helper */
.btn-sm {
  padding: 6px 14px !important;
  font-size: 13px !important;
}
.stagger > *:nth-child(n+7) { animation-delay: 0.35s; }

/* ===================== NOTIFICATION BELL ===================== */
.notif-btn {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  color: rgba(255,255,255,.78);
  flex-shrink: 0;
}
.notif-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--dark);
  line-height: 1;
}

/* Notification dropdown */
.notif-dropdown {
  position: fixed;
  min-width: 300px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  animation: dropIn .2s ease;
}
.notif-dropdown-head {
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-dropdown-title { font-size: 14px; font-weight: 700; color: var(--text); }
.notif-mark-read {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
}
.notif-mark-read:hover { text-decoration: underline; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  cursor: pointer;
  transition: var(--trans);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--accent-light); }
.notif-item-icon { font-size: 20px; flex-shrink: 0; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-desc  { color: var(--text-2); font-size: 12px; }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ===================== CART BUTTON ===================== */
.cart-btn {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  color: rgba(255,255,255,.78);
  flex-shrink: 0;
}
.cart-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--dark);
  line-height: 1;
}

/* ===================== CUSTOM SIGN-IN BUTTON ===================== */
/* Wrapper: holds our visual face + invisible Google button on top */
.kcib-signin-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
/* Visual layer — pointer-events: none so clicks fall through to Google button */
.kcib-signin-face {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  pointer-events: none;
  transition: var(--trans);
  user-select: none;
}
.kcib-signin-wrap:hover .kcib-signin-face {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.42);
}
/* Real Google button — covers the face, opacity 0 so invisible but fully clickable */
.kcib-gsi-over {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.01;
  border-radius: 10px;
}
/* Mobile sign-in button (uses prompt() via onclick) */
.kcib-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 9px 16px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  font-family: inherit;
}
.kcib-signin-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.42);
}

/* ===================== CART MODAL ===================== */
.cart-item-section {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border);
  transition: var(--trans);
}
.cart-item-section:hover { border-color: var(--accent); }
.cart-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty-info {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.btn-remove-cart {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
}
.btn-remove-cart:hover { background: var(--danger); color: #fff; }
.cart-section-divider {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===================== AVAILABILITY BADGE ===================== */
.eq-qty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  width: fit-content;
}
.eq-qty-badge.low {
  background: var(--warning-bg);
  border-color: #fde68a;
  color: #92400e;
}

/* ===================== REAL-TIME TIMESTAMP ===================== */
.realtime-ts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 8px;
}
.realtime-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ===================== LOCATION FILTER LABEL ===================== */
.equip-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: center;
  white-space: nowrap;
}

/* ===================== CHEMICAL FIELDS ===================== */
.chem-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .chem-fields-grid { grid-template-columns: 1fr; }
}

/* ===================== v4.0 INTERACTION ENHANCEMENTS ===================== */


/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1),
              transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger delays for reveal-group children */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0.00s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.09s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.18s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.27s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.36s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.45s; }

/* Ripple wave */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.26);
  transform: scale(0);
  animation: ripple-out .65s linear forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes ripple-out {
  to { transform: scale(5); opacity: 0; }
}

/* Pulse glow on stat numbers */
@keyframes stat-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255,109,56,.25); }
  50%       { text-shadow: 0 0 55px rgba(255,109,56,.60), 0 0 90px rgba(255,109,56,.15); }
}
.stat-num { animation: stat-pulse 2.8s ease-in-out infinite !important; }

/* Spring hover on cat cards */
.cat-card:hover {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1),
              box-shadow .28s ease, border-color .28s ease !important;
}

/* Step card: allow overflow clip for ripple */
.step-card { overflow: hidden; }

/* Icon bounce on step hover */
.step-icon { transition: transform .3s ease; }
.step-card:hover .step-icon {
  animation: icon-bounce .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes icon-bounce {
  0%,100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.22) translateY(-7px); }
}

/* Magnetic CTA — spring transition */
.hero-cta {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              box-shadow .28s ease !important;
}
