/* ═══════════════════════════════════════════════════════════════
   home.css  —  shop.buddyth.com
   Pastel Glass UI · เข้าชุดกับ developer_panel.css
   Updated: richer animations · depth layers · refined details
═══════════════════════════════════════════════════════════════ */

/* ── Kanit (โหลดจาก index.php แล้ว) ── */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --dev-bg:            #e9f0ff;
  --dev-bg-soft:       #f5f7ff;
  --dev-panel-bg:      #fdfbff;
  --dev-primary:       #4b7cf3;
  --dev-primary-soft:  #ecf2ff;
  --dev-accent-pink:   #ff9dbc;
  --dev-accent-yellow: #ffd86f;
  --dev-accent-green:  #72e1b3;
  --dev-text-main:     #1e293b;
  --dev-text-muted:    #94a3b8;
  --dev-border-soft:   rgba(148,163,184,0.28);
  --dev-shadow-soft:   0 22px 55px rgba(15,23,42,0.12);
  --dev-radius-lg:     20px;
  --dev-radius-xl:     28px;

  /* navbar */
  --nav-bg:       rgba(255,255,255,0.82);
  --nav-border:   rgba(226,232,240,0.9);
  --nav-shadow:   0 18px 40px rgba(148,163,184,0.16);
  --nav-text:     var(--dev-text-main);
  --nav-muted:    var(--dev-text-muted);
  --nav-primary:  var(--dev-primary);
  --nav-radius:   18px;
}

/* ─────────────────────────────────────────
   PAGE ENTER ANIMATION
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatA {
  0%,100% { transform: translateY(0px) rotate(-8deg); }
  50%     { transform: translateY(-10px) rotate(-8deg); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0px) rotate(10deg); }
  50%     { transform: translateY(-14px) rotate(10deg); }
}
@keyframes floatC {
  0%,100% { transform: translateY(0px) rotate(-12deg); }
  50%     { transform: translateY(-8px) rotate(-12deg); }
}
@keyframes floatRobotL {
  0%,100% { transform: translateY(0) scaleX(1); }
  50%     { transform: translateY(-10px) scaleX(1); }
}
@keyframes floatRobotR {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 14px 30px rgba(75,124,243,0.35); }
  50%     { box-shadow: 0 18px 38px rgba(75,124,243,0.55), 0 0 0 6px rgba(75,124,243,0.08); }
}
@keyframes statusPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.85); }
}
@keyframes borderSpin {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes dotBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

/* ─────────────────────────────────────────
   BODY / BACKGROUND
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.home-body {
  min-height: 100vh;
  font-family: "Kanit", sans-serif;
  color: var(--dev-text-main);
  /* Richer multi-radial background */
  background:
    radial-gradient(ellipse 60% 40% at 8%  0%,  rgba(255,244,255,0.9) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 95%  5%,  rgba(230,242,255,0.85) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(221,231,255,0.9) 0%, rgba(211,224,255,1) 100%),
    radial-gradient(ellipse 40% 30% at 30%  60%, rgba(255,216,111,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 75%  40%, rgba(114,225,179,0.07) 0%, transparent 60%),
    #e9f0ff;
  overflow-x: hidden;
}

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

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dev-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--dev-primary), var(--dev-accent-pink));
  border-radius: 8px;
  border: 2px solid var(--dev-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--dev-accent-pink), var(--dev-primary));
}

/* ─────────────────────────────────────────
   SHELL
───────────────────────────────────────── */
.home-shell {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding: 22px 18px 36px;
  display: flex;
  justify-content: center;
}

.home-main {
  width: 100%;
  max-width: 1240px;
  animation: fadeUp .6s ease both;
}

/* ─────────────────────────────────────────
   DECOR — ROBOTS & ICONS
───────────────────────────────────────── */
.home-decor {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

.home-decor-robot {
  position: fixed; bottom: 24px;
  width: min(340px, 26vw); height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(15,23,42,0.16));
}
.home-decor-left  {
  left: 14px;
  animation: floatRobotL 5s ease-in-out infinite;
}
.home-decor-right {
  right: 14px;
  animation: floatRobotR 6s ease-in-out infinite;
  animation-delay: -1.5s;
}

.home-decor-icon {
  position: fixed;
  width: min(120px, 10vw); height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 16px 30px rgba(15,23,42,0.14));
}
.home-icon-1 { top: 140px; left: 40px;  animation: floatA 4.5s ease-in-out infinite; }
.home-icon-2 { top: 190px; right: 70px; animation: floatB 5.5s ease-in-out infinite; animation-delay: -.8s; }
.home-icon-3 { top: 70px;  right: 120px;animation: floatC 4s  ease-in-out infinite; animation-delay: -.4s; }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
header.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0;
  width: min(1240px, calc(100% - 36px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  border-radius: 24px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(20px) saturate(1.4);
  transition: box-shadow .3s ease, background .3s ease;
}
header.nav:hover {
  box-shadow: 0 24px 56px rgba(148,163,184,0.22);
}

.nav-left  { display:flex; align-items:center; gap:12px; min-width:220px; }
.nav-right { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }

/* Logo */
.nav-logo {
  width: 42px; height: 42px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 800; color: #fff; letter-spacing: .04em; font-size: 14px;
  background: conic-gradient(from 210deg, #ff8ab8, #ffd86f, #72e1b3, #4b7cf3, #ff8ab8);
  box-shadow: 0 10px 22px rgba(59,130,246,0.22);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default;
  flex-shrink: 0;
}
.nav-logo:hover {
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 14px 30px rgba(59,130,246,0.32);
}

/* Title */
.nav-title { display:flex; flex-direction:column; line-height:1.1; }
.nav-title-main { font-weight:800; font-size:13px; color:var(--nav-text); }
.nav-title-sub  {
  margin-top:2px; font-size:11px; color:var(--nav-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:320px;
}

/* Nav links */
.nav-link {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-decoration:none; color: var(--nav-muted);
  border: 1px solid transparent;
  transition: transform .15s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(75,124,243,0.1), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
.nav-link:hover { color:var(--nav-text); transform:translateY(-1px); }
.nav-link:hover::after { opacity: 1; }
.nav-link-active {
  color: var(--nav-primary);
  background: #fff;
  border-color: rgba(148,163,184,0.25);
  box-shadow: 0 10px 22px rgba(148,163,184,0.25);
}

/* User chip */
.user-chip {
  display:inline-flex; align-items:center; gap:10px;
  padding: 6px 14px 6px 6px; border-radius:999px;
  background: rgba(248,250,252,0.92);
  border: 1px solid rgba(148,163,184,0.30);
  box-shadow: 0 8px 20px rgba(148,163,184,0.12);
  transition: box-shadow .2s ease;
}
.user-chip:hover { box-shadow: 0 12px 28px rgba(148,163,184,0.2); }

.user-avatar {
  width: 34px; height: 34px; border-radius: 999px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #ffd86f, #ff9dbc);
  display:flex; align-items:center; justify-content:center;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 10px rgba(148,163,184,0.2);
  flex-shrink: 0;
}
.user-avatar img { width:100%; height:100%; object-fit:cover; display:block; }

.user-info { display:flex; flex-direction:column; line-height:1.1; }
.user-name  { font-size:12px; font-weight:800; color:var(--nav-text); }
.user-sub   { margin-top:2px; font-size:10px; color:var(--nav-muted); }

/* Buttons */
.btn-login,
.btn-logout {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 9px 16px; border-radius:999px; font-size:12px; font-weight:800;
  text-decoration:none; border:1px solid transparent;
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn-login {
  color:#fff;
  background: linear-gradient(135deg, var(--nav-primary), #7b9dff);
  box-shadow: 0 12px 26px rgba(75,124,243,0.35);
  animation: pulseGlow 3s ease-in-out infinite;
}
.btn-login:hover { transform:translateY(-2px); filter:brightness(1.08); }
.btn-logout {
  color:#e11d48; background:rgba(251,113,133,0.10); border-color:rgba(225,29,72,0.18);
}
.btn-logout:hover { transform:translateY(-1px); background:rgba(251,113,133,0.18); }

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.home-hero { margin-top: 20px; }

.home-hero-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 36px;
  box-shadow:
    var(--dev-shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(1.3);
  overflow: hidden;
  animation: fadeUp .65s ease both;
  animation-delay: .1s;
}

/* Gradient shimmer top bar 
.home-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,
    var(--dev-accent-pink),
    var(--dev-primary),
    var(--dev-accent-green),
    var(--dev-accent-yellow),
    var(--dev-accent-pink)
  );
  background-size: 200% 100%;
  animation: borderSpin 4s linear infinite;
}*/

/* Soft glow behind card */
.home-hero-card::after {
  content: '';
  position: absolute;
  inset: -80px -80px auto -80px; height: 280px;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   HERO TOP — GRID
───────────────────────────────────────── */
.home-hero-top {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  padding: 34px 32px 22px;
}

/* ── Title block ── */
.home-hero-titleblock {
  display: flex; flex-direction: column; justify-content: center;
  animation: fadeUp .7s ease both; animation-delay: .2s;
}

.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .22em; color: var(--dev-text-muted);
  font-weight: 800; text-transform: uppercase;
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.2);
  padding: 5px 12px; border-radius: 999px;
  width: fit-content; margin-bottom: 14px;
}
.home-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dev-accent-green);
  box-shadow: 0 0 8px var(--dev-accent-green);
  animation: statusPulse 2s ease-in-out infinite;
}

.home-title {
  margin: 0 0 10px;
  font-size: 34px; line-height: 1.18; font-weight: 800;
  color: var(--dev-text-main);
  letter-spacing: -.01em;
}
.home-title span.hl-blue { color: var(--dev-primary); }
.home-title span.hl-pink { color: var(--dev-accent-pink); }

.home-subtitle {
  margin: 0; font-size: 14px; line-height: 1.75;
  color: var(--dev-text-muted); max-width: 56ch;
  font-weight: 400;
}

/* Badges */
.home-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }

.home-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--dev-text-main);
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(148,163,184,0.2); }

.home-pill-green {
  background: rgba(114,225,179,0.18); border-color: rgba(114,225,179,0.4); color: #047857;
}
.home-pill-blue {
  background: rgba(75,124,243,0.12); border-color: rgba(75,124,243,0.28); color: #2f5fe0;
}

/* Dots on pills */
.home-pill-green::before,
.home-pill-blue::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.home-pill-green::before {
  background: var(--dev-accent-green);
  box-shadow: 0 0 6px var(--dev-accent-green);
  animation: statusPulse 2.2s ease-in-out infinite;
}
.home-pill-blue::before {
  background: var(--dev-primary);
  box-shadow: 0 0 6px var(--dev-primary);
  animation: statusPulse 2.5s ease-in-out infinite .4s;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.home-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}

.home-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .18s ease, filter .18s ease, box-shadow .22s ease, background .2s ease;
  position: relative; overflow: hidden;
}
.home-btn::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.home-btn:hover { transform: translateY(-2px); }

.home-btn-primary {
  background: linear-gradient(135deg, var(--dev-primary), #7b9dff);
  color: #fff;
  box-shadow: 0 14px 32px rgba(75,124,243,0.38);
  animation: pulseGlow 3.5s ease-in-out infinite;
}
.home-btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 18px 40px rgba(75,124,243,0.5);
}

.home-btn-secondary {
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.32);
  color: var(--dev-text-main);
}
.home-btn-secondary:hover {
  background: rgba(148,163,184,0.2);
  box-shadow: 0 8px 20px rgba(148,163,184,0.2);
}

.home-btn-ghost {
  background: rgba(255,255,255,0.8);
  border-color: rgba(148,163,184,0.32);
  color: var(--dev-text-main);
}
.home-btn-ghost:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 22px rgba(148,163,184,0.22);
}

/* ─────────────────────────────────────────
   SIDE CARD — สถานะระบบ
───────────────────────────────────────── */
.home-sidecard {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(148,163,184,0.16);
  padding: 18px;
  display: flex; flex-direction: column; gap: 0;
  animation: fadeUp .75s ease both; animation-delay: .3s;
  transition: box-shadow .25s ease, transform .25s ease;
  position: relative; overflow: hidden;
}
.home-sidecard:hover {
  box-shadow: 0 26px 55px rgba(148,163,184,0.24);
  transform: translateY(-2px);
}

/* Top accent line 
.home-sidecard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--dev-primary), var(--dev-accent-pink), var(--dev-accent-green));
  border-radius: 999px 999px 0 0;
}*/

.home-sidecard-head { padding-top: 6px; margin-bottom: 14px; }
.home-sidecard-title { font-size: 14px; font-weight: 800; color: var(--dev-text-main); }
.home-sidecard-sub   { font-size: 12px; color: var(--dev-text-muted); margin-top: 3px; line-height: 1.5; }

.home-sidegrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.home-sideitem {
  border-radius: 14px; padding: 11px 13px;
  background: rgba(248,250,252,0.88);
  border: 1px solid rgba(148,163,184,0.18);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.home-sideitem:hover {
  transform: translateY(-1px);
  border-color: rgba(75,124,243,0.2);
  box-shadow: 0 6px 16px rgba(75,124,243,0.08);
}

.home-sideitem-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--dev-text-muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
/* กล่องสถานะสีเขียว/น้ำเงิน */
.home-sideitem:nth-child(1) .home-sideitem-label::before,
.home-sideitem:nth-child(2) .home-sideitem-label::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--dev-accent-green);
  box-shadow: 0 0 5px var(--dev-accent-green);
  animation: statusPulse 2s ease-in-out infinite;
}
.home-sideitem:nth-child(3) .home-sideitem-label::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--dev-primary);
  box-shadow: 0 0 5px var(--dev-primary);
  animation: statusPulse 2.5s ease-in-out infinite .3s;
}
.home-sideitem:nth-child(4) .home-sideitem-label::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--dev-accent-yellow);
  box-shadow: 0 0 5px var(--dev-accent-yellow);
  animation: statusPulse 3s ease-in-out infinite .6s;
}

.home-sideitem-value {
  margin-top: 5px; font-size: 13px; font-weight: 800; color: var(--dev-text-main);
}

.home-sidefoot {
  margin-top: 14px; font-size: 11.5px; line-height: 1.65;
  color: var(--dev-text-muted);
  background: rgba(75,124,243,0.04);
  border: 1px solid rgba(75,124,243,0.1);
  border-radius: 12px; padding: 10px 12px;
}

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.home-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(226,232,240,0.9) 20%,
    rgba(226,232,240,0.9) 80%,
    transparent 100%
  );
  margin: 8px 0 0;
}

/* ─────────────────────────────────────────
   FEATURE ROW
───────────────────────────────────────── */
.home-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 32px 32px;
  position: relative; z-index: 2;
}

.home-feature {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 30px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow:
    0 20px 40px rgba(148,163,184,0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  cursor: default;
  position: relative; overflow: hidden;
  animation: fadeUp .7s ease both;
}
.home-feature:nth-child(1) { animation-delay: .35s; }
.home-feature:nth-child(2) { animation-delay: .45s; }
.home-feature:nth-child(3) { animation-delay: .55s; }

/* Hover glow per card */
.home-feature::before {
  content: '';
  position: absolute; inset: -60px;
  border-radius: inherit;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.home-feature:nth-child(1)::before { background: radial-gradient(circle, rgba(75,124,243,0.1), transparent 65%); }
.home-feature:nth-child(2)::before { background: radial-gradient(circle, rgba(255,157,188,0.12), transparent 65%); }
.home-feature:nth-child(3)::before { background: radial-gradient(circle, rgba(114,225,179,0.12), transparent 65%); }

.home-feature:hover { transform: translateY(-6px); }
.home-feature:hover::before { opacity: 1; }
.home-feature:nth-child(1):hover { box-shadow: 0 28px 55px rgba(75,124,243,0.18), inset 0 1px 0 rgba(255,255,255,0.95); border-color: rgba(75,124,243,0.18); }
.home-feature:nth-child(2):hover { box-shadow: 0 28px 55px rgba(255,157,188,0.18), inset 0 1px 0 rgba(255,255,255,0.95); border-color: rgba(255,157,188,0.22); }
.home-feature:nth-child(3):hover { box-shadow: 0 28px 55px rgba(114,225,179,0.18), inset 0 1px 0 rgba(255,255,255,0.95); border-color: rgba(114,225,179,0.22); }

/* Icon container */
.home-feature-icon {
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border-radius: 24px;
  transition: transform .3s ease;
}
.home-feature:hover .home-feature-icon { transform: scale(1.05); }
.home-feature-icon img { width: 100%; height: auto; object-fit: contain; }

.home-feature-title {
  font-size: 16px; font-weight: 700; color: var(--dev-text-main);
  margin: 0 0 6px; line-height: 1.3;
}
.home-feature-desc {
  font-size: 12.5px; color: var(--dev-text-muted); line-height: 1.65;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.home-footer {
  text-align: center; color: var(--dev-text-muted);
  font-size: 12px; margin-top: 20px; line-height: 1.7;
  opacity: 0.75;
}
.home-footer a {
  color: var(--dev-primary); text-decoration: none; font-weight: 600;
  transition: opacity .15s;
}
.home-footer a:hover { opacity: 0.75; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 980px) {
  .home-hero-top         { grid-template-columns: 1fr; padding: 24px 22px 18px; }
  .home-feature-row      { grid-template-columns: 1fr; padding: 14px 22px 24px; }
  .home-title            { font-size: 28px; }
  .home-sidecard         { margin-top: 4px; }
}

@media (max-width: 860px) {
  .home-decor            { display: none; }
  .home-shell            { padding: 14px 10px 24px; }
  .home-hero-top         { padding: 20px 16px 14px; }
  .home-feature-row      { padding: 12px 16px 20px; }
}

@media (max-width: 900px) {
  header.nav             { top: 8px; width: calc(100% - 20px); padding: 10px 12px; }
  .nav-title-sub         { display: none; }
}

@media (max-width: 640px) {
  .nav-left              { min-width: 0; }
  .nav-logo              { width: 38px; height: 38px; }
  .nav-right             { gap: 8px; }
  .user-info             { display: none; }
  .home-title            { font-size: 24px; }
  .home-btn              { padding: 9px 14px; font-size: 12px; }
}

/* ─────────────────────────────────────────
   SHIMMER SKELETON (utility — optional)
───────────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg,
    rgba(148,163,184,0.12) 0%,
    rgba(148,163,184,0.22) 40%,
    rgba(148,163,184,0.12) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}

/* ─────────────────────────────────────────
   TOOLTIP UTILITY (optional usage)
───────────────────────────────────────── */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(30,41,59,0.92); color: #f1f5f9;
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 8px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
  transform: translateX(-50%) translateY(4px);
}
[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONS — Navbar Docs link · Sidecard v2 · Button docs
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   NAVBAR — Docs link special style
───────────────────────────────────────── */
.nav-link-docs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(75,124,243,0.07);
  border-color: rgba(75,124,243,0.2) !important;
  color: var(--dev-primary) !important;
}
.nav-link-docs:hover {
  background: rgba(75,124,243,0.13) !important;
  border-color: rgba(75,124,243,0.3) !important;
  color: var(--dev-primary) !important;
}

/* Credit dot in user-sub */
.credit-dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dev-accent-green);
  box-shadow: 0 0 5px var(--dev-accent-green);
  vertical-align: middle;
  margin-right: 2px;
  animation: statusPulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   BUTTON — Docs variant
───────────────────────────────────────── */
.home-btn-docs {
  background: rgba(75,124,243,0.08);
  border-color: rgba(75,124,243,0.25);
  color: var(--dev-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-btn-docs:hover {
  background: rgba(75,124,243,0.14);
  border-color: rgba(75,124,243,0.35);
  box-shadow: 0 8px 22px rgba(75,124,243,0.15);
}

/* ─────────────────────────────────────────
   SIDECARD v2 — Live dot header
───────────────────────────────────────── */
.home-sidecard-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--dev-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidecard-live-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dev-accent-green);
  box-shadow: 0 0 8px var(--dev-accent-green);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   SIDEITEM — color variants + tag line
───────────────────────────────────────── */

/* tag line under value */
.home-sideitem-tag {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--dev-text-muted);
  letter-spacing: .03em;
  opacity: 0.8;
}

/* Green variant */
.home-sideitem.sideitem-green {
  background: rgba(114,225,179,0.07);
  border-color: rgba(114,225,179,0.22);
}
.home-sideitem.sideitem-green .home-sideitem-label::before {
  background: var(--dev-accent-green) !important;
  box-shadow: 0 0 5px var(--dev-accent-green) !important;
}
.home-sideitem.sideitem-green .home-sideitem-value {
  color: #047857;
}
.home-sideitem.sideitem-green:hover {
  border-color: rgba(114,225,179,0.4) !important;
  box-shadow: 0 6px 16px rgba(114,225,179,0.12) !important;
}

/* Blue variant */
.home-sideitem.sideitem-blue {
  background: rgba(75,124,243,0.06);
  border-color: rgba(75,124,243,0.18);
}
.home-sideitem.sideitem-blue .home-sideitem-label::before {
  background: var(--dev-primary) !important;
  box-shadow: 0 0 5px var(--dev-primary) !important;
  animation: statusPulse 2.5s ease-in-out infinite .3s !important;
}
.home-sideitem.sideitem-blue .home-sideitem-value {
  color: #2f5fe0;
}
.home-sideitem.sideitem-blue:hover {
  border-color: rgba(75,124,243,0.3) !important;
  box-shadow: 0 6px 16px rgba(75,124,243,0.1) !important;
}

/* ─────────────────────────────────────────
   API ROW
───────────────────────────────────────── */
.home-side-apirow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(148,163,184,0.15);
  font-size: 11px;
}

.home-side-apilabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--dev-text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
  white-space: nowrap;
}

.api-ping-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--dev-accent-green);
  box-shadow: 0 0 6px var(--dev-accent-green);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.home-side-apiurl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dev-primary);
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  letter-spacing: -.01em;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   STATS ROW
───────────────────────────────────────── */
.home-side-statsrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(75,124,243,0.05), rgba(114,225,179,0.05));
  border: 1px solid rgba(148,163,184,0.15);
}

.home-side-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.home-side-stat-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--dev-text-main);
  line-height: 1;
  letter-spacing: -.02em;
}

.home-side-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--dev-text-muted);
  text-align: center;
  letter-spacing: .03em;
  line-height: 1.3;
}

.home-side-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(148,163,184,0.22);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SIDEFOOT — updated flex layout
───────────────────────────────────────── */
.home-sidefoot {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--dev-text-muted);
  background: rgba(75,124,243,0.04);
  border: 1px solid rgba(75,124,243,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}