:root {
  --primary-color: #0F3B66;
  --secondary-color: #00AEEF;
  --accent-color: #FBB03B;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-dark: #1a1a1a;
  --text-light: #f8f9fa;
  --bg-body: #f4f7f6;
  --surface: #ffffff;
  --border-soft: rgba(0,0,0,0.06);
  --spacing-12: 12px;
  --spacing-24: 24px;
  --radius-16: 16px;
  --radius-20: 20px;
  --grad-2026: linear-gradient(135deg, var(--primary-color) 0%, #1a5c99 100%);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(0,174,239,0.10), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(15,59,102,0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 100%, rgba(251,176,59,0.10), transparent 55%),
    var(--bg-body);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: inherit;
}

/* Accessibility & Focus */
a:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.5);
  outline-offset: 3px;
}

.nav-link:focus-visible, a.text-decoration-none:focus-visible {
  text-decoration: underline;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-16);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card {
  border-radius: var(--radius-20);
}

.shadow-sm {
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08) !important;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

body:not(.theme-dark) .navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
}

.mega-dropdown {
  width: min(960px, 92vw);
  border-radius: 16px;
  overflow: hidden;
}

.navbar .dropdown-menu.mega-dropdown {
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  margin-top: .5rem;
}

.mega-content {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.mega-item {
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  opacity: 0;
  animation: megaStagger .35s ease forwards;
}

.mega-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: rgba(0, 174, 239, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.mega-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15,59,102,0.08);
}

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

@media (max-width: 991.98px) {
  .navbar .dropdown-menu.mega-dropdown {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .mega-dropdown { width: 100vw; border-radius: 0; }
  .mega-content { border-radius: 0; }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  padding: 0.75rem 0;
}

/* Navbar theme-aware */
body:not(.theme-dark) .navbar .nav-link,
body:not(.theme-dark) .navbar .navbar-brand,
body:not(.theme-dark) .navbar .brand-logo {
  color: #000 !important;
}
.theme-dark .navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}
.theme-dark .navbar .nav-link,
.theme-dark .navbar .navbar-brand,
.theme-dark .navbar .brand-logo,
.theme-dark .navbar .navbar-toggler {
  color: #fff !important;
}
.theme-dark .navbar .navbar-toggler-icon {
  filter: invert(1);
}
.theme-dark .dropdown-menu {
  background-color: rgba(18,24,38,0.98);
  border-color: var(--border-soft);
}
.theme-dark .dropdown-item { color: #e6e9ef; }
.theme-dark .dropdown-item:hover { background-color: rgba(255,255,255,0.08); }

.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4, .theme-dark h5, .theme-dark h6 {
  color: #e6e9ef;
}
.theme-dark .bg-light h1, .theme-dark .bg-light h2, .theme-dark .bg-light h3, .theme-dark .bg-light h4, .theme-dark .bg-light h5, .theme-dark .bg-light h6 {
  color: #111;
}

.theme-dark .mega-content {
  background: rgba(18,24,38,0.98);
  border-top: 1px solid var(--border-soft);
}
.theme-dark .mega-item {
  border-color: rgba(255,255,255,0.08);
  background: rgba(32,38,52,0.95);
}
.theme-dark .mega-item:hover {
  border-color: rgba(0, 174, 239, 0.45);
  background: rgba(36,44,60,0.98);
}
.theme-dark .mega-icon {
  background: rgba(255,255,255,0.08);
  color: #9ec9f2;
}

/* Social circular icons */
.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-color);
  border: 1px solid rgba(0,0,0,0.12);
  transition: all .25s ease;
}
.social-link svg {
  width: 18px;
  height: 18px;
}
.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15,59,102,0.25);
  border-color: transparent;
}
.theme-dark .social-link {
  background: #1f2638;
  color: #9ec9f2;
  border-color: rgba(255,255,255,0.15);
}
.theme-dark .social-link:hover {
  background: #2a3650;
  color: #fff;
  border-color: rgba(0, 174, 239, 0.45);
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.14);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.social-pill svg { opacity: .95; }
.social-pill span { font-weight: 700; font-size: .9rem; letter-spacing: .01em; }
.social-pill:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
}
.theme-dark .social-pill {
  border-color: rgba(255,255,255,0.18);
  background: rgba(18, 24, 38, 0.38);
}
.bg-light .social-pill {
  background: rgba(15,59,102,0.06);
  border-color: rgba(15,59,102,0.14);
  color: var(--primary-color);
}
.bg-light .social-pill:hover {
  background: rgba(15,59,102,0.10);
  border-color: rgba(15,59,102,0.20);
  color: var(--primary-color);
}

.navbar-brand img {
  height: 44px;
  margin-right: 0;
  object-fit: contain;
}

.site-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: currentColor;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0F3B66 0%, #002D52 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('assets/img/pattern.png'); /* Fallback or texture */
  opacity: 0.05;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Buttons */
.btn {
  border-radius: 999px;
}

.btn-primary {
  background: var(--grad-2026);
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(15, 59, 102, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a5c99 0%, var(--primary-color) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(15, 59, 102, 0.4);
}

.btn-outline-light {
  border-width: 2px;
  padding: 12px 28px;
  font-weight: 600;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary-color);
}

.btn-outline-primary {
  border-width: 2px;
}

/* Links */
a {
  color: var(--primary-color);
}
a:hover {
  color: #1a5c99;
}
.hover-scale:hover { transform: scale(1.02); }

/* Features & Sectors */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(15, 59, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.sector-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-soft);
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--surface);
  color: #666;
  border-top: 1px solid var(--border-soft);
}

footer h5, footer h6 {
  color: var(--primary-color);
}

footer a {
  color: #666;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--secondary-color);
}

/* Partners Section */
.partners-section {
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
    overflow: hidden;
    position: relative;
    padding: 60px 0;
}

.partners-scroller {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollLoop 40s linear infinite;
    padding: 20px 0;
    align-items: center;
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.partner-item:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.partner-icon img {
    height: 100px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Equipment Card Styles */
.equipment-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.equipment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-card:hover img {
    transform: scale(1.1);
}

.equipment-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.equipment-card:hover .overlay {
    transform: translateY(0);
}

/* Carousel Indicators Override */
.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.clickable-card:active {
    transform: scale(0.98);
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform-origin: center;
  animation: kenburns 12s ease-in-out infinite alternate;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay .title {
  font-weight: 700;
  letter-spacing: .2px;
}
.gallery-overlay .desc {
  font-size: .9rem;
  opacity: .9;
}
@keyframes kenburns {
  from { transform: scale(1) }
  to { transform: scale(1.08) }
}

/* Language select (arrow removed, theme aware) */
#languageSelect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}
.theme-dark .navbar .form-select,
.theme-dark #languageSelect {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
body:not(.theme-dark) .navbar .form-select,
body:not(.theme-dark) #languageSelect {
  background-color: transparent;
  color: #000;
  border-color: rgba(0,0,0,0.25);
}

/* Dashboard Specifics */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  min-height: 100vh;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-new { background-color: #e3f2fd; color: #1976d2; }
.status-pending { background-color: #fff3e0; color: #f57c00; }
.status-completed { background-color: #e8f5e9; color: #388e3c; }
.status-rejected { background-color: #ffebee; color: #d32f2f; }

/* Notification */
#formNotification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}

/* Modals & Forms */
.modal-content {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.6rem 0.9rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 174, 239, 0.25);
}

/* Responsive Hero */
@media (max-width: 576px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

/* Pricing Section */
.pricing-section {
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}

.pricing-header {
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

.toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e6eef7;
  transition: .3s;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.08);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(0, 174, 239, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.plan-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-20);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: rgba(0, 174, 239, 0.5);
}

.plan-head {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(15,59,102,0.06) 0%, rgba(0,174,239,0.06) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.plan-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-body {
  padding: 1.5rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
}

.price-period {
  color: #7b8a97;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary-color);
  flex-shrink: 0;
}

.btn-plan {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
}
.card-science {
  border-bottom: 3px solid var(--secondary-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  background: rgba(15,59,102,0.05);
  color: var(--primary-color);
}
.data-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}
.dropdown-menu {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.09) 37%, rgba(0,0,0,0.06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.lazy-img {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(6px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.lazy-img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* 2026 Theme Enhancements */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }
.parallax-bg { background-attachment: fixed; background-position: center; background-size: cover; }
@media (max-width: 991.98px) {
  .parallax-bg { background-attachment: scroll; }
}
.link-underline { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size .3s ease; }
.link-underline:hover { background-size: 100% 2px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.08); transition: transform .3s ease, box-shadow .3s ease; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.1); }
.theme-dark { --primary-color: #91c2ff; --secondary-color: #43c3ff; --accent-color: #ffc971; --glass-bg: rgba(18, 24, 38, 0.85); --glass-border: rgba(255, 255, 255, 0.08); --text-dark: #e6e9ef; --text-light: #f8f9fa; --bg-body: #0b1321; --surface: #0f1629; --border-soft: rgba(255,255,255,0.08); }
.theme-dark .navbar.scrolled { background: rgba(18,24,38,0.9) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.theme-dark footer { background: var(--surface); border-top: 1px solid var(--border-soft); }
.theme-dark footer a { color: #c9d4e2; }
.theme-dark .sector-card { background: var(--glass-bg); border-color: var(--border-soft); }
.theme-dark .modal-content { background: rgba(18,24,38,0.9); border-color: var(--border-soft); }
.theme-dark .form-control, .theme-dark .form-select { background-color: rgba(255,255,255,0.08); color: var(--text-light); border-color: rgba(255,255,255,0.25); }
.theme-dark .text-muted { color: #b8c2cf !important; }
.theme-dark .text-white-50 { color: rgba(255,255,255,0.72) !important; }
.theme-dark .navbar .form-select { background-color: rgba(255,255,255,0.12); color: var(--text-light); border-color: rgba(255,255,255,0.25); }

/* Theme-aware text for specific elements */
.theme-dark #userName,
.theme-dark #themeToggle { color: #fff !important; }
body:not(.theme-dark) #userName,
body:not(.theme-dark) #themeToggle { color: #000 !important; }

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.theme-toggle-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.16);
}
.theme-dark .theme-toggle-btn {
  background: rgba(18, 24, 38, 0.55);
  border-color: rgba(255,255,255,0.18);
}
.theme-dark .theme-toggle-btn:hover {
  background: rgba(18, 24, 38, 0.68);
  border-color: rgba(255,255,255,0.26);
}
