/* ==========================================================================
   Hibr Design System & Core Styles
   Extracted & unified from Hibr Group (hibr.site) design language
   ========================================================================== */

/* --- Local Font Faces --- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSansArabic-400-arabic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSansArabic-500-arabic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSansArabic-600-arabic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSansArabic-700-arabic.woff2') format('woff2');
}

/* --- Root CSS Variables --- */
:root {
  --color-ink-950: #060b14;
  --color-ink-900: #0b0f19;
  --color-ink-800: #10182a;
  --color-ink-700: #16203a;
  --color-ink-600: #1e2b4d;

  --color-navy-950: #05172e;
  --color-navy-900: #072041;
  --color-navy-800: #082a55;
  --color-navy-700: #0a3165;
  --color-navy-600: #0e3975;
  --color-navy-500: #002a70;

  --color-brand-600: #0049d6;
  --color-brand-500: #0058fc;
  --color-brand-400: #2e7bff;
  --color-brand-300: #6ba5ff;
  --color-brand-200: #a9ccff;

  --color-surface-50: #f8fafc;
  --color-surface-100: #eef2f7;
  --color-surface-200: #d8e0ea;
  --color-surface-300: #b9c4d4;

  --font-display: 'Space Grotesk', 'IBM Plex Sans Arabic', sans-serif;
  --font-sans: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;

  color-scheme: light;
  --bg: var(--color-surface-50);
  --fg: var(--color-ink-900);
  --shadow-glow: 0 0 0 rgba(0, 0, 0, 0);
}

.dark {
  color-scheme: dark;
  --bg: var(--color-ink-900);
  --fg: var(--color-surface-50);
  --shadow-glow: 0 0 0 rgba(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  transition: background-color 0.5s ease, color 0.5s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.hibr-page::before,
body.hibr-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.hibr-page::before {
  background:
    radial-gradient(ellipse 62% 50% at 50% 38%, rgba(0, 88, 252, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 30% at 78% 72%, rgba(0, 42, 112, 0.5), transparent 70%);
  opacity: 1;
}

body.hibr-page::after {
  background-image:
    linear-gradient(to right, rgba(14, 57, 117, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 57, 117, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 72% at 50% 12%, black 8%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 12%, black 8%, transparent 82%);
  opacity: 0.6;
}

.dark body.hibr-page::after {
  opacity: 0.4;
}

/* The landing hero owns the reference background layers; avoid doubling them. */
body.hibr-portal::before,
body.hibr-portal::after {
  opacity: 0;
}

body.hibr-portal section#top::before {
  display: none;
}

body.hibr-portal .hibr-hero {
  isolation: isolate;
}

body.hibr-portal .hibr-hero-badge {
  position: relative;
  border-color: rgba(0, 88, 252, 0.3) !important;
  background: rgba(0, 88, 252, 0.05) !important;
  box-shadow: 0 0 34px rgba(0, 88, 252, 0.08);
}

body.hibr-portal .hibr-hero-badge::before,
body.hibr-portal .hibr-hero-badge::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 88, 252, 0.85), transparent);
  box-shadow: 0 0 10px rgba(0, 88, 252, 0.65);
  pointer-events: none;
}

body.hibr-portal .hibr-hero-badge::before { top: -1px; }
body.hibr-portal .hibr-hero-badge::after { bottom: -1px; }

body.hibr-portal .hibr-hero a[class~="bg-brand-500"],
body.hibr-portal .hibr-hero a[class~="border-current/20"] {
  border-radius: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

body.hibr-portal .hibr-hero a[class~="bg-brand-500"] {
  box-shadow: 0 8px 40px rgba(0, 88, 252, 0.4);
}

body.hibr-portal .hibr-hero a[class~="bg-brand-500"]:hover,
body.hibr-portal .hibr-hero a[class~="border-current/20"]:hover {
  transform: scale(1.03);
}

body.hibr-portal #services article h3,
body.hibr-portal #services article .hibr-service-icon {
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, box-shadow 0.5s ease;
}

body.hibr-portal #services article .hibr-service-icon {
  background: transparent !important;
  box-shadow: none !important;
}

body.hibr-portal #services article:hover .hibr-service-icon {
  background: var(--color-brand-500) !important;
  color: #fff !important;
  box-shadow: 0 0 36px rgba(0, 88, 252, 0.5) !important;
  transform: scale(1.1);
}

body.hibr-portal #services article:hover h3 {
  color: var(--color-brand-400);
  transform: scale(1.04);
}

body.hibr-portal #services article a[href*="/store/"] {
  transform: translateZ(0);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 88, 252, 0.38);
  background: rgba(0, 88, 252, 0.08);
  padding: 0.7rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 31, 94, 0.16);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), gap 0.3s ease;
}

body.hibr-portal #services article a[href*="/store/"]:hover {
  transform: translateY(-4px) scale(1.035);
  border-color: rgba(74, 142, 255, 0.9);
  background: linear-gradient(135deg, rgba(0, 88, 252, 0.95), rgba(0, 53, 160, 0.92));
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 88, 252, 0.38), 0 0 24px rgba(0, 88, 252, 0.22);
}

body.hibr-portal header nav a.is-active {
  color: var(--color-brand-400) !important;
  opacity: 1;
  text-shadow: 0 0 16px rgba(0, 88, 252, 0.45);
}

body.hibr-portal header nav a.is-active > span:last-child {
  transform: scaleX(1) !important;
  box-shadow: 0 0 14px rgba(0, 88, 252, 0.95);
}

body.hibr-portal #mobile-menu a.is-active {
  color: var(--color-brand-400) !important;
  text-shadow: 0 0 20px rgba(0, 88, 252, 0.5);
  transform: translateX(4px);
}

.hibr-company-link {
  position: relative;
  display: inline-flex;
  color: var(--color-brand-400) !important;
  text-shadow: 0 0 22px rgba(0, 88, 252, 0.22);
  transition: color 0.35s ease, text-shadow 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hibr-company-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: #54e58b;
  box-shadow: 0 0 14px rgba(84, 229, 139, 0.8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hibr-company-link:hover,
.hibr-company-link:focus-visible {
  color: #72aaff !important;
  text-shadow: 0 0 14px rgba(0, 88, 252, 0.85), 0 0 36px rgba(0, 88, 252, 0.45);
  transform: translateY(-3px) scale(1.03);
}

.hibr-company-link:hover::after,
.hibr-company-link:focus-visible::after {
  transform: scaleX(1);
}

body.hibr-portal #infrastructure .hibr-infra-copy h2,
body.hibr-portal #infrastructure .hibr-infra-copy p,
body.hibr-portal #infrastructure .hibr-infra-copy > div:first-child span:last-child,
body.hibr-portal #infrastructure .hibr-infra-copy > div:last-child > span {
  transform-origin: start center;
  transition: color 0.35s ease, opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.35s ease;
}

body.hibr-portal #infrastructure .hibr-infra-copy h2:hover,
body.hibr-portal #infrastructure .hibr-infra-copy p:hover,
body.hibr-portal #infrastructure .hibr-infra-copy > div:first-child span:last-child:hover,
body.hibr-portal #infrastructure .hibr-infra-copy > div:last-child > span:hover {
  color: var(--color-brand-400);
  opacity: 1;
  transform: scale(1.025);
  text-shadow: 0 0 22px rgba(0, 88, 252, 0.22);
}

body.hibr-portal #infrastructure .hibr-infra-chip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  transition: color 0.45s ease, opacity 0.45s ease, border-color 0.45s ease,
    background-color 0.45s ease, box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hibr-portal #infrastructure .hibr-infra-chip::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(0, 88, 252, 0.2) 48%, rgba(84, 229, 139, 0.18) 54%, transparent 80%);
  transform: translateX(-115%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hibr-portal #infrastructure .hibr-infra-chip > span {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

body.hibr-portal #infrastructure .hibr-infra-chip:hover {
  color: #8bb8ff;
  opacity: 1;
  border-color: rgba(0, 88, 252, 0.62);
  background-color: rgba(0, 88, 252, 0.1);
  transform: translate3d(0, -5px, 0) scale(1.035);
  box-shadow: 0 12px 30px rgba(0, 45, 140, 0.24), 0 0 22px rgba(0, 88, 252, 0.16);
}

body.hibr-portal #infrastructure .hibr-infra-chip:hover::before {
  transform: translateX(115%);
}

body.hibr-portal #infrastructure .hibr-infra-chip:hover > span {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(0, 88, 252, 0.85);
}

body.hibr-portal #features > div > ul > li {
  transition: background-color 0.55s ease, border-color 0.55s ease,
    box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hibr-portal #features > div > ul > li h3,
body.hibr-portal #features > div > ul > li p {
  transform-origin: start center;
  transition: color 0.45s ease, opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 0.45s ease;
}

body.hibr-portal #features > div > ul > li:hover {
  border-color: rgba(0, 88, 252, 0.48);
  background: linear-gradient(135deg, rgba(0, 88, 252, 0.08), rgba(0, 25, 72, 0.2));
  box-shadow: 0 20px 55px rgba(0, 35, 110, 0.28), 0 0 30px rgba(0, 88, 252, 0.12);
  transform: translateY(-7px) scale(1.025);
}

body.hibr-portal #features > div > ul > li:hover h3 {
  color: var(--color-brand-400);
  transform: scale(1.08);
  text-shadow: 0 0 20px rgba(0, 88, 252, 0.24);
}

body.hibr-portal #features > div > ul > li:hover p {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  transform: scale(1.035);
}

body.hibr-portal .hibr-payment-card {
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  transition: background-color 0.55s ease, border-color 0.55s ease,
    box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hibr-portal .hibr-payment-card > i,
body.hibr-portal .hibr-payment-card > span:not(.hibr-payment-note) {
  position: relative;
  z-index: 1;
  transform: translateZ(28px);
  transition: color 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}

body.hibr-portal .hibr-payment-card:hover {
  border-color: rgba(0, 88, 252, 0.65);
  background: linear-gradient(145deg, rgba(0, 88, 252, 0.16), rgba(5, 14, 32, 0.78));
  box-shadow: 0 24px 60px rgba(0, 38, 120, 0.34), 0 0 30px rgba(0, 88, 252, 0.2);
}

body.hibr-portal .hibr-payment-card:hover > i {
  transform: translateZ(48px) scale(1.22) rotate(-8deg);
  text-shadow: 0 0 24px currentColor;
}

body.hibr-portal .hibr-payment-card:hover > span:not(.hibr-payment-note) {
  color: #fff;
  transform: translateZ(42px) scale(1.08);
}

body.hibr-portal .hibr-payment-note {
  z-index: 2;
  transform: translateY(8px) translateZ(32px);
}

body.hibr-portal .hibr-payment-card:hover .hibr-payment-note,
body.hibr-portal .hibr-payment-card:focus-within .hibr-payment-note {
  opacity: 0.82;
  transform: translateY(0) translateZ(32px);
}

@media (hover: none) {
  body.hibr-portal .hibr-payment-note {
    opacity: 0.72;
    transform: translateY(0) translateZ(20px);
  }
}

body.hibr-portal .hibr-ownership-card {
  transform-style: preserve-3d;
  will-change: transform;
  border-color: rgba(0, 88, 252, 0.28);
  background: linear-gradient(135deg, rgba(8, 18, 38, 0.88), rgba(3, 9, 22, 0.7));
  box-shadow: 0 24px 80px rgba(0, 20, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.hibr-portal .hibr-ownership-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(91, 153, 255, 0.18), transparent 30%, transparent 70%, rgba(84, 229, 139, 0.1));
  opacity: 0.45;
  transition: opacity 0.7s ease;
}

body.hibr-portal .hibr-ownership-card:hover {
  border-color: rgba(0, 88, 252, 0.62);
  box-shadow: 0 34px 100px rgba(0, 40, 130, 0.38), 0 0 48px rgba(0, 88, 252, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.hibr-portal .hibr-ownership-card:hover::after {
  opacity: 0.9;
}

body.hibr-portal .hibr-ownership-card > .hibr-spotlight {
  z-index: 0;
  transition: opacity 0.7s ease;
}

body.hibr-portal .hibr-ownership-card > .relative {
  transform: translateZ(28px);
}

.hibr-payment-red { color: #ff5a68; }
.hibr-payment-blue { color: #6ba5ff; }
.hibr-payment-cyan { color: #59e1ff; }
.hibr-payment-orange { color: #ffab5c; }
.hibr-payment-pink { color: #ff70c8; }
.hibr-payment-sky { color: #8bc7ff; }

/* Hibr.site header treatment: fixed, almost transparent, blurred and borderless. */
body.hibr-portal > header.glass {
  position: fixed !important;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 14, 0.82) !important;
  border-bottom-color: rgba(148, 163, 184, 0.06) !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

body.hibr-client .hibr-client-navbar {
  background: rgba(3, 7, 14, 0.82) !important;
  border-bottom-color: rgba(148, 163, 184, 0.06) !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

html:not(.dark) body.hibr-client .hibr-client-navbar {
  background: rgba(241, 245, 249, 0.84) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

body.hibr-client > .relative.z-10 > main {
  padding-top: 4.35rem !important;
}

html:not(.dark) body.hibr-portal > header.glass {
  background: rgba(241, 245, 249, 0.82) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

body.hibr-page > *:not(.fixed) {
  position: relative;
  z-index: 1;
}

body.hibr-page > #hibr-loader {
  z-index: 999999;
}

body.hibr-page section {
  position: relative;
  isolation: isolate;
}

/* Keep fixed-header anchor targets visible instead of placing them underneath it. */
body.hibr-portal section[id] {
  scroll-margin-top: 4rem;
}

body.hibr-auth-page > main {
  flex: none !important;
  min-height: 0 !important;
  align-items: flex-start !important;
  padding-top: 5rem !important;
}

body.hibr-auth-page {
  display: block !important;
  min-height: 100vh;
  overflow-anchor: none;
}

body.hibr-auth-page > header {
  position: fixed !important;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 14, 0.82) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

@media (max-width: 1023px) {
  body.hibr-portal section[id] {
    scroll-margin-top: 4rem;
  }
}

body.hibr-page section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8rem;
  inset-inline-end: -8rem;
  width: 28rem;
  height: 28rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0, 88, 252, 0.2), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  animation: hibr-orb-drift 7s ease-in-out infinite;
}

body.hibr-page section:nth-of-type(even)::before {
  top: auto;
  bottom: -10rem;
  inset-inline-end: auto;
  inset-inline-start: -10rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(0, 42, 112, 0.45), transparent 68%);
  animation-duration: 9s;
  animation-delay: 1.2s;
}

body.hibr-page header:not(.main-navbar) {
  animation: hibr-header-in 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.hibr-page header.glass,
body.hibr-page header:not(.main-navbar) {
  background: rgba(6, 11, 20, 0.34) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

html:not(.dark) body.hibr-page header.glass,
html:not(.dark) body.hibr-page header:not(.main-navbar) {
  background: rgba(248, 250, 252, 0.56) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

body.hibr-page > .relative.z-10 > main {
  padding-top: 8rem !important;
}

#hibr-loader .hibr-loader-footer {
  position: fixed !important;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 2.5rem;
}

#hibr-loader .animate-spin-slow {
  animation-duration: 8s !important;
}

.hibr-loader-progress {
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: hibr-loader-progress-in 1.05s 0.25s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes hibr-loader-progress-in {
  to { transform: scaleX(1); }
}

body.hibr-page [class~="border-white/10"],
body.hibr-page [class~="border-white/20"],
body.hibr-page [class~="border-current/20"] {
  border-color: rgba(148, 163, 184, 0.1) !important;
}

body.hibr-page a[class~="bg-brand-500"],
body.hibr-page button[class~="bg-brand-500"] {
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 88, 252, 0.4);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

body.hibr-page a[class~="bg-brand-500"]:hover,
body.hibr-page button[class~="bg-brand-500"]:hover {
  transform: scale(1.03);
  background-color: var(--color-brand-400) !important;
  box-shadow: 0 10px 50px rgba(0, 88, 252, 0.45);
}

body.hibr-page a[class~="bg-brand-500"]:active,
body.hibr-page button[class~="bg-brand-500"]:active {
  transform: scale(0.98);
}

.hibr-feature-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(6, 11, 20, 0.16);
  padding: 1.25rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hibr-feature-strip-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  white-space: nowrap;
  animation: hibr-marquee 28s linear infinite;
}

.hibr-feature-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  color: currentColor;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.45;
}

.hibr-feature-strip-item::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-brand-500);
  box-shadow: 0 0 10px rgba(0, 88, 252, 0.8);
}

@keyframes hibr-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hibr-feature-strip-track { animation: none; }
}

body.hibr-page footer:not(.main-footer) {
  border-top-color: rgba(148, 163, 184, 0.1) !important;
  background:
    radial-gradient(ellipse 55% 100% at 50% 0%, rgba(0, 88, 252, 0.1), transparent 70%),
    rgba(6, 11, 20, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.hibr-page footer a {
  transition: color 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
}

body.hibr-page footer a:hover {
  color: var(--color-brand-500) !important;
}

@keyframes hibr-header-in {
  from { opacity: 0; transform: translateY(-80px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hibr-orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate3d(-26px, 22px, 0) scale(1.22); opacity: 1; }
}

.hibr-route-loader {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 999998;
  height: 2px;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hibr-route-loader.is-active { opacity: 1; }

.hibr-route-loader::after {
  content: "";
  display: block;
  width: 33.333%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-600), var(--color-brand-400), var(--color-brand-500));
  box-shadow: 0 0 12px rgba(0, 88, 252, 0.8);
  animation: hibr-route-progress 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hibr-route-progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(900%); }
}

[dir="rtl"] body,
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: var(--font-arabic) !important;
}

[dir="rtl"] .font-display,
html[lang="ar"] .font-display,
html[dir="rtl"] .font-display {
  font-family: var(--font-arabic) !important;
}

::selection {
  background: var(--color-brand-500);
  color: #ffffff;
}

:focus-visible {
  outline: 1px solid rgba(0, 88, 252, 0.72);
  outline-offset: 2px;
  border-radius: 4px;
}

/* WemX focus rings are oversized and read as bright white strokes in dark mode. */
body.hibr-page button:focus,
body.hibr-page a:focus,
body.hibr-page input:focus,
body.hibr-page select:focus,
body.hibr-page textarea:focus {
  outline: none;
}

body.hibr-page button:focus-visible,
body.hibr-page a:focus-visible,
body.hibr-page input:focus-visible,
body.hibr-page select:focus-visible,
body.hibr-page textarea:focus-visible {
  outline: 1px solid rgba(0, 88, 252, 0.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 88, 252, 0.12) !important;
}

body.hibr-page button[class*="ring-"],
body.hibr-page a[class*="ring-"] {
  --tw-ring-shadow: 0 0 rgba(0, 0, 0, 0) !important;
}

body.hibr-page .hibr-control-button {
  border-color: rgba(148, 163, 184, 0.14) !important;
  box-shadow: none !important;
}
body.hibr-page .hibr-control-button:hover {
  border-color: rgba(0, 88, 252, 0.58) !important;
  box-shadow: 0 0 18px rgba(0, 88, 252, 0.14) !important;
}
html:not(.dark) body.hibr-page .hibr-control-button {
  border-color: rgba(15, 23, 42, 0.14) !important;
}

/* Restore readable contrast for the client dashboard in light mode. */
html:not(.dark) body.hibr-client .hibr-panel {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #172033;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

html:not(.dark) body.hibr-client [class~="text-surface-50"],
html:not(.dark) body.hibr-client [class~="text-surface-100"],
html:not(.dark) body.hibr-client [class~="text-surface-200"],
html:not(.dark) body.hibr-client [class~="text-surface-300"] {
  color: #172033 !important;
}

html:not(.dark) body.hibr-client [class*="text-surface-200/"],
html:not(.dark) body.hibr-client [class*="text-surface-300/"] {
  color: rgba(51, 65, 85, 0.82) !important;
}

html:not(.dark) body.hibr-client .text-gray-900,
html:not(.dark) body.hibr-client .text-gray-800,
html:not(.dark) body.hibr-client .text-gray-700 {
  color: #172033 !important;
}

html:not(.dark) body.hibr-client .text-gray-600,
html:not(.dark) body.hibr-client .text-gray-500,
html:not(.dark) body.hibr-client .text-gray-400 {
  color: #475569 !important;
}

html:not(.dark) body.hibr-client [class~="border-white/10"],
html:not(.dark) body.hibr-client [class~="border-white/20"] {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html:not(.dark) body.hibr-client [class*="bg-white/[0.03]"],
html:not(.dark) body.hibr-client [class*="bg-white/[0.04]"],
html:not(.dark) body.hibr-client [class*="bg-white/[0.05]"] {
  background: rgba(15, 23, 42, 0.035) !important;
}

/* Invoice filters and table use one rounded Hibr surface instead of legacy square blocks. */
body.hibr-client .hibr-invoices-section {
  background: transparent !important;
  box-shadow: none !important;
}
body.hibr-client .hibr-invoices-shell {
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 1.35rem !important;
  background: rgba(7, 15, 28, 0.42) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14) !important;
}
body.hibr-client .hibr-invoices-toolbar {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.035) !important;
}
body.hibr-client .hibr-invoice-filter {
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: rgba(226, 232, 240, 0.78) !important;
  box-shadow: none !important;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
body.hibr-client .hibr-invoice-filter:hover {
  border-color: rgba(0, 88, 252, 0.48) !important;
  background: rgba(0, 88, 252, 0.08) !important;
  color: var(--color-brand-400) !important;
  transform: translateY(-1px);
}
body.hibr-client .hibr-invoice-filter.bg-primary-600 {
  border-color: rgba(0, 88, 252, 0.72) !important;
  background: rgba(0, 88, 252, 0.82) !important;
  color: #fff !important;
}
body.hibr-client .hibr-invoices-table thead {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
body.hibr-client .hibr-invoices-table tbody tr {
  border-color: rgba(148, 163, 184, 0.09) !important;
  background: transparent !important;
}
html:not(.dark) body.hibr-client .hibr-invoices-shell {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}
html:not(.dark) body.hibr-client .hibr-invoices-toolbar {
  background: rgba(248, 250, 252, 0.78) !important;
}
html:not(.dark) body.hibr-client .hibr-invoice-filter {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(15, 23, 42, 0.035) !important;
  color: #334155 !important;
}
html:not(.dark) body.hibr-client .hibr-invoices-table tbody tr {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Shared footer fallback for the Bootstrap-based admin shell. */
.hibr-shared-footer {
  background: linear-gradient(to bottom, transparent, rgba(6, 11, 20, 0.92));
  color: rgba(248, 250, 252, 0.92);
}
.hibr-footer-shade {
  background: linear-gradient(to bottom, transparent 0%, rgba(6, 11, 20, 0.7) 100%);
}
.hibr-footer-inner {
  width: 100%;
  box-sizing: border-box;
}
.hibr-footer-inner > .grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
.hibr-footer-inner > .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 5rem;
  padding-top: 2rem;
}
.hibr-shared-footer ul { margin-top: 1.25rem; }
.hibr-shared-footer li { margin-bottom: 0.75rem; }
.hibr-shared-footer nav ul {
  padding-left: 0;
  list-style: none;
}
.hibr-shared-footer a {
  color: inherit;
  text-decoration: none;
}
@media (min-width: 640px) {
  .hibr-footer-inner > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .hibr-footer-inner > .flex { flex-direction: column; text-align: center; }
}
@media (min-width: 1024px) {
  .hibr-footer-inner > .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* --- Scrollbars --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 11, 20, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 88, 252, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 88, 252, 0.7);
}

/* --- Utility Classes matching hibr.site --- */
.text-gradient {
  background: linear-gradient(
    120deg,
    var(--color-brand-500),
    var(--color-brand-300) 45%,
    var(--color-navy-500) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark .text-gradient {
  background: linear-gradient(
    120deg,
    var(--color-brand-400),
    var(--color-brand-200) 45%,
    #ffffff 95%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.dark .glass {
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.grid-blueprint {
  background-image:
    linear-gradient(to right, rgba(14, 57, 117, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 57, 117, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
}

.mask-fade-y {
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.mask-fade-radial {
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}

/* --- Card Glow & 3D Interactive --- */
.hibr-card {
  position: relative;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 23, 46, 0.42);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.dark .hibr-card {
  background: rgba(5, 23, 46, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
}

html:not(.dark) .hibr-card {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.hibr-card:hover {
  border-color: rgba(0, 88, 252, 0.4);
  box-shadow: 0 30px 90px rgba(0, 88, 252, 0.18);
}

.hibr-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hibr-shell::before,
.hibr-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hibr-shell::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 88, 252, 0.16), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(14, 57, 117, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(0, 88, 252, 0.08), transparent 28%);
  opacity: 0.9;
}

.hibr-shell::after {
  background-image:
    linear-gradient(to right, rgba(14, 57, 117, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 57, 117, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
  opacity: 0.55;
}

.hibr-soft-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .hibr-soft-card {
  background: rgba(15, 23, 42, 0.35);
}

.hibr-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 72% 44% at 50% 0%, rgba(0, 88, 252, 0.11), transparent 60%),
    radial-gradient(ellipse 28% 22% at 18% 15%, rgba(14, 57, 117, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
}

.dark .hibr-page {
  background:
    radial-gradient(ellipse 72% 44% at 50% 0%, rgba(0, 88, 252, 0.2), transparent 60%),
    radial-gradient(ellipse 28% 22% at 18% 15%, rgba(0, 88, 252, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 25, 1) 0%, rgba(6, 11, 20, 1) 100%);
}

.hibr-panel {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.dark .hibr-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 28, 0.58);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.hibr-panel:hover {
  border-color: rgba(0, 88, 252, 0.36);
  box-shadow: 0 30px 90px rgba(0, 88, 252, 0.16);
}

.hibr-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 88, 252, 0.5), transparent);
}

.hibr-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(0, 88, 252, 0.95);
}

.hibr-label {
  display: inline-flex;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.dark .hibr-label {
  color: rgba(226, 232, 240, 0.72);
}

.hibr-orb {
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0, 88, 252, 0.26), rgba(0, 88, 252, 0.02) 60%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hibr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 88, 252, 0.18);
  background: rgba(0, 88, 252, 0.08);
  color: var(--color-brand-400);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.hibr-button-primary,
.hibr-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.hibr-button-primary {
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
  color: #fff;
  box-shadow: 0 8px 40px rgba(0, 88, 252, 0.4);
}

.hibr-button-primary:hover {
  transform: scale(1.03);
  background: var(--color-brand-400);
  box-shadow: 0 10px 50px rgba(0, 88, 252, 0.45);
}

.hibr-button-primary:active,
.hibr-button-secondary:active {
  transform: scale(0.98);
}

.hibr-button-secondary {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}

.dark .hibr-button-secondary {
  background: rgba(15, 23, 42, 0.22);
}

.hibr-button-secondary:hover {
  transform: scale(1.03);
  border-color: var(--color-brand-500);
  color: var(--color-brand-500);
}

.hibr-input,
.hibr-select,
.hibr-textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: var(--fg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.dark .hibr-input,
.dark .hibr-select,
.dark .hibr-textarea {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(148, 163, 184, 0.14);
}

.hibr-input:focus,
.hibr-select:focus,
.hibr-textarea:focus {
  border-color: rgba(0, 88, 252, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 88, 252, 0.15);
  outline: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Keyframe Animations --- */
@keyframes float-slow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.animate-float-slow {
  animation: float-slow 9s ease-in-out infinite;
}

.animate-float-slower {
  animation: float-slow 14s ease-in-out infinite reverse;
}

.animate-pulse-soft {
  animation: pulse-soft 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 22s linear infinite;
}

.animate-spin-slow-reverse {
  animation: spin-reverse 22s linear infinite;
}

/* --- Loader Styles --- */
#hibr-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060b14;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}

#hibr-loader::after {
  display: none;
}

#hibr-loader.loaded {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.hibr-loader-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 3rem;
}

.hibr-loader-mark span {
  display: block;
  width: 0.7rem;
  height: 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #a9ccff, #0058fc);
  box-shadow: 0 0 24px rgba(0, 88, 252, 0.7);
  animation: hibr-loader-pulse 0.95s ease-in-out infinite alternate;
}

.hibr-loader-mark span:nth-child(2) { height: 2.25rem; animation-delay: 0.16s; }
.hibr-loader-mark span:nth-child(3) { height: 1.75rem; animation-delay: 0.32s; }

@keyframes hibr-loader-pulse {
  from { transform: translateY(0); opacity: 0.48; }
  to { transform: translateY(-0.45rem); opacity: 1; }
}

.hibr-loader-pixel {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 3px;
  background: var(--color-brand-500);
  box-shadow: 0 0 28px rgba(0, 88, 252, 0.8);
  animation-duration: 1.15s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

.hibr-loader-pixel:nth-child(1) { left: 50% !important; top: 50% !important; width: 22px; height: 22px; animation-name: hibr-loader-pixel-one; animation-delay: 0s; }
.hibr-loader-pixel:nth-child(2) { left: 50% !important; top: 50% !important; width: 16px; height: 16px; box-shadow: 0 0 28px rgba(0, 88, 252, 0.8); animation-name: hibr-loader-pixel-two; animation-delay: 0.18s; opacity: 0.92; }
.hibr-loader-pixel:nth-child(3) { left: 50% !important; top: 50% !important; width: 12px; height: 12px; box-shadow: 0 0 28px rgba(0, 88, 252, 0.8); animation-name: hibr-loader-pixel-three; animation-delay: 0.34s; opacity: 0.85; }

.hibr-loader-wordmark {
  display: flex;
  gap: 0.28em;
  color: var(--color-surface-50);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 0;
  transform: translateY(110%);
  animation: hibr-loader-wordmark-in 0.75s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hibr-loader-wordmark span {
  opacity: 0;
  filter: blur(8px);
  animation: hibr-loader-letter-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hibr-loader-wordmark span:nth-child(1) { animation-delay: 0.45s; }
.hibr-loader-wordmark span:nth-child(2) { animation-delay: 0.51s; }
.hibr-loader-wordmark span:nth-child(3) { animation-delay: 0.57s; }
.hibr-loader-wordmark span:nth-child(4) { animation-delay: 0.63s; }

.hibr-loader-subtitle {
  opacity: 0;
  transform: translateY(12px);
  animation: hibr-loader-subtitle-in 0.55s 0.7s ease-out both;
}

.hibr-loader-footer > * {
  opacity: 0;
  animation: hibr-loader-footer-in 0.45s 0.3s ease-out both;
}

.hibr-loader-footer > span { animation-delay: 0.45s; }

@keyframes hibr-loader-wordmark-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hibr-loader-letter-in {
  to { opacity: 1; filter: blur(0); }
}

@keyframes hibr-loader-subtitle-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hibr-loader-footer-in {
  to { opacity: 1; }
}

@keyframes hibr-loader-pixel-one {
  0% { opacity: 0; filter: blur(14px); transform: translate(-120px, 18px) scale(0.2); }
  55% { opacity: 1; filter: blur(0); transform: translate(-18px, -8px) scale(1); }
  100% { opacity: 1; filter: blur(0); transform: translate(0, -20px) scale(1); }
}

@keyframes hibr-loader-pixel-two {
  0% { opacity: 0; filter: blur(14px); transform: translate(118px, -34px) scale(0.2); }
  55% { opacity: 1; filter: blur(0); transform: translate(4px, -8px) scale(1); }
  100% { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1); }
}

@keyframes hibr-loader-pixel-three {
  0% { opacity: 0; filter: blur(14px); transform: translate(8px, 44px) scale(0.2); }
  55% { opacity: 1; filter: blur(0); transform: translate(26px, -8px) scale(1); }
  100% { opacity: 1; filter: blur(0); transform: translate(0, 20px) scale(1); }
}

/* --- Reveal on Scroll --- */
.hibr-reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--hibr-reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.hibr-reveal.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.hibr-panel.hibr-tilt-card,
.hibr-card.hibr-tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.hibr-stagger > * {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 24px, 0) scale(0.99);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hibr-stagger.is-revealed > * {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hibr-stagger.is-revealed > *:nth-child(1) { transition-delay: 0s; }
.hibr-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.07s; }
.hibr-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.14s; }
.hibr-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.21s; }
.hibr-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.28s; }
.hibr-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.35s; }

/* --- Shared shell overrides for legacy Bootstrap/Stisla views --- */
body.hibr-page #app,
body.hibr-page .main-wrapper,
body.hibr-page .section {
  background: transparent;
}

body.hibr-page .main-wrapper {
  min-height: 100vh;
}

body.hibr-page .navbar-bg,
body.hibr-page .primary-bg {
  background: linear-gradient(135deg, rgba(5, 23, 46, 0.98), rgba(0, 88, 252, 0.78)) !important;
}

body.hibr-page .main-navbar {
  min-height: 74px;
  background: rgba(6, 11, 20, 0.7) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

body.hibr-page .main-navbar .nav-link,
body.hibr-page .main-navbar .nav-link:hover,
body.hibr-page .main-navbar .nav-link:focus {
  color: rgba(248, 250, 252, 0.86) !important;
}

body.hibr-page .main-sidebar {
  background: rgba(5, 23, 46, 0.9) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

body.hibr-page .sidebar-brand,
body.hibr-page .sidebar-brand-sm {
  height: 74px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.hibr-page .sidebar-brand a,
body.hibr-page .sidebar-brand-sm a {
  color: #fff !important;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.hibr-page .sidebar-menu .menu-header {
  color: rgba(169, 204, 255, 0.62) !important;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
}

body.hibr-page .sidebar-menu li a {
  color: rgba(226, 232, 240, 0.72) !important;
  border-radius: 0.85rem;
  margin: 0.18rem 0.7rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.hibr-page .sidebar-menu li a:hover,
body.hibr-page .sidebar-menu li.active > a,
body.hibr-page .sidebar-menu li a.active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(0, 88, 252, 0.28), rgba(0, 88, 252, 0.08)) !important;
  transform: translateX(2px);
}

body.hibr-page .main-content {
  padding-top: 112px;
  padding-bottom: 3rem;
}

body.hibr-page .card,
body.hibr-page .modal-content,
body.hibr-page .dropdown-menu,
body.hibr-page .table-responsive,
body.hibr-page .section-body > .row > [class*="col-"] > .card {
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-radius: 1.25rem !important;
  background: rgba(7, 15, 28, 0.78) !important;
  color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

body.hibr-page .card-header,
body.hibr-page .card-footer,
body.hibr-page .modal-header,
body.hibr-page .modal-footer {
  border-color: rgba(148, 163, 184, 0.08) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

body.hibr-page .card-title,
body.hibr-page .card-header h4,
body.hibr-page .card-header h5,
body.hibr-page .section-header h1,
body.hibr-page .section-header h2,
body.hibr-page .section-header h3,
body.hibr-page .section-header h4 {
  color: #f8fafc !important;
  font-family: var(--font-display);
}

body.hibr-page .form-control,
body.hibr-page .custom-select,
body.hibr-page select,
body.hibr-page textarea,
body.hibr-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.hs-field__input):not(.otp-slot__input) {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 0.85rem !important;
  background: rgba(15, 23, 42, 0.56) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

body.hibr-page .form-control:focus,
body.hibr-page .custom-select:focus,
body.hibr-page select:focus,
body.hibr-page textarea:focus,
body.hibr-page input:focus {
  border-color: rgba(0, 88, 252, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(0, 88, 252, 0.15) !important;
}

body.hibr-page .table {
  color: rgba(226, 232, 240, 0.82);
}

body.hibr-page .table thead th,
body.hibr-page .table th {
  border-color: rgba(148, 163, 184, 0.12) !important;
  color: rgba(169, 204, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.hibr-page .table td {
  border-color: rgba(148, 163, 184, 0.1) !important;
}

body.hibr-page .btn,
body.hibr-page .btn-primary,
body.hibr-page .btn-success,
body.hibr-page .btn-info,
body.hibr-page .btn-warning,
body.hibr-page .btn-danger {
  border: 0 !important;
  border-radius: 0.5rem !important;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

body.hibr-page .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

body.hibr-page .btn-primary,
body.hibr-page .btn-success,
body.hibr-page .btn-info {
  background: linear-gradient(135deg, #0058fc, #0049d6) !important;
  box-shadow: 0 14px 32px rgba(0, 88, 252, 0.24);
}

body.hibr-page .btn-secondary,
body.hibr-page .btn-light {
  color: #e2e8f0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

body.hibr-page .alert {
  border: 1px solid rgba(0, 88, 252, 0.24);
  border-radius: 1rem;
  background: rgba(0, 88, 252, 0.12);
  color: rgba(248, 250, 252, 0.86);
}

body.hibr-page .main-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(ellipse 55% 100% at 50% 0%, rgba(0, 88, 252, 0.1), transparent 70%),
    rgba(6, 11, 20, 0.46);
  color: rgba(226, 232, 240, 0.64);
}

/* Normalize older client templates that still use Tailwind's neutral utilities. */
body.hibr-page .bg-white,
body.hibr-page .bg-gray-50,
body.hibr-page .bg-gray-100,
body.hibr-page .bg-gray-200 {
  background: rgba(7, 15, 28, 0.74) !important;
}

body.hibr-page .text-gray-900,
body.hibr-page .text-gray-800,
body.hibr-page .text-gray-700 {
  color: rgba(248, 250, 252, 0.9) !important;
}

body.hibr-page .text-gray-600,
body.hibr-page .text-gray-500,
body.hibr-page .text-gray-400 {
  color: rgba(185, 196, 212, 0.76) !important;
}

body.hibr-page .border-gray-200,
body.hibr-page .border-gray-300,
body.hibr-page .border-gray-400 {
  border-color: rgba(148, 163, 184, 0.16) !important;
}

body.hibr-page .bg-blue-600,
body.hibr-page .bg-blue-700,
body.hibr-page .bg-indigo-600,
body.hibr-page .bg-indigo-700 {
  background: linear-gradient(135deg, #0058fc, #0049d6) !important;
}

body.hibr-page .hover\\:bg-blue-700:hover,
body.hibr-page .hover\\:bg-blue-800:hover,
body.hibr-page .hover\\:bg-indigo-700:hover {
  background: linear-gradient(135deg, #2e7bff, #0058fc) !important;
}

body.hibr-page .rounded-lg,
body.hibr-page .rounded-xl {
  border-radius: 0.95rem !important;
}

body.hibr-page .hibr-button-primary,
body.hibr-page .hibr-button-secondary {
  border-radius: 0.5rem !important;
}

body.hibr-page .shadow,
body.hibr-page .shadow-md,
body.hibr-page .shadow-lg,
body.hibr-page .shadow-xl {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

.hibr-news-page {
  padding-top: 1rem;
}

.hibr-news-card {
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.hibr-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 88, 252, 0.45);
  box-shadow: 0 22px 60px rgba(0, 88, 252, 0.16);
}

.hibr-news-card h1,
.hibr-news-card h2,
.hibr-news-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.hibr-news-card a:not(.hibr-button-primary):not(.hibr-button-secondary) {
  transition: color 0.25s ease, opacity 0.25s ease, text-decoration-color 0.25s ease;
}

.hibr-news-card a:not(.hibr-button-primary):not(.hibr-button-secondary):hover {
  color: var(--color-brand-400) !important;
}

@media (max-width: 991.98px) {
  body.hibr-page .main-content {
    padding-top: 96px;
  }

  body.hibr-page .main-sidebar {
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.32);
  }
}

/* Installer and standalone error pages use the same shell vocabulary. */
body.hibr-install {
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 88, 252, 0.2), transparent 65%),
    #060b14;
}

body.hibr-install .container,
body.hibr-install .container-fluid {
  max-width: 960px;
}

body.hibr-install .container > .sm\\:flex,
body.hibr-install .container > .p-6,
body.hibr-install .container > .p-4,
body.hibr-install .container form,
body.hibr-install .container .bg-white {
  border-color: rgba(148, 163, 184, 0.16) !important;
  border-radius: 1.25rem !important;
  background: rgba(7, 15, 28, 0.82) !important;
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

body.hibr-install input,
body.hibr-install select,
body.hibr-install textarea {
  border-radius: 0.85rem !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
}

/* --- Hibr Admin shell --------------------------------------------------- */
body.hibr-admin {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(0, 88, 252, 0.12), transparent 64%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
  color: #172033;
}

body.hibr-admin #app,
body.hibr-admin .main-wrapper {
  min-height: 100vh;
  background: transparent !important;
}

body.hibr-admin .navbar-bg {
  display: none !important;
}

body.hibr-admin .main-navbar {
  position: fixed !important;
  inset: 0 0 auto 280px;
  z-index: 1030;
  display: flex;
  height: 72px;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(248, 250, 252, 0.78) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

body.hibr-admin .main-navbar .navbar-nav,
body.hibr-admin .main-navbar .form-inline {
  align-items: center;
  margin: 0 !important;
}

body.hibr-admin .main-navbar .nav-link {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 0.75rem;
  color: #475569 !important;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

body.hibr-admin .main-navbar .nav-link:hover,
body.hibr-admin .main-navbar .nav-link:focus {
  color: #0058fc !important;
  background: rgba(0, 88, 252, 0.08) !important;
  transform: translateY(-1px);
}

body.hibr-admin .main-sidebar {
  position: fixed !important;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: 280px;
  min-height: 100vh;
  background: rgba(6, 11, 20, 0.96) !important;
  border: 0 !important;
  box-shadow: 20px 0 70px rgba(2, 6, 23, 0.18) !important;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

body.hibr-admin #sidebar-wrapper {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.85rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.26) transparent;
}

body.hibr-admin .sidebar-brand,
body.hibr-admin .sidebar-brand-sm {
  display: flex;
  height: 72px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body.hibr-admin .sidebar-brand a,
body.hibr-admin .sidebar-brand-sm a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  color: #f8fafc !important;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
}

body.hibr-admin .sidebar-brand img,
body.hibr-admin .sidebar-brand-sm img {
  width: 28px;
  height: 32px;
  object-fit: contain;
}

body.hibr-admin .sidebar-brand-sm {
  justify-content: center;
}

body.hibr-admin .sidebar-menu {
  margin: 1.1rem 0 0 !important;
  padding: 0 !important;
}

body.hibr-admin .sidebar-menu .menu-header {
  margin: 1.35rem 0 0.45rem;
  padding: 0 0.75rem;
  color: rgba(169, 204, 255, 0.58) !important;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.hibr-admin .sidebar-menu > li > a.nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  margin: 0.18rem 0;
  padding: 0.7rem 0.8rem !important;
  border-radius: 0.85rem;
  color: rgba(226, 232, 240, 0.72) !important;
  font-size: 0.84rem;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

body.hibr-admin .sidebar-menu > li > a.nav-link i {
  width: 1.1rem;
  color: rgba(169, 204, 255, 0.7);
  text-align: center;
  transition: color 0.25s ease;
}

body.hibr-admin .sidebar-menu > li > a.nav-link:hover,
body.hibr-admin .sidebar-menu > li.active > a.nav-link,
body.hibr-admin .sidebar-menu > li > a.nav-link.active,
body.hibr-admin .sidebar-menu > li > a.nav-link.active-nav {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(0, 88, 252, 0.3), rgba(0, 88, 252, 0.08)) !important;
  transform: translateX(3px);
}

body.hibr-admin .sidebar-menu > li > a.nav-link:hover i,
body.hibr-admin .sidebar-menu > li.active > a.nav-link i,
body.hibr-admin .sidebar-menu > li > a.nav-link.active i {
  color: #6ba5ff;
}

body.hibr-admin .sidebar-menu .dropdown-menu {
  position: static !important;
  display: none;
  width: auto;
  min-width: 0;
  margin: 0.25rem 0 0.4rem 1.75rem;
  padding: 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.7) !important;
  box-shadow: none !important;
}

body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu,
body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu.show {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-color: rgba(148, 163, 184, 0.1) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: rgba(226, 232, 240, 0.76) !important;
}

body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu a,
body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu .nav-link {
  display: flex;
  min-height: 36px;
  align-items: center;
  color: rgba(226, 232, 240, 0.72) !important;
  background: transparent !important;
}

body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu a:hover,
body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu a.active-nav,
body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu .nav-link:hover,
body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu .nav-link.active-nav {
  color: #fff !important;
  background: rgba(0, 88, 252, 0.2) !important;
}

body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu::before,
body.hibr-admin .main-sidebar .sidebar-menu .dropdown-menu::after {
  display: none !important;
}

body.hibr-admin .sidebar-menu .dropdown.show > .dropdown-menu,
body.hibr-admin .sidebar-menu .dropdown.active > .dropdown-menu {
  display: block;
}

body.hibr-admin .sidebar-menu .dropdown-menu .nav-link {
  min-height: 36px;
  padding: 0.55rem 0.7rem !important;
  border-radius: 0.65rem;
  color: rgba(226, 232, 240, 0.68) !important;
  font-size: 0.78rem;
}

body.hibr-admin .sidebar-menu .dropdown-menu .nav-link:hover,
body.hibr-admin .sidebar-menu .dropdown-menu .nav-link.active-nav {
  color: #fff !important;
  background: rgba(0, 88, 252, 0.18) !important;
}

body.hibr-admin .main-content {
  min-height: calc(100vh - 72px) !important;
  margin-left: 280px;
  padding: 104px 2rem 4rem !important;
  float: none !important;
}

body.hibr-admin .main-content > .alert {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

body.hibr-admin .main-content > .section,
body.hibr-admin .main-content > .section-body,
body.hibr-admin .main-content > .container,
body.hibr-admin .main-content > .container-fluid {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

body.hibr-admin .hibr-shared-footer {
  position: relative;
  clear: both;
  display: block;
  width: calc(100% - 280px);
  box-sizing: border-box;
  margin-left: 280px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(6, 11, 20, 0.86), #060b14) !important;
}

body.hibr-admin .hibr-shared-footer .hibr-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
}

body.hibr-admin .card,
body.hibr-admin .modal-content,
body.hibr-admin .dropdown-menu,
body.hibr-admin .table-responsive,
body.hibr-admin .table {
  border-color: rgba(148, 163, 184, 0.14) !important;
  border-radius: 1.15rem !important;
}

body.hibr-admin .card,
body.hibr-admin .modal-content,
body.hibr-admin .table-responsive {
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

body.hibr-admin .card-header,
body.hibr-admin .card-footer,
body.hibr-admin .modal-header,
body.hibr-admin .modal-footer {
  border-color: rgba(148, 163, 184, 0.12) !important;
  background: rgba(248, 250, 252, 0.48) !important;
}

body.hibr-admin .card-title,
body.hibr-admin .card-header h4,
body.hibr-admin .card-header h5,
body.hibr-admin .section-header h1,
body.hibr-admin .section-header h2,
body.hibr-admin .section-header h3,
body.hibr-admin .section-header h4 {
  color: #172033 !important;
}

body.hibr-admin .form-control,
body.hibr-admin .custom-select,
body.hibr-admin select,
body.hibr-admin textarea,
body.hibr-admin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  border-color: rgba(15, 23, 42, 0.14) !important;
  border-radius: 0.8rem !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #172033 !important;
  box-shadow: none !important;
}

body.hibr-admin .form-control:focus,
body.hibr-admin .custom-select:focus,
body.hibr-admin select:focus,
body.hibr-admin textarea:focus,
body.hibr-admin input:focus {
  border-color: rgba(0, 88, 252, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(0, 88, 252, 0.12) !important;
}

body.hibr-admin .table {
  overflow: hidden;
  color: #334155;
  background: transparent !important;
}

body.hibr-admin .table thead th {
  border-color: rgba(148, 163, 184, 0.12) !important;
  background: rgba(248, 250, 252, 0.68);
  color: #475569;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.hibr-admin .table td,
body.hibr-admin .table th {
  border-color: rgba(148, 163, 184, 0.1) !important;
  vertical-align: middle;
}

body.hibr-admin .btn {
  border-radius: 0.7rem !important;
  border: 0 !important;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.hibr-admin .btn:hover {
  transform: translateY(-1px);
}

body.hibr-admin .btn-primary,
body.hibr-admin .btn-success,
body.hibr-admin .btn-info {
  background: linear-gradient(135deg, #0058fc, #0049d6) !important;
  box-shadow: 0 10px 28px rgba(0, 88, 252, 0.22);
}

body.hibr-admin .alert {
  border-radius: 1rem;
  border-color: rgba(0, 88, 252, 0.22);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

html.dark body.hibr-admin {
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(0, 88, 252, 0.18), transparent 64%),
    linear-gradient(180deg, #0b0f19 0%, #060b14 100%);
  color: #e2e8f0;
}

html.dark body.hibr-admin .main-navbar {
  background: rgba(6, 11, 20, 0.82) !important;
  border-bottom-color: rgba(148, 163, 184, 0.08) !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28) !important;
}

html.dark body.hibr-admin .main-navbar .nav-link { color: rgba(226, 232, 240, 0.76) !important; }
html.dark body.hibr-admin .main-navbar .nav-link:hover { color: #6ba5ff !important; background: rgba(0, 88, 252, 0.14) !important; }
html.dark body.hibr-admin .card,
html.dark body.hibr-admin .modal-content,
html.dark body.hibr-admin .table-responsive {
  border-color: rgba(148, 163, 184, 0.12) !important;
  background: rgba(7, 15, 28, 0.78) !important;
  color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
}
html.dark body.hibr-admin .card-header,
html.dark body.hibr-admin .card-footer,
html.dark body.hibr-admin .modal-header,
html.dark body.hibr-admin .modal-footer { background: rgba(255, 255, 255, 0.025) !important; }
html.dark body.hibr-admin .card-title,
html.dark body.hibr-admin .card-header h4,
html.dark body.hibr-admin .card-header h5,
html.dark body.hibr-admin .section-header h1,
html.dark body.hibr-admin .section-header h2,
html.dark body.hibr-admin .section-header h3,
html.dark body.hibr-admin .section-header h4 { color: #f8fafc !important; }
html.dark body.hibr-admin .form-control,
html.dark body.hibr-admin .custom-select,
html.dark body.hibr-admin select,
html.dark body.hibr-admin textarea,
html.dark body.hibr-admin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(15, 23, 42, 0.56) !important;
  color: #f8fafc !important;
}
html.dark body.hibr-admin .table { color: rgba(226, 232, 240, 0.82); }
html.dark body.hibr-admin .table thead th { background: rgba(255, 255, 255, 0.035); color: rgba(169, 204, 255, 0.8); }

@media (max-width: 1024px) {
  body.hibr-admin .main-navbar { inset-inline: 0 0; }
  body.hibr-admin .main-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  body.hibr-admin.sidebar-show .main-sidebar,
  body.hibr-admin .sidebar-show .main-sidebar { transform: translateX(0); }
  body.hibr-admin .main-content { margin-left: 0; padding: 96px 1rem 3rem !important; }
  body.hibr-admin .hibr-shared-footer { width: 100%; margin-left: 0; }
  body.hibr-admin .hibr-shared-footer .hibr-footer-inner { padding: 4rem 1rem 2rem; }
}

[dir="rtl"] body.hibr-admin .main-navbar { inset: 0 280px 0 0; }
[dir="rtl"] body.hibr-admin .main-sidebar { inset: 0 0 0 auto; }
[dir="rtl"] body.hibr-admin .main-content { margin-right: 280px; margin-left: 0; }
[dir="rtl"] body.hibr-admin .hibr-shared-footer { width: calc(100% - 280px); margin-right: 280px; margin-left: 0; }
@media (max-width: 1024px) {
  [dir="rtl"] body.hibr-admin .main-navbar { inset-inline: 0 0; }
  [dir="rtl"] body.hibr-admin .main-sidebar { transform: translateX(100%); }
  [dir="rtl"] body.hibr-admin .main-content { margin-right: 0; }
  [dir="rtl"] body.hibr-admin .hibr-shared-footer { width: 100%; margin-right: 0; }
  [dir="rtl"] body.hibr-admin.sidebar-show .main-sidebar,
  [dir="rtl"] body.hibr-admin .sidebar-show .main-sidebar { transform: translateX(0); }
}

/* Prevent legacy Bootstrap widths from escaping the admin content column. */
body.hibr-admin .main-content,
body.hibr-admin .main-content > *,
body.hibr-admin .main-content .section,
body.hibr-admin .main-content .section-body,
body.hibr-admin .main-content .row,
body.hibr-admin .main-content [class*="col-"] {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

body.hibr-admin .main-content {
  width: calc(100% - 280px);
  overflow-x: hidden;
}

body.hibr-admin .main-content .row {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

body.hibr-admin .main-content [class*="col-"] {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

body.hibr-admin .card,
body.hibr-admin .modal-content,
body.hibr-admin .card-body,
body.hibr-admin .card-header,
body.hibr-admin .card-footer,
body.hibr-admin .section-body,
body.hibr-admin .section-header {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.hibr-admin .table-responsive,
body.hibr-admin .table-responsive > .table,
body.hibr-admin .dataTables_wrapper {
  max-width: 100%;
  min-width: 0;
}

body.hibr-admin .table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.hibr-admin .table {
  width: 100% !important;
  max-width: none;
}

body.hibr-admin img,
body.hibr-admin svg,
body.hibr-admin video,
body.hibr-admin canvas {
  max-width: 100%;
}

body.hibr-admin .btn,
body.hibr-admin button,
body.hibr-admin a.btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.hibr-admin .form-group,
body.hibr-admin .input-group,
body.hibr-admin .custom-control,
body.hibr-admin .d-flex {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  body.hibr-admin .main-content { width: 100%; }
}
