/* ==========================================================================
   HARJINDER Portfolio — Elite Design System with Full Theme Engine
   Atmosphere: Ambient Glow Mesh, Cyber Grid, HUD Cards, Shimmer Typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens (Dark Cosmic Theme by default, Light Theme via .theme-light)
   -------------------------------------------------------------------------- */
:root, body.theme-dark {
  --bg-page: #070913;
  --bg-page-subtle: #0c1022;
  --bg-grid: rgba(56, 189, 248, 0.05);

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --border-divider: rgba(255, 255, 255, 0.08);

  /* Project Cards in Dark Theme -> LIGHT contrast cards */
  --card-bg: #FFFFFF;
  --card-border: rgba(255, 255, 255, 0.7);
  --card-border-hover: #00F0FF;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 16px 38px rgba(0, 240, 255, 0.25), 0 0 16px rgba(255, 255, 255, 0.18);

  --card-title: #0F172A;
  --card-desc: #334155;
  --card-domain: #0284C7;
  --card-action: #0284C7;

  --metric-bg: rgba(255, 255, 255, 0.03);
  --metric-border: rgba(255, 255, 255, 0.08);

  --specs-btn-bg: #F1F5F9;
  --specs-btn-border: #CBD5E1;
  --specs-btn-text: #0284C7;
  --specs-btn-hover: #00F0FF;

  --card-icon-bg: #F8FAFC;
  --card-icon-border: #E2E8F0;

  --card-tag-bg: #F1F5F9;
  --card-tag-text: #1E293B;
  --card-tag-border: #E2E8F0;

  --card-live-bg: rgba(16, 185, 129, 0.12);
  --card-live-border: rgba(16, 185, 129, 0.35);
  --card-live-text: #059669;

  --card-pill-amber-bg: rgba(217, 119, 6, 0.12);
  --card-pill-amber-border: rgba(217, 119, 6, 0.35);
  --card-pill-amber-text: #B45309;

  --card-pill-blue-bg: rgba(2, 132, 199, 0.12);
  --card-pill-blue-border: rgba(2, 132, 199, 0.35);
  --card-pill-blue-text: #0284C7;

  --card-pill-purple-bg: rgba(147, 51, 234, 0.12);
  --card-pill-purple-border: rgba(147, 51, 234, 0.35);
  --card-pill-purple-text: #7E22CE;

  --card-pill-red-bg: rgba(220, 38, 38, 0.12);
  --card-pill-red-border: rgba(220, 38, 38, 0.35);
  --card-pill-red-text: #DC2626;

  /* Accents */
  --cyan-neon: #00F0FF;
  --cyan-bright: #38BDF8;
  --cyan-dark: #0284C7;

  --purple-neon: #A855F7;
  --purple-light: #C084FC;

  --amber-gold: #F59E0B;
  --amber-light: #FBBF24;

  --emerald-live: #10B981;
  --emerald-light: #34D399;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-doodle: 'Caveat', cursive;

  /* Layout */
  --container-max-width: 1060px;
  --radius-card: 14px;
  --radius-pill: 9999px;
}

body.theme-light {
  --bg-page: #FAF9F6;
  --bg-page-subtle: #F1EFEA;
  --bg-grid: rgba(2, 132, 199, 0.04);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --border-divider: #E2E8F0;

  /* Project Cards in Light Theme -> DARK contrast cards */
  --card-bg: linear-gradient(180deg, #111827 0%, #0B0F19 100%);
  --card-border: rgba(56, 189, 248, 0.25);
  --card-border-hover: rgba(56, 189, 248, 0.7);
  --card-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.18);
  --card-shadow-hover: 0 18px 44px -8px rgba(15, 23, 42, 0.35), 0 0 20px rgba(56, 189, 248, 0.15);

  --card-title: #FFFFFF;
  --card-desc: #94A3B8;
  --card-domain: #38BDF8;
  --card-action: #00F0FF;

  --metric-bg: #FFFFFF;
  --metric-border: #E2E8F0;

  --specs-btn-bg: rgba(56, 189, 248, 0.12);
  --specs-btn-border: rgba(56, 189, 248, 0.35);
  --specs-btn-text: #38BDF8;
  --specs-btn-hover: #00F0FF;

  --card-icon-bg: #0B1120;
  --card-icon-border: rgba(255, 255, 255, 0.12);

  --card-tag-bg: rgba(255, 255, 255, 0.05);
  --card-tag-text: #CBD5E1;
  --card-tag-border: rgba(255, 255, 255, 0.1);

  --card-live-bg: rgba(16, 185, 129, 0.14);
  --card-live-border: rgba(16, 185, 129, 0.35);
  --card-live-text: #34D399;

  --card-pill-amber-bg: rgba(245, 158, 11, 0.14);
  --card-pill-amber-border: rgba(245, 158, 11, 0.35);
  --card-pill-amber-text: #FBBF24;

  --card-pill-blue-bg: rgba(56, 189, 248, 0.14);
  --card-pill-blue-border: rgba(56, 189, 248, 0.35);
  --card-pill-blue-text: #38BDF8;

  --card-pill-purple-bg: rgba(168, 85, 247, 0.14);
  --card-pill-purple-border: rgba(168, 85, 247, 0.35);
  --card-pill-purple-text: #C084FC;

  --card-pill-red-bg: rgba(239, 68, 68, 0.14);
  --card-pill-red-border: rgba(239, 68, 68, 0.35);
  --card-pill-red-text: #F87171;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--cyan-neon);
  color: #070913;
}

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 3px;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border-divider);
  margin: 40px 0;
}

/* Cyber Grid Background Pattern */
.bg-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Atmosphere Mesh Lights */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  transition: opacity 0.5s ease;
  max-width: 100vw;
}

body.theme-light .ambient-glow {
  opacity: 0.35;
}

.ambient-cyan {
  top: -80px;
  left: 15%;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(2, 132, 199, 0.04) 70%, transparent 100%);
}

.ambient-purple {
  top: 420px;
  right: 5%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, rgba(124, 58, 237, 0.02) 70%, transparent 100%);
}

.ambient-gold {
  bottom: 240px;
  left: 8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
}

@media (max-width: 640px) {
  .ambient-cyan {
    width: 280px;
    height: 280px;
    left: -20px;
    top: -40px;
  }
  .ambient-purple {
    width: 260px;
    height: 260px;
    right: -20px;
    top: 360px;
  }
  .ambient-gold {
    width: 240px;
    height: 240px;
    left: -20px;
    bottom: 120px;
  }
}

/* --------------------------------------------------------------------------
   Site Wrapper & Top Nav
   -------------------------------------------------------------------------- */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 16px 14px 70px;
  width: 100%;
}

@media (min-width: 480px) {
  .site-wrapper {
    padding: 24px 20px 80px;
  }
}

@media (min-width: 640px) {
  .site-wrapper {
    padding: 32px 32px 96px;
  }
}

@media (min-width: 1024px) {
  .site-wrapper {
    padding: 40px 40px 110px;
  }
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .top-nav {
    margin-bottom: 24px;
  }
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.theme-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

body.theme-dark .icon-moon { display: inline-block; }
body.theme-dark .icon-sun { display: none; }
body.theme-light .icon-moon { display: none; }
body.theme-light .icon-sun { display: inline-block; }

/* --------------------------------------------------------------------------
   1. Hero Section (Side-by-Side: Name & Tagline Left, Round Avatar Right)
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
}

@media (min-width: 640px) {
  .hero {
    gap: 28px;
    margin-bottom: 34px;
  }
}

@media (min-width: 768px) {
  .hero {
    gap: 48px;
    margin-bottom: 40px;
  }
}

.hero-text {
  flex: 1;
  min-width: 0;
  max-width: 680px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1.05;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 3rem;
    margin-bottom: 12px;
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4rem;
    margin-bottom: 14px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.6rem;
  }
}

.hero-tagline {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .hero-tagline {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .hero-tagline {
    font-size: 1.45rem;
  }
}

/* Shimmering Animated Text Effect */
.shimmer-text {
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 25%, #818cf8 50%, #c084fc 75%, #00f0ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

/* Avatar Column & Animations */
.hero-avatar-col {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  animation: avatarFloat 6s ease-in-out infinite;
}

@media (min-width: 480px) {
  .avatar-wrapper {
    width: 115px;
    height: 115px;
  }
}

@media (min-width: 768px) {
  .avatar-wrapper {
    width: 140px;
    height: 140px;
  }
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00f0ff, #a855f7, #f59e0b, #00f0ff);
  opacity: 0.75;
  filter: blur(4px);
  animation: spinRing 12s linear infinite;
}

.avatar-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: #0d1322;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  z-index: 3;
}

@media (min-width: 640px) {
  .status-indicator {
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
  }
}

.status-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #10B981;
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10B981;
  border: 2px solid #070913;
  box-shadow: 0 0 10px #10B981;
}

/* --------------------------------------------------------------------------
   Section Common Headers & Badges
   -------------------------------------------------------------------------- */
.section-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 10px;
}

.sparkle-icon {
  color: var(--cyan-neon);
}

.gradient-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.work-section {
  margin-bottom: 48px;
}

.group-header {
  margin-bottom: 24px;
}

.group-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

@media (min-width: 640px) {
  .group-title {
    font-size: 2.1rem;
  }
}

.group-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

@media (min-width: 640px) {
  .group-subtitle {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   High-Tech HUD Glass Cards (Cards Grid)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .cards-grid {
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .work-section[aria-labelledby="heading-websites"] .cards-grid .hud-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Dedicated Explore All Projects CTA Bar (Positioned Below Featured Cards)
   -------------------------------------------------------------------------- */
.explore-all-bar-wrapper {
  margin-top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.explore-all-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 100%;
}

/* Dark Theme: Cyber Obsidian Glow Dock (High contrast against white cards) */
body.theme-dark .explore-all-bar {
  background: linear-gradient(135deg, #090E1A 0%, #0D1527 100%);
  border: 1.5px solid #00F0FF;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
}

body.theme-dark .explore-all-bar:hover {
  border-color: #38BDF8;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 240, 255, 0.35);
}

/* Light Theme: Radiant Porcelain White Dock with Cyan/Blue Border */
body.theme-light .explore-all-bar {
  background: #FFFFFF;
  border: 1.5px solid #0284C7;
  box-shadow: 0 10px 26px -4px rgba(2, 132, 199, 0.22), 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.theme-light .explore-all-bar:hover {
  background: #FFFFFF;
  border-color: #0369A1;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.3), 0 6px 16px rgba(15, 23, 42, 0.08);
}

.explore-bar-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.theme-dark .explore-bar-glow {
  background: radial-gradient(circle at 10% 50%, rgba(0, 240, 255, 0.15), transparent 60%);
  opacity: 0.6;
}

body.theme-light .explore-bar-glow {
  background: radial-gradient(circle at 10% 50%, rgba(2, 132, 199, 0.06), transparent 60%);
  opacity: 0.7;
}

.explore-all-bar:hover .explore-bar-glow {
  opacity: 1;
}

.explore-bar-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 14px 16px;
}

.explore-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.explore-bar-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.theme-dark .explore-bar-icon-box {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #00F0FF;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

body.theme-light .explore-bar-icon-box {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.explore-all-bar:hover .explore-bar-icon-box {
  transform: scale(1.08);
}

.explore-bar-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

body.theme-dark .explore-bar-title {
  color: #FFFFFF;
}

body.theme-light .explore-bar-title {
  color: #0F172A;
}

.explore-bar-right {
  flex-shrink: 0;
}

.explore-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

body.theme-dark .explore-bar-btn {
  background: #00F0FF;
  color: #070913;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}

body.theme-dark .explore-all-bar:hover .explore-bar-btn {
  background: #FFFFFF;
  color: #070913;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.65);
  transform: translateX(3px);
}

body.theme-light .explore-bar-btn {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.38);
}

body.theme-light .explore-all-bar:hover .explore-bar-btn {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  color: #FFFFFF;
  box-shadow: 0 5px 18px rgba(2, 132, 199, 0.55);
  transform: translateX(3px);
}

.explore-bar-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.explore-all-bar:hover .explore-bar-arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .explore-all-bar {
    width: 100%;
  }

  .explore-bar-inner {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px 12px 12px;
    gap: 12px;
  }

  .explore-bar-left {
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
  }

  .explore-bar-icon-box {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .explore-bar-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .explore-bar-title {
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .explore-bar-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    gap: 5px;
    flex-shrink: 0;
  }
}

.hud-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
  text-decoration: none;
}

.hud-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.hud-card:active {
  transform: scale(0.985);
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

body.theme-dark .card-glow {
  opacity: 0.15;
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .card-inner {
    padding: 18px 20px;
    gap: 11px;
  }
}

/* Card Top Row: Brand Info Left, Badges & Arrow Right */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 640px) {
  .card-brand-wrap {
    gap: 12px;
  }
}

.card-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-icon-bg);
  border: 1px solid var(--card-icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
  .card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Contrast filters for social icons */
body.theme-dark .insta-box img {
  filter: invert(36%) sepia(85%) saturate(3000%) hue-rotate(270deg);
}
body.theme-dark .youtube-box img {
  filter: invert(19%) sepia(96%) saturate(6000%) hue-rotate(355deg);
}
body.theme-light .insta-box img {
  filter: invert(90%) sepia(30%) saturate(600%) hue-rotate(130deg);
}
body.theme-light .youtube-box img {
  filter: invert(55%) sepia(80%) saturate(4000%) hue-rotate(345deg);
}

.card-title-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--card-title);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .card-title {
    font-size: 1.18rem;
  }
}

.card-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--card-domain);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .card-domain {
    font-size: 0.76rem;
  }
}

.card-badges-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-arrow {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--card-action);
  transition: transform 0.2s ease;
  line-height: 1;
}

.hud-card:hover .card-arrow {
  transform: translateX(3px);
}

/* Badges & Pills */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: var(--radius-pill);
  background: var(--card-live-bg);
  border: 1px solid var(--card-live-border);
  color: var(--card-live-text);
  letter-spacing: 0.04em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulseGlow 2s infinite ease-in-out;
}

.dot-purple {
  background: #A855F7;
  box-shadow: 0 0 6px #A855F7;
}

.dot-red {
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
}

.category-pill {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2.5px 7px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.pill-amber {
  background: var(--card-pill-amber-bg);
  border: 1px solid var(--card-pill-amber-border);
  color: var(--card-pill-amber-text);
}

.pill-blue {
  background: var(--card-pill-blue-bg);
  border: 1px solid var(--card-pill-blue-border);
  color: var(--card-pill-blue-text);
}

.pill-purple {
  background: var(--card-pill-purple-bg);
  border: 1px solid var(--card-pill-purple-border);
  color: var(--card-pill-purple-text);
}

.pill-red {
  background: var(--card-pill-red-bg);
  border: 1px solid var(--card-pill-red-border);
  color: var(--card-pill-red-text);
}

/* Card Description */
.card-desc {
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--card-desc);
  margin: 0;
}

@media (min-width: 640px) {
  .card-desc {
    font-size: 0.88rem;
    line-height: 1.52;
  }
}

/* Card Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--card-tag-bg);
  border: 1px solid var(--card-tag-border);
  color: var(--card-tag-text);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   4. Philosophy Section (Clean HUD Glass Cards)
   -------------------------------------------------------------------------- */
.philosophy-section {
  margin-bottom: 48px;
}

.philosophy-header-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .philosophy-header-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.4rem;
  }
}

/* Handwritten Doodle Note in Caveat */
.doodle-note {
  font-family: var(--font-doodle);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber-light);
  transform: rotate(-2deg);
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

@media (min-width: 640px) {
  .doodle-note {
    font-size: 1.55rem;
  }
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.philosophy-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.philosophy-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 12px;
}

.philosophy-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 8px;
}

.philosophy-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--card-desc);
}

/* --------------------------------------------------------------------------
   5. The Journey / About Section
   -------------------------------------------------------------------------- */
.journey-section {
  margin-bottom: 48px;
}

.journey-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .journey-subtitle {
    font-size: 1.05rem;
  }
}

.quote-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .quote-card {
    padding: 36px 32px;
  }
}

.quote-icon {
  font-family: var(--font-display);
  font-size: 3.8rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.25);
  margin-bottom: -10px;
}

.quote-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--card-title);
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .quote-body {
    font-size: 1.25rem;
  }
}

.quote-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--card-tag-border);
}

@media (min-width: 640px) {
  .quote-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.quote-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--card-title);
  font-size: 0.95rem;
}

.author-title {
  font-size: 0.82rem;
  color: var(--card-desc);
}

.doodle-signoff {
  font-family: var(--font-doodle);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--amber-light);
  transform: rotate(-1.5deg);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

/* Connect Card */
.connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(16, 23, 44, 0.85) 0%, rgba(13, 19, 38, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px -10px rgba(0, 240, 255, 0.18);
  overflow: hidden;
}

@media (min-width: 768px) {
  .connect-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
  }
}

.connect-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.connect-info {
  max-width: 540px;
}

.connect-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.connect-sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94A3B8;
}

.connect-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #070913;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #F8FAFC;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-glass:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-divider);
  text-align: center;
}

@media (min-width: 640px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-brand {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-divider);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.15);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ==========================================================================
   World-Class Feature 1: Impact Metrics Strip
   ========================================================================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px 14px;
  border-radius: var(--radius-card);
  background: var(--metric-bg);
  border: 1px solid var(--metric-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .metrics-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 18px 20px;
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 8px;
}

.metric-val-wrap {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 1px;
}

@media (min-width: 640px) {
  .metric-val-wrap {
    font-size: 2.15rem;
  }
}

.metric-number {
  letter-spacing: -0.02em;
}

.metric-accent {
  color: var(--cyan-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

body.theme-light .metric-accent {
  color: #0284C7;
}
body.theme-dark .metric-accent {
  color: #00F0FF;
}

.metric-prefix {
  color: var(--cyan-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 1px;
}
body.theme-light .metric-prefix { color: #0284C7; }
body.theme-dark .metric-prefix { color: #00F0FF; }

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .metric-label {
    font-size: 0.72rem;
  }
}

.metric-divider {
  display: none;
}

@media (min-width: 768px) {
  .metric-divider {
    display: block;
    width: 1px;
    height: 38px;
    align-self: center;
    background: var(--border-divider);
  }
}

/* ==========================================================================
   World-Class Feature 2: Specs Trigger Button on Cards
   ========================================================================== */
.btn-specs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px 7px;
  border-radius: var(--radius-pill);
  background: var(--specs-btn-bg);
  border: 1px solid var(--specs-btn-border);
  color: var(--specs-btn-text);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-specs-trigger:hover {
  border-color: var(--specs-btn-hover);
  color: var(--specs-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-specs-trigger:active {
  transform: scale(0.95);
}

.specs-icon {
  font-size: 0.68rem;
  line-height: 1;
}

/* ==========================================================================
   World-Class Feature 3: Interactive AI & Algo Terminal
   ========================================================================== */
.terminal-section {
  margin-bottom: 48px;
}

.terminal-container {
  border-radius: var(--radius-card);
  background: #090D18;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #E2E8F0;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #060912;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .terminal-topbar {
    padding: 12px 18px;
  }
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-close { background: #EF4444; }
.dot-min { background: #F59E0B; }
.dot-max { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94A3B8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .terminal-title {
    font-size: 0.76rem;
  }
}

.term-host { color: #38BDF8; font-weight: 600; }
.term-path { color: #C084FC; }

.terminal-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #10B981;
}

.term-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulseGlow 2s infinite ease-in-out;
}

.terminal-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terminal-actions-bar::-webkit-scrollbar {
  display: none;
}

.actions-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.term-chips-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.term-chip:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #00F0FF;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.term-chip:active {
  transform: scale(0.96);
}

.term-chip-clear {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #F87171;
}

.term-chip-clear:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #EF4444;
  color: #FFFFFF;
}

.terminal-screen {
  height: 250px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  background: #090D18;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 640px) {
  .terminal-screen {
    height: 290px;
    padding: 18px 20px;
    font-size: 0.82rem;
  }
}

.terminal-screen::-webkit-scrollbar {
  width: 6px;
}
.terminal-screen::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.term-line {
  word-break: break-word;
}

.term-intro {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.term-cyan { color: #00F0FF; font-weight: 600; }
.term-dim { color: #64748B; font-size: 0.74rem; }
.term-highlight { color: #FBBF24; font-weight: 600; }
.term-success { color: #34D399; font-weight: 600; }
.term-amber { color: #F59E0B; }
.term-purple { color: #C084FC; }
.term-error { color: #F87171; }
.term-tag {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-size: 0.68rem;
  margin-right: 4px;
}

.terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #060912;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .terminal-input-bar {
    padding: 12px 18px;
    gap: 12px;
  }
}

.term-prompt-symbol {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #38BDF8;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #FFFFFF;
  min-width: 0;
}

.terminal-input::placeholder {
  color: #475569;
  font-size: 0.74rem;
}

.terminal-run-btn {
  padding: 5px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  border: none;
  color: #070913;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.terminal-run-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ==========================================================================
   World-Class Feature 4: Project Deep-Dive Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 0;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
}

.modal-backdrop.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0C1220;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal-card {
    border-radius: 18px;
    max-height: 84vh;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.modal-backdrop.modal-active .modal-card {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-backdrop.modal-active .modal-card {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080D18;
}

@media (min-width: 640px) {
  .modal-header {
    padding: 18px 24px;
  }
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.modal-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-title-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.modal-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #38BDF8;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FFFFFF;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #CBD5E1;
}

@media (min-width: 640px) {
  .modal-body {
    padding: 22px 24px;
  }
}

.modal-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-subheading {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-text {
  font-size: 0.9rem;
  line-height: 1.58;
  color: #E2E8F0;
}

.modal-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  font-weight: 500;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.modal-spec-card {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-spec-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-spec-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #00F0FF;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  background: #080D18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .modal-footer {
    padding: 16px 24px;
  }
}

.btn-modal-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.btn-modal-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #070913;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.3);
  transition: transform 0.2s ease;
  text-decoration: none;
}

/* Light theme support for all modals */
body.theme-light .modal-backdrop {
  background: rgba(15, 23, 42, 0.6);
}

body.theme-light .modal-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.25), 0 0 30px rgba(2, 132, 199, 0.1);
  color: #0F172A;
}

body.theme-light .modal-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.theme-light .modal-title {
  color: #0F172A;
}

body.theme-light .modal-domain {
  color: #0284C7;
}

body.theme-light .modal-close-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

body.theme-light .modal-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
}

body.theme-light .modal-body {
  color: #334155;
}

body.theme-light .modal-subheading {
  color: #64748B;
}

body.theme-light .modal-text {
  color: #334155;
}

body.theme-light .modal-spec-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.theme-light .modal-spec-label {
  color: #64748B;
}

body.theme-light .modal-spec-val {
  color: #0284C7;
}

body.theme-light .modal-footer {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.theme-light .btn-modal-cancel {
  border-color: #CBD5E1;
  color: #64748B;
}

body.theme-light .btn-modal-cancel:hover {
  background: #F1F5F9;
  color: #0F172A;
}


/* ==========================================================================
   World-Class Feature 5: Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: #090E1B;
  border: 1px solid #00F0FF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.25);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notification.toast-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1rem;
  color: #00F0FF;
}

/* ==========================================================================
   World-Class Feature 6: Desktop Spotlight Hover
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .hud-card {
    position: relative;
  }
  .hud-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 240, 255, 0.12), transparent 45%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
  }
  .hud-card:hover::after {
    opacity: 1;
  }
}

/* ==========================================================================
   Portfolio View Mode Switcher (Detailed List vs Launchpad)
   ========================================================================== */
.view-mode-bar {
  display: flex;
  justify-content: center;
  margin: 28px 0 16px;
  width: 100%;
}

.view-mode-tabs {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-divider);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 4px;
}

body.theme-dark .view-mode-tabs {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.view-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light .view-tab:hover {
  background: rgba(15, 23, 42, 0.06);
}

.view-tab.active {
  cursor: default;
}

body.theme-light .view-tab.active {
  background: #0F172A;
  color: #F8FAFC;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

body.theme-dark .view-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18) 0%, rgba(168, 85, 247, 0.18) 100%);
  color: #00F0FF;
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.view-tab .tab-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tab-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-tab:hover .tab-icon-svg,
.phone-tab:hover .tab-icon-svg {
  transform: scale(1.15);
}

@media (max-width: 480px) {
  .view-mode-bar {
    margin: 20px 0 12px;
  }
  .view-tab {
    padding: 6px 14px;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   Dedicated Mobile App Launcher Page (apps.html)
   ========================================================================== */
.app-launcher-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-page-wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.app-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-back-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-divider);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back-portfolio:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #00F0FF;
  transform: translateX(-2px);
}

.app-page-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.phone-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Phone Mockup Frame Enclosure */
.phone-frame-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 380px;
  border-radius: 38px;
  padding: 14px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Phone: Sleek Ceramic Silver / Apple White */
body.theme-light .phone-frame {
  background: #FFFFFF;
  border: 2px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08), 0 6px 20px rgba(15, 23, 42, 0.04);
  color: #0F172A;
}

/* Dark Theme Phone: Deep Obsidian Titanium */
body.theme-dark .phone-frame {
  background: #090E1A;
  border: 3px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.15);
  color: #FFFFFF;
}

/* Phone Status Bar */
.phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

body.theme-light .phone-top-bar {
  color: #0F172A;
}

body.theme-dark .phone-top-bar {
  color: #CBD5E1;
}

.phone-clock {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-dynamic-island {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0F172A;
  border: 1px solid #1E293B;
}

.island-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #090D18;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
}

.phone-signal {
  font-size: 0.55rem;
  letter-spacing: 1px;
}

body.theme-light .phone-signal,
body.theme-light .phone-battery {
  color: #059669;
}

body.theme-dark .phone-signal,
body.theme-dark .phone-battery {
  color: #10B981;
}

.phone-wifi {
  font-size: 0.7rem;
}

.phone-battery {
  font-size: 0.65rem;
  font-weight: 700;
}

/* Phone Screen Header */
.phone-screen-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px 0;
}

.phone-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  transition: border-color 0.3s ease;
}

body.theme-light .phone-avatar {
  border: 2px solid #0284C7;
}

body.theme-dark .phone-avatar {
  border: 2px solid #00F0FF;
}

.phone-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.3s ease;
}

body.theme-light .phone-user-name {
  color: #0F172A;
}

body.theme-dark .phone-user-name {
  color: #FFFFFF;
}

.phone-user-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  transition: color 0.3s ease;
}

body.theme-light .phone-user-sub {
  color: #64748B;
}

body.theme-dark .phone-user-sub {
  color: #94A3B8;
}

/* In-Phone View Switcher Tabs */
.phone-view-tabs {
  display: flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
  margin-top: 6px;
  transition: all 0.3s ease;
}

body.theme-light .phone-view-tabs {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-dark .phone-view-tabs {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

body.theme-light .phone-tab {
  color: #64748B;
}

body.theme-light .phone-tab:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.04);
}

body.theme-light .phone-tab.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  cursor: default;
}

body.theme-dark .phone-tab {
  color: #94A3B8;
}

body.theme-dark .phone-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .phone-tab.active {
  background: rgba(0, 240, 255, 0.18);
  color: #00F0FF;
  border-color: rgba(0, 240, 255, 0.35);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  cursor: default;
}

.phone-tab .tab-icon-svg {
  width: 13px;
  height: 13px;
}

/* Phone App Sections (Websites & Tools vs Social Media) */
.phone-app-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px;
}

.phone-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

body.theme-light .phone-label-dot.dot-cyan {
  background: #0284C7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
}

body.theme-light .phone-label-dot.dot-purple {
  background: #9333EA;
  box-shadow: 0 0 6px rgba(147, 51, 234, 0.4);
}

body.theme-dark .phone-label-dot.dot-cyan {
  background: #00F0FF;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}

body.theme-dark .phone-label-dot.dot-purple {
  background: #C084FC;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.7);
}

.phone-label-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

body.theme-light .phone-label-text {
  color: #475569;
}

body.theme-dark .phone-label-text {
  color: #CBD5E1;
}

.phone-label-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  margin-left: auto;
  transition: all 0.3s ease;
}

body.theme-light .phone-label-count {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

body.theme-dark .phone-label-count {
  background: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

/* App Grid (3 Columns of Apps) */
.phone-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  padding: 6px 4px;
  justify-items: center;
}

.phone-app-grid-social {
  grid-template-columns: repeat(2, 1fr);
  max-width: 230px;
  margin: 0 auto;
  gap: 16px 24px;
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 86px;
}

.app-icon-item:hover {
  transform: translateY(-3px) scale(1.04);
}

.app-icon-item:active {
  transform: scale(0.9);
}

.app-squircle {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #1e263d 0%, #0c101c 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.theme-light .app-squircle {
  background: radial-gradient(circle at 30% 30%, #F8FAFC 0%, #E2E8F0 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

body.theme-light .app-icon-item:hover .app-squircle {
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

body.theme-dark .app-squircle {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.theme-dark .app-icon-item:hover .app-squircle {
  box-shadow: 0 12px 24px rgba(0, 240, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.app-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Dedicated Brand Squircle Themes */
.app-squircle-zerolive {
  background: radial-gradient(circle at 30% 30%, #1a2233 0%, #0b0f19 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.app-squircle-zerobreakout {
  background: radial-gradient(circle at 30% 30%, #101c36 0%, #060a14 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.app-squircle-brightbulls {
  background: radial-gradient(circle at 30% 30%, #1e263d 0%, #0c101c 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.app-squircle-aipunjab {
  background: radial-gradient(circle at 30% 30%, #261742 0%, #100820 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.app-squircle-animation {
  background: radial-gradient(circle at 30% 30%, #2e1236 0%, #120617 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.app-squircle-instagram {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
  border: 1px solid rgba(253, 29, 29, 0.5);
}

.app-squircle-instagram img {
  filter: brightness(0) invert(1);
}

.app-squircle-youtube {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  border: 1px solid rgba(255, 0, 0, 0.6);
}

.app-squircle-youtube img {
  filter: brightness(0) invert(1);
}

.app-name {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
  transition: color 0.3s ease;
}

body.theme-light .app-name {
  color: #0F172A;
}

body.theme-dark .app-name {
  color: #F1F5F9;
}

/* Phone Bottom Dock */
.phone-dock {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 8px 14px;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

body.theme-light .dock-inner {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

body.theme-dark .dock-inner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.dock-item:hover {
  transform: translateY(-2px);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 1;
}

.dock-icon svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.dock-item:hover .dock-icon svg {
  transform: scale(1.15);
}

.dock-icon-youtube {
  color: #EF4444;
}

.dock-item:hover .dock-icon-youtube svg {
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

.dock-icon-instagram {
  color: #EC4899;
}

.dock-item:hover .dock-icon-instagram svg {
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.6));
}

body.theme-light .dock-icon-home {
  color: #0F172A;
}

body.theme-dark .dock-icon-home {
  color: #00F0FF;
}

body.theme-dark .dock-item:hover .dock-icon-home svg {
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}

.dock-name {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

body.theme-light .dock-name {
  color: #475569;
}

body.theme-light .dock-item:hover .dock-name {
  color: #0F172A;
}

body.theme-dark .dock-name {
  color: #94A3B8;
}

body.theme-dark .dock-item:hover .dock-name {
  color: #FFFFFF;
}

.phone-home-bar {
  width: 120px;
  height: 4px;
  border-radius: 9999px;
  margin-top: 2px;
  transition: background 0.3s ease;
}

body.theme-light .phone-home-bar {
  background: rgba(15, 23, 42, 0.2);
}

body.theme-dark .phone-home-bar {
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
  .app-page-wrapper {
    padding: 12px 10px 24px;
    gap: 12px;
  }

  .phone-frame {
    border-radius: 30px;
    padding: 12px 12px 18px;
    border-width: 2px;
  }

  .phone-app-grid {
    gap: 14px 8px;
  }

  .app-squircle {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .app-img {
    width: 40px;
    height: 40px;
  }

  .app-name {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Admin Security Portal & Control Center
   Features: Locked Button (Footer), PIN Modal (1430), Multi-Tab Admin Panel
   ========================================================================== */

/* Footer Admin Lock Button */
.admin-lock-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light .admin-lock-btn {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.15);
  color: #64748B;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.admin-lock-btn:hover {
  transform: translateY(-2px);
}

body.theme-dark .admin-lock-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00F0FF;
  color: #00F0FF;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

body.theme-light .admin-lock-btn:hover {
  background: #FFFFFF;
  border-color: #0284C7;
  color: #0284C7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* --------------------------------------------------------------------------
   PIN Verification Modal (#admin-auth-modal)
   -------------------------------------------------------------------------- */
.admin-auth-card {
  max-width: 440px !important;
  text-align: center;
}

.admin-auth-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.admin-auth-shield-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
}

body.theme-light .admin-auth-shield-icon {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
}

.admin-auth-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-auth-body {
  padding: 24px 20px;
}

.pin-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-pin-input {
  width: 220px;
  height: 56px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  text-align: center;
  border-radius: 16px;
  border: 2px solid rgba(0, 240, 255, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: var(--cyan-neon);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  outline: none;
}

body.theme-light .admin-pin-input {
  background: #FFFFFF;
  border-color: rgba(2, 132, 199, 0.35);
  color: #0284C7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

.admin-pin-input:focus {
  border-color: #00F0FF;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

body.theme-light .admin-pin-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.25);
}

.admin-pin-error {
  min-height: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #EF4444;
  letter-spacing: 0.02em;
}

.pin-error-shake {
  animation: pinShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #EF4444 !important;
}

@keyframes pinShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.pin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-unlock {
  padding: 10px 22px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Admin Control Center Modal (#admin-panel-modal)
   -------------------------------------------------------------------------- */
.admin-panel-card {
  max-width: 820px !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.admin-panel-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

body.theme-light .admin-panel-top {
  border-color: #E2E8F0;
}

.admin-panel-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  width: fit-content;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
  overflow-x: auto;
}

body.theme-light .admin-tabs {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  color: var(--cyan-neon);
  border-bottom-color: var(--cyan-neon);
}

body.theme-light .admin-tab.active {
  color: #0284C7;
  border-bottom-color: #0284C7;
}

.admin-panel-body {
  overflow-y: auto;
  padding: 20px 24px 28px;
  flex: 1;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-pane-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-pane-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 540px;
}

.btn-add-project {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

/* Reorderable Projects List */
.admin-projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

body.theme-light .admin-project-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.admin-project-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.admin-proj-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.admin-proj-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  flex-shrink: 0;
}

body.theme-light .admin-proj-order {
  background: #F1F5F9;
  color: #334155;
}

.admin-proj-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-proj-icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.admin-proj-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-proj-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-proj-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.admin-badge-featured {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

body.theme-light .admin-badge-featured {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.3);
  color: #B45309;
}

.admin-badge-all {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.admin-proj-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .admin-proj-domain {
  color: #0284C7;
}

.admin-proj-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-arrow-reorder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

body.theme-light .btn-arrow-reorder {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.btn-arrow-reorder:hover:not(:disabled) {
  background: var(--cyan-bright);
  color: #070913;
  border-color: var(--cyan-bright);
}

.btn-arrow-reorder:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.btn-admin-edit, .btn-admin-del {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

body.theme-light .btn-admin-edit, body.theme-light .btn-admin-del {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.btn-admin-edit:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

body.theme-light .btn-admin-edit:hover {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284C7;
  color: #0284C7;
}

.btn-admin-del:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
}

/* Add / Edit Form Drawer */
.project-form-container {
  margin-top: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid var(--cyan-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.theme-light .project-form-container {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

.project-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .project-form-header {
  border-color: #E2E8F0;
}

.project-form-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-mini-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

/* Admin Form Inputs */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

body.theme-light .form-group input, body.theme-light .form-group textarea, body.theme-light .form-group select {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

body.theme-light .form-group input:focus, body.theme-light .form-group textarea:focus, body.theme-light .form-group select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Backup & Reset Grid */
.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .backup-grid {
    grid-template-columns: 1fr;
  }
}

.backup-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-light .backup-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.backup-card h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.backup-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.btn-danger {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-danger:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* ==========================================================================
   Logo Uploader & Live Customizer Component
   ========================================================================== */
.logo-uploader-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-light .logo-uploader-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.form-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan-bright);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.theme-light .form-section-label {
  color: #0284C7;
}

.logo-uploader-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .logo-uploader-layout {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Left: Live Previews */
.logo-preview-column {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

body.theme-light .logo-preview-column {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.logo-preview-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-preview-squircle {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #1e263d 0%, #0c101c 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

body.theme-light .logo-preview-squircle {
  background: radial-gradient(circle at 30% 30%, #F8FAFC 0%, #E2E8F0 100%);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.logo-preview-squircle img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.logo-preview-frame .card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-preview-frame .card-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.logo-preview-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Right: Upload & Controls */
.logo-controls-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.logo-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-upload-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #070913;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-upload-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0, 240, 255, 0.45);
}

.btn-mini-del {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.theme-light .btn-mini-del {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #64748B;
}

.btn-mini-del:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
}

.logo-dropzone {
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  background: rgba(56, 189, 248, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

body.theme-light .logo-dropzone {
  border-color: rgba(2, 132, 199, 0.35);
  background: rgba(2, 132, 199, 0.04);
}

.logo-dropzone:hover, .logo-dropzone.drag-over {
  border-color: var(--cyan-bright);
  background: rgba(0, 240, 255, 0.1);
}

.dropzone-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Editing Tools */
.logo-edit-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.logo-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tool-slider {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  accent-color: var(--cyan-bright);
  background: rgba(255, 255, 255, 0.15);
}

body.theme-light .tool-slider {
  background: #CBD5E1;
  accent-color: #0284C7;
}

/* Color Palette Swatches */
.logo-bg-palette {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.bg-palette-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

body.theme-light .bg-palette-dot {
  border-color: rgba(15, 23, 42, 0.2);
}

.bg-palette-dot:hover {
  transform: scale(1.15);
}

.bg-palette-dot.active {
  border-color: #00F0FF !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  transform: scale(1.18);
}

body.theme-light .bg-palette-dot.active {
  border-color: #0284C7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.5);
}

.logo-url-toggle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.logo-url-toggle summary {
  cursor: pointer;
  user-select: none;
  color: var(--cyan-bright);
  margin-bottom: 6px;
  font-weight: 600;
}

body.theme-light .logo-url-toggle summary {
  color: #0284C7;
}

.logo-url-toggle input {
  font-size: 0.8rem;
  padding: 6px 10px;
}

/* Quick Edit Logo Button in Admin List */
.btn-admin-logo {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.06);
  color: var(--cyan-bright);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

body.theme-light .btn-admin-logo {
  background: #F0F9FF;
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284C7;
}

.btn-admin-logo:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00F0FF;
  color: #00F0FF;
}

body.theme-light .btn-admin-logo:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284C7;
  color: #0284C7;
}

/* ==========================================================================
   Admin Panel Tab 4: Zero-Lag Cloud Sync (Firebase Realtime Database)
   ========================================================================== */
.cloud-status-card {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

body.theme-light .cloud-status-card {
  background: #F8FAFC;
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.cloud-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cloud-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
}

.status-dot.offline {
  background: #64748B;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.2);
}

.status-dot.online {
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulse-green 2s infinite ease-in-out;
}

.status-dot.syncing {
  background: #00F0FF;
  box-shadow: 0 0 12px #00F0FF, 0 0 0 3px rgba(0, 240, 255, 0.3);
  animation: pulse-cyan 1s infinite alternate;
}

.status-dot.error {
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444, 0 0 0 3px rgba(239, 68, 68, 0.3);
}

@keyframes pulse-green {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px #10B981, 0 0 0 3px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 16px #10B981, 0 0 0 6px rgba(16, 185, 129, 0.15);
  }
}

@keyframes pulse-cyan {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px #00F0FF;
  }
  100% {
    transform: scale(1.2);
    box-shadow: 0 0 16px #00F0FF, 0 0 0 5px rgba(0, 240, 255, 0.2);
  }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cloud-latency-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cloud-status-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.label-badge-free {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
}

.input-with-button {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.input-with-button input {
  flex: 1;
}

.btn-test-conn {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cloud-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-divider);
}

.btn-danger-outline {
  padding: 9px 15px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #EF4444;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
  color: #F87171;
}

/* 2-Minute Setup Walkthrough Card */
.cloud-guide-card {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

body.theme-light .cloud-guide-card {
  background: #F0F9FF;
  border-color: rgba(2, 132, 199, 0.2);
}

.cloud-guide-header h5 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cloud-steps-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cloud-steps-list li strong {
  color: var(--text-primary);
}

.cloud-steps-list a {
  color: var(--cyan-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

body.theme-light .cloud-steps-list a {
  color: #0284C7;
}

.cloud-steps-list code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan-bright);
}

body.theme-light .cloud-steps-list code {
  background: #E0F2FE;
  border-color: rgba(2, 132, 199, 0.25);
  color: #0369A1;
}
