/* ==========================================================================
   KASHII UPDATEZ — ORGANIC HUMAN-CRAFTED DESIGN SYSTEM & MOBILE-FIRST SHELL
   ========================================================================== */

:root {
  /* Natural Human-Crafted Brand Palette (Zero AI-slop neon synthetic gradients) */
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --paper: #f8fafc;
  --paper-elevated: #ffffff;
  --subtle-border: #e2e8f0;
  --muted: #64748b;
  --muted-light: #94a3b8;
  
  /* Authentic Editorial Typography (Fraunces & Playfair Serif + Plus Jakarta Sans) */
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'Fira Code', 'Consolas', monospace;

  /* Specular Illumination & Depth Layering */
  --specular-inner: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --specular-inner-dark: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --card-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --hover-shadow: 0 20px 36px -10px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  --modal-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Radius & Spring Transitions */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.04) 0%, transparent 45%),
    linear-gradient(rgba(226, 232, 240, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for mobile bottom nav */
}

#spiderWebCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.site-header, .vp-hero, .vp-filter-bar, main, .yt-section, .vp-drawer-overlay, .modal-overlay, .mobile-bottom-nav, footer {
  position: relative;
  z-index: 1;
}

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

/* ==========================================================================
   LAYOUT & CONTAINER WRAP
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 14px;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ==========================================================================
   PAGINATION BUTTON STYLES
   ========================================================================== */

.pagination-wrapper {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.pagination-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.pagination-info strong {
  color: var(--ink);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.pag-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--subtle-border);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pag-btn:hover:not(:disabled) {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-primary);
  transform: translateY(-1px);
}

.pag-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--paper);
  border-color: var(--subtle-border);
  color: var(--muted);
}

.pag-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--subtle-border);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pag-page-btn:hover {
  border-color: var(--blue-border);
  color: var(--blue-primary);
  background: var(--blue-light);
  transform: translateY(-1px);
}

.pag-page-btn.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   HIGH-CONVERTING INSTAGRAM DIRECT CHAT BUTTON COMPONENT (.btn-insta-chat)
   ========================================================================== */

.btn-insta-chat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(225, 48, 108, 0.45), 0 4px 10px -2px rgba(225, 48, 108, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-insta-chat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.btn-insta-chat:hover::before {
  left: 100%;
}

.btn-insta-chat:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 35px -6px rgba(225, 48, 108, 0.65), 0 6px 14px -2px rgba(225, 48, 108, 0.3);
  color: #ffffff !important;
}

.btn-insta-chat svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-insta-chat:hover svg {
  transform: rotate(-10deg) scale(1.15);
}

@media (max-width: 992px) {
  .chat-kashii-card {
    grid-template-columns: 1fr !important;
    padding: clamp(20px, 4vw, 32px) !important;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .btn-insta-chat {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 12px 18px;
    font-size: 13px;
  }
}

.floating-chat-widget {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  box-shadow: 0 8px 22px rgba(225, 48, 108, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.floating-chat-widget:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(225, 48, 108, 0.55);
}

@media (min-width: 769px) {
  .floating-chat-widget {
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ==========================================================================
   ANNOUNCEMENT FLASH BANNER
   ========================================================================== */

.flash-banner {
  background: linear-gradient(90deg, var(--ink), #1e293b);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-banner b {
  color: #60a5fa;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.flash-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  line-height: 1;
}

.flash-close:hover {
  opacity: 1;
}

/* ==========================================================================
   HEADER NAVIGATION (MOBILE FIRST STICKY)
   ========================================================================== */

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand span {
  color: var(--blue-primary);
  font-weight: 400;
  font-style: italic;
  margin-left: 0;
}

.vp-sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--subtle-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), var(--specular-inner);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.vp-sidebar-btn:hover {
  background: #ffffff;
  border-color: var(--blue-border);
  color: var(--blue-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* Nav Links Container */
.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: var(--transition-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--blue-primary);
  background: var(--blue-light);
  border-color: rgba(191, 219, 254, 0.8);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #ffffff !important;
  background: var(--blue-primary) !important;
  border-color: var(--blue-primary) !important;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.35);
}

.nav-pill-today {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
  font-weight: 800 !important;
}

.nav-pill-today:hover, .nav-pill-today.active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

.nav-pill-yt {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.nav-pill-yt:hover {
  background: #fef2f2 !important;
}

.nav-icon, .lucide-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2px;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.mobile-nav-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}

/* Dynamic Label Switching across screen widths */
.nav-label-short {
  display: none;
}
.nav-label-long {
  display: inline;
}

.mobile-header-actions {
  display: none;
}

.mobile-today-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-today-badge.active, .mobile-today-badge:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Medium / Laptop Responsive State (880px to 1180px) */
@media (min-width: 881px) and (max-width: 1180px) {
  .nav-links {
    gap: 4px;
  }
  .nav-links a {
    padding: 6px 9px;
    font-size: 12px;
  }
  .nav-label-long {
    display: none;
  }
  .nav-label-short {
    display: inline;
  }
  .brand {
    font-size: 20px;
  }
  .vp-sidebar-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Mobile & Tablet State (< 880px) */
@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
  }
  .brand {
    font-size: 19px;
  }
}


/* ==========================================================================
   INFINITE 3D SEAMLESS MARQUEE SCROLL (HOVER PAUSE ENGINE)
   ========================================================================== */

.logo-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 16px 0;
  margin-bottom: 24px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

.logo-marquee-wrapper:hover .logo-marquee-track,
.logo-marquee-track:hover,
.client-card-3d:hover {
  animation-play-state: paused !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.client-card-3d {
  width: 260px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.client-card-3d:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--hover-shadow);
  border-color: #dc2626;
}

.client-card-3d img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  /* Prevent blank flash while loading — image has explicit dimensions */
  content-visibility: auto;
}

.client-card-3d .yt-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  opacity: 0.85;
  transition: var(--transition);
}

.client-card-3d:hover .yt-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  background: #dc2626;
}

.client-card-3d .yt-title-bar {
  padding: 10px 12px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   OFF-CANVAS SIDE DRAWER (STANDARD RESPONSIVE SYSTEM)
   ========================================================================== */

.vp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.vp-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.vp-side-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 330px;
  max-width: calc(100vw - 44px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.16);
  z-index: 1000;
}

.vp-drawer-overlay.is-open .vp-side-drawer {
  transform: translateX(0);
}

.vp-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--subtle-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  flex-shrink: 0;
}

.vp-drawer-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.vp-drawer-close:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
  transform: scale(1.08) rotate(90deg);
}

.vp-drawer-body {
  padding: 18px 16px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.vp-drawer-body::-webkit-scrollbar {
  width: 5px;
}

.vp-drawer-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.vp-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}

/* Quick Search in Drawer */
.drawer-search-wrap {
  margin-bottom: 18px;
}

.drawer-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.drawer-search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.drawer-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.drawer-search-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.drawer-search-input::placeholder {
  color: #94a3b8;
}

/* Drawer Sections */
.drawer-section {
  margin-bottom: 20px;
}

.drawer-section:last-child {
  margin-bottom: 6px;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 8px;
  padding-left: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Standard Drawer Navigation Link */
.drawer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
}

.drawer-link:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
  transform: translateX(2px);
}

.drawer-link.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.drawer-link-featured {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  font-weight: 700;
}

.drawer-link-featured:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.drawer-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-link-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Drawer Icon Box */
.drawer-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.drawer-link:hover .drawer-link-icon {
  transform: scale(1.06);
}

.drawer-icon-hot { background: #fee2e2; color: #dc2626; }
.drawer-icon-feed { background: #eff6ff; color: #2563eb; }
.drawer-icon-debugger { background: #f3e8ff; color: #7c3aed; }
.drawer-icon-sql { background: #e0f2fe; color: #0284c7; }
.drawer-icon-learn { background: #fef3c7; color: #d97706; }
.drawer-icon-blog { background: #ecfdf5; color: #059669; }
.drawer-icon-cat { background: #f1f5f9; color: #475569; }
.drawer-icon-youtube { background: #fee2e2; color: #dc2626; }
.drawer-icon-instagram { background: #fce7f3; color: #db2777; }
.drawer-icon-about { background: #f1f5f9; color: #334155; }
.drawer-icon-contact { background: #f0fdf4; color: #16a34a; }

/* Standard Drawer Badges */
.drawer-badge, .d-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  flex-shrink: 0;
}

.badge-hot { background: #dc2626; color: #ffffff; }
.badge-neutral { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-ide { background: #f3e8ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-sql { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-academy { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-blog { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-youtube { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-instagram { background: #fce7f3; color: #be185d; border: 1px solid #fbcfe8; }
.badge-count { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; font-variant-numeric: tabular-nums; }

/* Drawer Footer */
.vp-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--subtle-border);
  background: #f8fafc;
  flex-shrink: 0;
  text-align: center;
}

.drawer-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.drawer-policy-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.drawer-policy-links a:hover {
  color: #1d4ed8;
}

.drawer-policy-dot {
  color: #cbd5e1;
  font-size: 12px;
}

.drawer-copyright {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   CREATIVE HERO SECTION & ANIMATED CODING TERMINAL (AGY CRAFT UI)
   ========================================================================== */

.vp-hero {
  margin: 16px 0 28px;
  background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: clamp(20px, 4.5vw, 42px);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), var(--specular-inner);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.vp-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 30%;
  width: 380px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 80%);
  pointer-events: none;
  filter: blur(50px);
}

@media (min-width: 768px) {
  .vp-hero {
    padding: 44px;
    margin: 24px 0 36px;
    border-radius: var(--radius-xl);
  }
}

.vp-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .vp-hero-inner {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 36px;
  }
}

.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-primary);
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid var(--blue-border);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  animation: pulseGlow 3s infinite ease-in-out;
  max-width: 100%;
  letter-spacing: 0.02em;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
}

.vp-hero-copy h1, #typewriterText {
  font-family: 'Consolas', 'Fira Code', 'Monaco', 'Courier New', monospace;
  font-size: clamp(22px, 5.5vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.vp-hero-copy h1 em, #typewriterText em {
  font-style: italic;
  font-weight: 700;
  color: var(--blue-primary);
  background: none;
  -webkit-text-fill-color: initial;
  font-family: inherit;
}

.lead {
  font-size: clamp(14px, 2.5vw, 15.5px);
  color: #475569;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 100%;
  font-weight: 450;
}

.vp-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.vp-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: #ffffff;
  border: 1px solid var(--subtle-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), var(--specular-inner);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.vp-pill:hover {
  border-color: var(--blue-border);
  color: var(--blue-primary);
  transform: translateY(-1px);
}

/* --- ANIMATED CODING TERMINAL BOX (AGY OBSIDIAN DEPTH) --- */

.coding-terminal {
  background: radial-gradient(120% 120% at 50% 0%, #111827 0%, #090d16 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 
    var(--specular-inner-dark),
    0 24px 48px -12px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.8);
  font-family: var(--font-code);
  animation: floatTerminal 5s ease-in-out infinite;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
}

@keyframes floatTerminal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.terminal-header {
  background: rgba(15, 23, 42, 0.85);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.t-dot.red { background: #f43f5e; }
.t-dot.yellow { background: #fbbf24; }
.t-dot.green { background: #34d399; }

.terminal-title {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-code);
}

.terminal-body {
  padding: 16px 14px;
  font-size: clamp(10.5px, 2.7vw, 12.5px);
  line-height: 1.75;
  color: #e2e8f0;
  box-sizing: border-box;
  overflow-x: hidden;
  word-break: break-word;
}

.code-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  word-break: break-word;
}

.code-prompt {
  color: #38bdf8;
  font-weight: 700;
  user-select: none;
}

.code-kw { color: #f43f5e; font-weight: 700; }
.code-fn { color: #38bdf8; }
.code-str { color: #34d399; }
.code-num { color: #fbbf24; }
.code-cm { color: #64748b; font-style: italic; }

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #38bdf8;
  vertical-align: middle;
  margin-left: 3px;
  animation: cursorBlink 0.8s infinite;
  box-shadow: 0 0 8px #38bdf8;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   FILTER & SEARCH BAR (TACTILE PILLS & MORPH TABS)
   ========================================================================== */

.vp-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .vp-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vp-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  background: rgba(241, 245, 249, 0.7);
  border-radius: var(--radius-full);
  border: 1px solid var(--subtle-border);
  scrollbar-width: none;
}

.vp-tabs::-webkit-scrollbar {
  display: none;
}

.vp-tab {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vp-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.vp-tab:active {
  transform: scale(0.96);
}

.vp-tab.active {
  background: #ffffff;
  color: var(--blue-primary);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.12), var(--specular-inner);
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--subtle-border);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-selects select {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--subtle-border);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   CATALOG GRID & CREATIVE JOB CARDS (.vp-product-card AGY CRAFT LUXURY)
   ========================================================================== */

.vp-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .vp-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1024px) {
  .vp-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnSheen {
  0%, 65% {
    left: -130%;
  }
  100% {
    left: 170%;
  }
}

@keyframes liveRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.badge-live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: liveRadar 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.vp-product-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03), var(--specular-inner);
  transition: var(--transition-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.42s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  will-change: transform, box-shadow;
}

/* Staggered cascading entrance physics for cards */
.vp-product-card:nth-child(1) { animation-delay: 0.03s; }
.vp-product-card:nth-child(2) { animation-delay: 0.06s; }
.vp-product-card:nth-child(3) { animation-delay: 0.09s; }
.vp-product-card:nth-child(4) { animation-delay: 0.12s; }
.vp-product-card:nth-child(5) { animation-delay: 0.15s; }
.vp-product-card:nth-child(6) { animation-delay: 0.18s; }
.vp-product-card:nth-child(7) { animation-delay: 0.21s; }
.vp-product-card:nth-child(8) { animation-delay: 0.24s; }
.vp-product-card:nth-child(9) { animation-delay: 0.27s; }

.vp-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px -10px rgba(37, 99, 235, 0.13), 0 4px 12px rgba(15, 23, 42, 0.04), var(--specular-inner);
  border-color: rgba(147, 197, 253, 0.9);
}

.vp-product-card:hover::before {
  opacity: 1;
}

.vp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-primary);
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid var(--blue-border);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.company-badge:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.vp-badge-cluster {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.type-badge {
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--subtle-border);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

@media (max-width: 480px) {
  .vp-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .company-badge {
    max-width: 100%;
    font-size: 12px;
  }
  
  .vp-badge-cluster {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
}

.vp-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vp-card-content h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

.vp-salary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 750;
  color: #1d4ed8;
  margin-bottom: 10px;
}

.vp-card-content p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.skill-tag {
  font-size: 11px;
  font-weight: 650;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--subtle-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.skill-tag:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.vp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.timer-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-secondary);
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--subtle-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.card-action-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.external-apply-btn, .detail-page-btn {
  height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm, 10px);
  font-size: var(--text-xs, 12.5px);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.external-apply-btn {
  background: var(--blue-primary);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25), var(--specular-inner);
}

.external-apply-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

.external-apply-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.external-apply-btn:active {
  transform: scale(0.96);
}

.detail-page-btn {
  background: var(--blue-light);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
  box-shadow: var(--specular-inner);
}

.detail-page-btn:hover {
  background: #dbeafe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.detail-page-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.button:active {
  transform: scale(0.97);
}

.button-dark {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.button-dark:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.button-accent {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.button-accent:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.button-light {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--subtle-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), var(--specular-inner);
}

.button-light:hover {
  background: var(--paper);
  border-color: var(--blue-border);
  color: var(--blue-primary);
  transform: translateY(-1.5px);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (MOBILE FIRST APP SHELL)
   ========================================================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: auto;
  min-height: 56px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--subtle-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 150;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

[data-theme="dark"] .mobile-bottom-nav,
.dark-theme .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

.mobile-nav-item {
  flex: 1;
  max-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 4px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-spring);
  box-sizing: border-box;
}

.mobile-nav-item span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mobile-nav-item .mobile-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: var(--blue-primary);
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item.active {
  color: var(--blue-primary);
  background: var(--blue-light);
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-2px) scale(1.15);
}

/* ==========================================================================
   JOB DETAIL MODAL DRAWER
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--modal-shadow);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.close-btn {
  background: var(--paper);
  border: 1px solid var(--subtle-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--ink);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   KASHII UPDATEZ — ULTRA-CLEAN MINIMALIST EDITORIAL ENTRY EXPERIENCE
   ========================================================================== */

html.entry-done #kashiiEntry,
html.entry-done #entry {
  display: none !important;
}

#kashiiEntry, #entry {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#kashiiEntry.fade-veil, #entry.fade-veil {
  opacity: 0;
  transform: translateY(-24px) scale(0.99);
  pointer-events: none;
}

/* Ambient Soft Glowing Auroras */
.aurora {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.aurora.a1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(199, 215, 255, 0.65) 0%, rgba(224, 231, 255, 0.25) 55%, transparent 75%);
  top: -140px;
  left: -120px;
  filter: blur(75px);
  animation: float1 12s ease-in-out infinite;
}

.aurora.a2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(224, 231, 255, 0.7) 0%, rgba(219, 234, 254, 0.25) 60%, transparent 80%);
  bottom: -140px;
  right: -100px;
  filter: blur(75px);
  animation: float2 14s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -40px) scale(1.06); }
}

/* Center Stage Content */
.entry-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  z-index: 5;
}

/* Crisp Vector Editorial Brand Typography */
.entry-brand-typography {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(48px, 9.5vw, 92px);
  line-height: 1.06;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  margin: 0;
  position: relative;
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.active .entry-brand-typography {
  transform: translateY(0);
  opacity: 1;
}

.word-kashii {
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.word-updatez {
  font-style: italic;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: -0.015em;
  position: relative;
}

/* Shimmer Light Streak */
.entry-brand-typography::after {
  content: '';
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewX(-25deg);
  opacity: 0;
  pointer-events: none;
}

.entry-brand-typography.shimmer::after {
  animation: shimmerSweep 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmerSweep {
  0% { left: -35%; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

/* Sub-Tagline */
.entry-sub-tag {
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 2.4vw, 14.5px);
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-top: 14px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.8s ease 0.15s;
}

.active .entry-sub-tag {
  transform: translateY(0);
  opacity: 1;
}

/* Minimalist Clean Status Badge */
.entry-status-badge {
  position: absolute;
  bottom: clamp(28px, 7vh, 52px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulseDotClean 2s infinite;
}

@keyframes pulseDotClean {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Minimalist Skip Button */
#entrySkipBtn, #skip-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

#entrySkipBtn:hover, #skip-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
}

/* Subtle Film Texture */
.site-grain {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* Subtle Film Texture */
.site-grain {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}



