/* =====================================================
   André Dev — Global Styles
   andredev.pt
   ===================================================== */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* =====================================================
   LIGHT MODE
   ===================================================== */
html.light body {
  background-color: #f8fafc;
  color: #0f172a;
}
html.light #navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(0,0,0,0.07);
}
html.light .glass-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}
html.light .input-field {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  color: #0f172a;
}
html.light .input-field::placeholder { color: #94a3b8; }
html.light .input-field:focus {
  border-color: rgba(99,102,241,0.5);
  background: #fff;
}
html.light .btn-ghost {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #374151;
}
html.light .btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  color: #111827;
}
html.light .tag {
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  border-color: rgba(99,102,241,0.15);
}
html.light .service-card,
html.light .portfolio-card,
html.light .testimonial-card,
html.light .pricing-card,
html.light .project-card,
html.light .stat-card {
  background: rgba(255,255,255,0.95) !important;
  border-color: rgba(0,0,0,0.07) !important;
}
html.light .project-card:hover {
  border-color: rgba(99,102,241,0.25) !important;
}
html.light .dash-tab.active-tab {
  background: rgba(99,102,241,0.1);
}
html.light footer {
  border-top-color: rgba(0,0,0,0.07) !important;
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal[data-delay="100"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="200"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="300"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="400"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="500"] { transition-delay: 0.5s; }

body {
  background-color: #030712;
  color: #f9fafb;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   LOCAL DESIGN BASE / TAILWIND FALLBACK
   Mantem o site desenhado mesmo se o CDN do Tailwind falhar.
   ===================================================== */
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, svg, video { max-width: 100%; height: auto; }
img.site-logo { max-width: 11rem; height: 2.25rem; width: auto; }

.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.contents { display: contents; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.right-4 { right: 1rem; }
.top-14 { top: 3.5rem; }
.top-16 { top: 4rem; }
.top-1\/2 { top: 50%; }
.left-4 { left: 1rem; }
.right-1 { right: .25rem; }
.top-1 { top: .25rem; }
.z-50 { z-index: 50; }
.z-\[9999\] { z-index: 9999; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: .25rem; }
.ml-2 { margin-left: .5rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }

.w-full { width: 100%; }
.w-2 { width: .5rem; }
.w-3 { width: .75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-48 { width: 12rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.h-1\.5 { height: .375rem; }
.h-3 { height: .75rem; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.min-h-screen { min-height: 100vh; }
.max-h-8 { max-height: 2rem; }
.max-h-9 { max-height: 2.25rem; }
.max-h-10 { max-height: 2.5rem; }
.max-h-14 { max-height: 3.5rem; }
.max-h-80 { max-height: 20rem; }
.max-h-56 { max-height: 14rem; }
.w-auto { width: auto; }
.object-contain { object-fit: contain; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-white\/5 { border-color: rgba(255,255,255,.05); }
.border-white\/10 { border-color: rgba(255,255,255,.1); }
.divide-y > * + * { border-top: 1px solid; }
.divide-white\/5 > * + * { border-color: rgba(255,255,255,.05); }
.border-blue-500\/20 { border-color: rgba(59,130,246,.2); }
.border-blue-500\/40 { border-color: rgba(59,130,246,.4); }
.border-red-500\/20 { border-color: rgba(239,68,68,.2); }
.border-green-500\/20 { border-color: rgba(34,197,94,.2); }

.bg-gray-950 { background-color: #030712; }
.bg-gray-950\/40 { background-color: rgba(3,7,18,.4); }
.bg-gray-950\/50 { background-color: rgba(3,7,18,.5); }
.bg-gray-900\/40 { background-color: rgba(17,24,39,.4); }
.bg-gray-900\/50 { background-color: rgba(17,24,39,.5); }
.bg-gray-950\/90 { background-color: rgba(3,7,18,.9); }
.bg-gray-800 { background-color: #1f2937; }
.bg-blue-500\/10 { background-color: rgba(59,130,246,.1); }
.bg-red-500\/10 { background-color: rgba(239,68,68,.1); }
.bg-green-500\/10 { background-color: rgba(34,197,94,.1); }
.bg-gray-500\/10 { background-color: rgba(107,114,128,.1); }
.bg-white\/5 { background-color: rgba(255,255,255,.05); }
.bg-white\/10 { background-color: rgba(255,255,255,.1); }
.bg-gradient-to-br { background-image: linear-gradient(135deg, var(--tw-gradient-from, #3b82f6), var(--tw-gradient-to, #8b5cf6)); }
.bg-gradient-to-r { background-image: linear-gradient(90deg, var(--tw-gradient-from, #3b82f6), var(--tw-gradient-to, #8b5cf6)); }
.from-blue-500 { --tw-gradient-from: #3b82f6; }
.to-violet-600 { --tw-gradient-to: #7c3aed; }
.to-violet-500 { --tw-gradient-to: #8b5cf6; }
.from-gray-950 { --tw-gradient-from: #030712; }
.via-gray-900 { --tw-gradient-to: #111827; }
.to-gray-950 { --tw-gradient-to: #030712; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.text-yellow-300 { color: #fde047; }
.text-yellow-400 { color: #facc15; }
.text-orange-400 { color: #fb923c; }
.text-violet-400 { color: #a78bfa; }
.text-purple-300 { color: #d8b4fe; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.05; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-heading { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', Consolas, monospace; }
.leading-tight { line-height: 1.05; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: 0; }

.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.25); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,.28); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,.35); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.transition-all { transition: all .2s ease; }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.transition-transform { transition: transform .2s ease; }
.duration-300 { transition-duration: .3s; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.hover\:-translate-y-1:hover { transform: translateY(-.25rem); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-red-300:hover { color: #fca5a5; }
.hover\:bg-white\/5:hover { background-color: rgba(255,255,255,.05); }
.hover\:bg-gray-700:hover { background-color: #374151; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:flex { display: flex !important; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (max-width: 767px) {
  .md\:hidden { display: block !important; }
  .md\:flex { display: none !important; }
  .text-5xl { font-size: 2.35rem; }
  .text-7xl { font-size: 3.25rem; }
  .w-96, .w-80 { width: 16rem; }
}

/* =====================================================
   SITE LOADER
   ===================================================== */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(59, 130, 246, 0.18), transparent 34rem),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.15), transparent 28rem),
    #030712;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-card {
  width: min(20rem, 100%);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.site-loader-logo {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.site-loader-copy p {
  margin-top: 0.35rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.site-loader-bar {
  width: 100%;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.site-loader-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  animation: loaderBar 1.2s ease-in-out infinite;
}

html.light .site-loader {
  background:
    radial-gradient(circle at 35% 30%, rgba(59, 130, 246, 0.16), transparent 34rem),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.12), transparent 28rem),
    #f8fafc;
}

html.light .site-loader-copy p {
  color: #64748b;
}

html.light .site-loader-bar {
  background: rgba(15, 23, 42, 0.08);
}

@keyframes loaderPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-0.25rem) scale(1.03); }
}

@keyframes loaderBar {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(250%); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ---- Selection ---- */
::selection { background: rgba(99, 102, 241, 0.3); color: #e0e7ff; }

/* =====================================================
   OFFICIAL LOGO
   Never render /img/logo-horizontal.png at native size.
   Global `img { height: auto }` must not win here.
   ===================================================== */
img.site-logo,
.site-logo {
  display: block;
  height: 2.25rem !important;
  max-height: 2.25rem !important;
  width: auto !important;
  max-width: 11rem !important;
  object-fit: contain;
}

img.site-logo.site-logo--md,
.site-logo--md {
  height: 2.5rem !important;
  max-height: 2.5rem !important;
  max-width: 13rem !important;
}

img.site-logo.site-logo--loader,
.site-logo--loader {
  height: 3.5rem !important;
  max-height: 3.5rem !important;
  max-width: 17rem !important;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

html.light img.site-logo,
html.light .site-logo {
  filter: invert(1);
}

@media (max-width: 640px) {
  img.site-logo,
  .site-logo {
    height: 1.85rem !important;
    max-height: 1.85rem !important;
    max-width: 9.5rem !important;
  }

  img.site-logo.site-logo--md,
  .site-logo--md {
    height: 2.15rem !important;
    max-height: 2.15rem !important;
    max-width: 11.5rem !important;
  }

  img.site-logo.site-logo--loader,
  .site-logo--loader {
    height: 2.75rem !important;
    max-height: 2.75rem !important;
    max-width: 14rem !important;
  }
}

/* =====================================================
   NAVBAR
   ===================================================== */
#navbar {
  background: rgba(3, 7, 18, 0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}
#navbar.scrolled {
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
  background-position: 100% 50%;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-1px);
}

/* =====================================================
   INPUTS
   ===================================================== */
.input-field {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
  width: 100%;
  outline: none;
}
.input-field::placeholder { color: #6b7280; }
.input-field:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(17, 24, 39, 1);
}
.input-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =====================================================
   GLASS CARD
   ===================================================== */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* =====================================================
   GRADIENT TEXT
   ===================================================== */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================================================
   TAGS / BADGES
   ===================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  letter-spacing: 0.025em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}
.status-badge.pending    { background: rgba(234, 179, 8, 0.1);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.2); }
.status-badge.in_progress { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.status-badge.completed  { background: rgba(34, 197, 94, 0.1);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.status-badge.cancelled  { background: rgba(239, 68, 68, 0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.status-badge.proposal   { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168,85,247,0.2); }

/* =====================================================
   GRID PATTERN BACKGROUND
   ===================================================== */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* =====================================================
   PAGE SYSTEM (SPA)
   ===================================================== */
.page { display: none; }
.page.active { display: block !important; }
#app > .page.active { position: relative; z-index: 1; }
.page.hidden { display: none; }

/* =====================================================
   DASHBOARD NAV TABS
   ===================================================== */
.dash-tab {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.dash-tab:hover { color: #d1d5db; background: rgba(255,255,255,0.04); }
.dash-tab.active-tab {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  font-weight: 600;
}

/* =====================================================
   FILTER BUTTONS
   ===================================================== */
.filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.filter-btn:hover { color: #d1d5db; border-color: rgba(255,255,255,0.12); }
.filter-btn.active-filter {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  font-weight: 600;
}

/* =====================================================
   PROJECT CARD
   ===================================================== */
.project-page-chat {
  min-height: 560px;
  height: calc(100vh - 12rem);
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1.25rem 0.15rem;
  color: #9ca3af;
  font-size: 0.75rem;
}
.chat-typing.hidden {
  display: none;
}
.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.chat-typing-dots i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #818cf8;
  animation: chatTypingDot 1s ease-in-out infinite;
}
.chat-typing-dots i:nth-child(2) { animation-delay: .15s; }
.chat-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatTypingDot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.ad-chat-at {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.04);
  color: #c7d2fe;
  font-size: 0.95rem;
}
.ad-chat-at:hover {
  background: rgba(99,102,241,0.22);
  border-color: rgba(129,140,248,0.4);
  color: #fff;
}

.chat-mention-picker {
  position: absolute;
  left: 0;
  right: 3.2rem;
  bottom: calc(100% + 0.55rem);
  z-index: 20;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  background: rgba(11,18,32,0.98);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}

.chat-mention-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #e5e7eb;
  text-align: left;
}
.chat-mention-option:hover {
  background: rgba(99,102,241,0.2);
}
.chat-mention-empty {
  padding: 0.85rem 0.7rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

.chat-mention-chip,
.chat-mention-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(129,140,248,0.28);
  border-radius: 0.9rem;
  background: rgba(30,41,82,0.45);
  color: inherit;
  text-align: left;
}
.chat-mention-card {
  margin-bottom: 0.55rem;
  cursor: pointer;
}
.chat-mention-card:hover {
  border-color: rgba(165,180,252,0.55);
  background: rgba(49,46,129,0.45);
}
.chat-mention-card.is-missing {
  opacity: 0.7;
  cursor: default;
  border-color: rgba(255,255,255,0.08);
  background: rgba(17,24,39,0.6);
}
.chat-mention-kicker,
.chat-mention-date,
.chat-mention-excerpt,
.chat-mention-cta {
  display: block;
}
.chat-mention-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
  font-weight: 700;
}
.chat-mention-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
}
.chat-mention-date,
.chat-mention-excerpt {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.1rem;
}
.chat-mention-cta {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: #93c5fd;
  font-weight: 600;
}
.chat-mention-clear {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  flex-shrink: 0;
}
.chat-mention-thumb {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.7rem;
  background: #111827;
}
.chat-mention-thumb--sm {
  width: 2.4rem;
  height: 2.4rem;
}
.chat-mention-thumb img,
.chat-mention-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-mention-thumb i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  background: rgba(0,0,0,.25);
}
.chat-mention-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  background: rgba(99,102,241,0.18);
}
.chat-mention-thumb--empty i {
  position: static;
  background: none;
  font-size: 0.9rem;
}

[data-changelog-entry].is-mentioned {
  border-color: rgba(129,140,248,0.55);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.16);
}

.presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 2px solid #030712;
  background: #6b7280;
}
.presence-dot--sm {
  width: 0.55rem;
  height: 0.55rem;
  border-width: 2px;
}
.presence-dot--online { background: #22c55e; }
.presence-dot--away { background: #eab308; }
.presence-dot--busy { background: #ef4444; }
.presence-dot--offline { background: #6b7280; }

.presence-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 0.6rem;
  color: #d1d5db;
  font-size: 0.8rem;
}
.presence-option:hover,
.presence-option.is-active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.changelog-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.changelog-progress-track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.changelog-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  transition: width 0.18s ease;
}

.changelog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111827;
  cursor: pointer;
}

.changelog-thumb img,
.changelog-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.changelog-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.25rem;
  pointer-events: none;
}

.changelog-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
}

.changelog-viewer.hidden {
  display: none !important;
}

.changelog-viewer-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(59,130,246,.16), transparent 32%),
    radial-gradient(circle at bottom, rgba(139,92,246,.12), transparent 28%),
    rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.changelog-viewer-close,
.changelog-viewer-nav {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(17,24,39,0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.changelog-viewer-close:hover,
.changelog-viewer-nav:hover {
  background: rgba(31,41,55,0.95);
  border-color: rgba(99,102,241,0.45);
}

.changelog-viewer-close { top: 1rem; right: 1rem; }
.changelog-viewer-nav--prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.changelog-viewer-nav--next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.changelog-viewer-nav.hidden { display: none !important; }

.changelog-viewer-stage {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.changelog-viewer-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem;
  background: rgba(11, 18, 32, 0.88);
}

.changelog-viewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.changelog-viewer-badge--image {
  color: #93c5fd;
  background: rgba(59,130,246,.16);
  border: 1px solid rgba(59,130,246,.28);
}

.changelog-viewer-badge--video {
  color: #ddd6fe;
  background: rgba(139,92,246,.18);
  border: 1px solid rgba(139,92,246,.32);
}

.changelog-viewer-title {
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.changelog-viewer-date {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.changelog-viewer-counter {
  flex-shrink: 0;
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.changelog-viewer-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(62vh, 520px);
  max-height: calc(100vh - 12.5rem);
  overflow: hidden;
  border-radius: 1.35rem;
  background: #030712;
}

.changelog-viewer-frame--image {
  border: 1px solid rgba(59,130,246,0.22);
  box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.16), transparent 36%),
    linear-gradient(180deg, #0b1220, #030712);
}

.changelog-viewer-frame--video {
  border: 1px solid rgba(139,92,246,0.28);
  box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  background:
    radial-gradient(circle at 80% 0%, rgba(139,92,246,.18), transparent 34%),
    linear-gradient(180deg, #12081f, #030712);
}

.changelog-viewer-frame img,
.changelog-viewer-frame video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 12.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.ad-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(62vh, 560px);
  max-height: calc(100vh - 12.5rem);
  overflow: hidden;
  background: #000;
}

.ad-player.hidden {
  display: none !important;
}

.ad-player video {
  width: 100% !important;
  height: calc(100% - 4.35rem) !important;
  max-height: none !important;
  object-fit: contain;
  background: #000;
}

.ad-player-bigplay {
  position: absolute;
  top: calc(50% - 2.2rem);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.6rem;
  height: 4.6rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(139,92,246,.95));
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  z-index: 3;
}

.ad-player.is-playing .ad-player-bigplay {
  display: none;
}

.ad-player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0.55rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(3,7,18,.92) 28%);
}

.ad-player-seek input,
.ad-player-audio input {
  width: 100%;
  accent-color: #818cf8;
  cursor: pointer;
}

.ad-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.ad-player-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ad-player-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.ad-player-btn:hover {
  background: rgba(99,102,241,0.28);
  border-color: rgba(129,140,248,0.45);
}

.ad-player-time {
  color: #d1d5db;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  margin-left: 0.35rem;
}

.ad-player-audio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ad-player-audio input {
  width: 5.2rem;
}

.ad-player-menuwrap {
  position: relative;
}

.ad-player-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  min-width: 8.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.8rem;
  background: rgba(11,18,32,0.96);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.ad-player-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.78rem;
}

.ad-player-menu button.is-active,
.ad-player-menu button:hover {
  background: rgba(99,102,241,0.22);
  color: #fff;
}

.ad-player:-webkit-full-screen,
.ad-player:fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
}

.ad-player:fullscreen video,
.ad-player:-webkit-full-screen video {
  height: calc(100% - 4.35rem) !important;
}

@media (max-width: 767px) {
  .ad-player-audio input { width: 3.6rem; }
  .ad-player-time { display: none; }
}

.changelog-viewer-film {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.35rem;
}

.changelog-viewer-film:empty,
.changelog-viewer-film.hidden {
  display: none;
}

.changelog-viewer-dot {
  position: relative;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 3rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.7rem;
  background: #111827;
  opacity: .62;
}

.changelog-viewer-dot.is-active {
  opacity: 1;
  border-color: rgba(99,102,241,0.7);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}

.changelog-viewer-dot img,
.changelog-viewer-dot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.changelog-viewer-dot i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,.28);
  font-size: .7rem;
}

@media (max-width: 767px) {
  .changelog-viewer { padding: 4.25rem 0.75rem 1rem; }
  .changelog-viewer-nav { width: 2.35rem; height: 2.35rem; }
  .changelog-viewer-nav--prev { left: 0.35rem; }
  .changelog-viewer-nav--next { right: 0.35rem; }
  .changelog-viewer-meta { padding: 0.7rem 0.8rem; }
  .changelog-viewer-frame,
  .changelog-viewer-frame img,
  .changelog-viewer-frame video { max-height: calc(100vh - 16rem); }
}

.project-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s ease;
}
.project-card:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* =====================================================
   STAT CARD
   ===================================================== */
.stat-card {
  transition: all 0.2s ease;
}
.stat-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* =====================================================
   SERVICE CARD ENHANCEMENTS
   ===================================================== */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card { position: relative; }
.service-card:hover::before { opacity: 1; }

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid transparent;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  max-width: 360px;
  animation: toastIn 0.3s ease forwards;
  font-size: 0.8rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.toast.toast-success { border-color: rgba(34, 197, 94, 0.2); }
.toast.toast-error   { border-color: rgba(239, 68, 68, 0.2); }
.toast.toast-info    { border-color: rgba(59, 130, 246, 0.2); }
.toast.toast-warning { border-color: rgba(234, 179, 8, 0.2); }
.toast-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.toast-message { color: #e5e7eb; flex: 1; }
.toast-title { font-weight: 600; color: #f9fafb; margin-bottom: 0.1rem; }
.toast-close {
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.toast-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* =====================================================
   MODAL
   ===================================================== */
#newProjectModal .glass-card {
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.animate-fade-up  { animation: fadeUp  0.6s ease forwards; }
.animate-fade-in  { animation: fadeIn  0.4s ease forwards; }
.animate-float    { animation: float   6s ease-in-out infinite; }

/* =====================================================
   RESPONSIVE HELPERS
   ===================================================== */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }

  .stat-card { padding: 1rem; }
  
  .btn-primary, .btn-ghost {
    width: 100%;
  }
}

/* =====================================================
   SCROLLBAR IN MODALS / LISTS
   ===================================================== */
.overflow-y-auto::-webkit-scrollbar { width: 4px; }
.overflow-y-auto::-webkit-scrollbar-track { background: transparent; }
.overflow-y-auto::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* =====================================================
   ADMIN SPECIFIC
   ===================================================== */
.admin-shell {
  min-height: 100vh;
  background: #030712;
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-brand .site-logo {
  height: 2.25rem !important;
  max-height: 2.25rem !important;
  max-width: 11rem !important;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.admin-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .85rem;
  border-radius: .75rem;
  text-align: left;
}

.admin-nav-item i {
  width: 1rem;
  text-align: center;
  font-size: .85rem;
}

.admin-nav-item.active-tab {
  background: rgba(99, 102, 241, 0.18);
  box-shadow: inset 3px 0 0 #6366f1;
}

.admin-sidebar-footer {
  margin-top: auto;
}

.admin-main {
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 28rem),
    radial-gradient(circle at bottom left, rgba(124,58,237,.08), transparent 24rem),
    #030712;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 4.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-main-content {
  padding: 1.5rem;
}

.admin-content {
  min-height: calc(100vh - 7.5rem);
  padding: 0 !important;
}

.admin-icon-action {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(17,24,39,.55);
  color: #9ca3af;
  font-size: .85rem;
  transition: all .2s ease;
}

.admin-icon-action:hover {
  background: rgba(31,41,55,.72);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

.notif-badge {
  line-height: 1;
  pointer-events: none;
}

.admin-table-row {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255,255,255,0.04);
  gap: 1rem;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.admin-table-row:hover {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(255,255,255,0.08);
}

/* =====================================================
   PORTFOLIO CARD
   ===================================================== */
.portfolio-carousel-viewport {
  overflow: hidden;
}

.portfolio-carousel-track {
  display: flex;
  transition: transform .45s ease;
}

.portfolio-carousel-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portfolio-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #93c5fd;
  font-size: .82rem;
  font-weight: 650;
}

.portfolio-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,24,39,.55);
  color: #9ca3af;
  transition: all .2s ease;
}
.portfolio-arrow:hover {
  color: #fff;
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.12);
}

.portfolio-item-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.06);
  background: #0b1220;
  min-height: 16rem;
}
.portfolio-item-hero img,
.portfolio-item-hero video {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
}
.portfolio-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  color: #9ca3af;
  font-size: .85rem;
}
.portfolio-item-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.portfolio-item-gallery button {
  position: relative;
  overflow: hidden;
  border-radius: .9rem;
  border: 1px solid rgba(255,255,255,.06);
  background: #111827;
  min-height: 8rem;
}
.portfolio-item-gallery img,
.portfolio-item-gallery video {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .portfolio-carousel-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-item-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .portfolio-carousel-page { grid-template-columns: 1fr; }
  .portfolio-item-gallery { grid-template-columns: 1fr; }
  .portfolio-item-hero img,
  .portfolio-item-hero video { height: 14rem; }
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* =====================================================
   TESTIMONIAL
   ===================================================== */
.testimonial-card {
  transition: all 0.25s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.testimonial-carousel-card {
  min-height: 18rem;
  height: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(17,24,39,.5);
  display: flex;
  flex-direction: column;
}

.testimonial-card-top {
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.testimonial-card-message {
  flex: 1 1 auto;
  color: #d1d5db;
  font-size: .9rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonial-card-person {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-arrow,
.testimonial-dot {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,24,39,.55);
  color: #9ca3af;
  transition: all .2s ease;
}

.testimonial-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
}

.testimonial-arrow:hover {
  color: #fff;
  border-color: rgba(234,179,8,.3);
  background: rgba(234,179,8,.1);
}

.testimonial-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 9999px;
  padding: 0;
}

.testimonial-dot.is-active {
  width: 1.5rem;
  background: #facc15;
  border-color: #facc15;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   DASH CONTENT — mobile tab visibility
   ===================================================== */
.dash-content { min-height: calc(100vh - 4rem); }

@media (max-width: 1023px) {
  .admin-shell {
    display: block;
    padding-bottom: 4.5rem;
  }

  .admin-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    height: auto;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: .5rem;
    display: block;
  }

  .admin-brand,
  .admin-sidebar-footer {
    display: none;
  }

  .admin-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .25rem;
  }

  .admin-nav-item {
    justify-content: center;
    padding: .65rem .35rem;
    gap: 0;
    border-radius: .65rem;
  }

  .admin-nav-item span {
    display: none;
  }

  .admin-nav-item.active-tab {
    box-shadow: none;
  }

  .admin-main-content {
    padding: 1rem;
  }
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   PROJECT DETAIL TABS
   ===================================================== */
.proj-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  border-radius: 0.5rem 0.5rem 0 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.proj-tab:hover { color: #d1d5db; }
.proj-tab.active-ptab {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
  font-weight: 600;
}

/* =====================================================
   PRICING CARD
   ===================================================== */
.pricing-card {
  transition: all 0.3s ease;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-item button:hover {
  background: rgba(255,255,255,0.02);
}

/* =====================================================
   CHAT MESSAGES — line clamp
   ===================================================== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   NOTIFICATION DOT PULSE
   ===================================================== */
#notifBadge {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.5s ease;
}

/* =====================================================
   FORM GROUPS
   ===================================================== */
.form-group { position: relative; }
.form-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #4b5563;
  font-size: 0.8rem;
  pointer-events: none;
}
.form-group .input-field { padding-left: 2.5rem; }

/* =====================================================
   LINK UNDERLINE STYLE
   ===================================================== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 9999px;
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }
