/* ==============================================================================
   Super-Intelligence-Solutions (SIS) — Component Specifications
   Strict adherence to Section 10 specs
   ============================================================================== */

/* ------------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-spring),
              background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

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

.btn-sm {
  padding: 8px 16px;
  height: 32px;
  font-size: var(--fs-body-sm);
  min-height: 32px;
}

.btn-md {
  padding: 12px 24px;
  height: 44px;
  font-size: var(--fs-body-md);
  min-height: 44px;
}

.btn-lg {
  padding: 16px 32px;
  height: 52px;
  font-size: var(--fs-body-lg);
  min-height: 52px;
}

/* Primary Button */
.btn-primary {
  background: var(--cyan);
  color: var(--bg-void);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--cyan-dim);
  box-shadow: var(--glow-cyan-sm);
  color: var(--bg-void);
}

.btn-primary:focus-visible {
  box-shadow: var(--glow-cyan-md);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  border-color: var(--border-default);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
  color: var(--white);
  box-shadow: var(--glow-cyan-sm);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--gray-400);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Danger Button */
.btn-danger {
  background: var(--coral);
  color: var(--white);
}

.btn-danger:hover {
  box-shadow: var(--glow-coral);
}

/* Button Loading State */
.btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-void);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.btn-secondary.is-loading::after, .btn-ghost.is-loading::after {
  border-color: rgba(255,255,255,0.2);
  border-top-color: var(--cyan);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------------------
   Form Inputs
   ------------------------------------------------------------------------------ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-md);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-accent-strong);
  box-shadow: var(--glow-cyan-sm);
}

.form-input.has-error {
  border-color: var(--coral);
  box-shadow: var(--glow-coral);
}

.form-helper {
  font-size: var(--fs-body-sm);
  color: var(--gray-500);
}

.form-error {
  font-size: var(--fs-body-sm);
  color: var(--coral);
}

/* ------------------------------------------------------------------------------
   Cards & Panels
   ------------------------------------------------------------------------------ */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: transform var(--duration-base) var(--ease-spring),
              background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  background: var(--panel-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--glow-cyan-sm);
}

/* Pillar Card */
.card-pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}

.card-pillar .pillar-num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-lg);
  color: var(--cyan);
}

.card-pillar h3 {
  font-size: var(--fs-h3);
}

.card-pillar .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
}

/* Metric Card */
.card-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-left: 2px solid var(--cyan);
}

.card-metric .metric-val {
  font-family: var(--font-display);
  font-size: var(--fs-display-1);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.card-metric .metric-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-md);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-metric .metric-sub {
  font-size: var(--fs-body-sm);
  color: var(--gray-400);
}

/* Concept 2 Holographic Console Panel */
.panel-hologram {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.panel-hologram::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.08) 50%, transparent 100%);
  animation: scanLine 3000ms linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { transform: translateY(0%); }
  100% { transform: translateY(200%); }
}

/* ------------------------------------------------------------------------------
   Tags & Badges
   ------------------------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-md);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hairline);
  color: var(--gray-400);
}

.tag-cyan {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--cyan);
}

.tag-green {
  background: rgba(0, 255, 156, 0.1);
  border-color: rgba(0, 255, 156, 0.3);
  color: var(--green);
}

/* Live Status Dot */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(0, 255, 156, 0.08);
  border: 1px solid rgba(0, 255, 156, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseGreen 2000ms infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ------------------------------------------------------------------------------
   Navigation Bar
   ------------------------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
  transition: height var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}

.site-nav.is-scrolled {
  height: 56px;
  background: rgba(5, 6, 10, 0.95);
  border-bottom-color: var(--border-default);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover, .nav-link.is-active {
  color: var(--white);
}

.nav-cta-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-nav {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .nav-menu-btn {
    display: block;
  }
}

/* ------------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------------ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-hairline);
  padding: var(--space-20) 0 var(--space-12) 0;
  position: relative;
  margin-top: var(--space-40);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--grid-gutter);
  margin-bottom: var(--space-16);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: var(--space-12) 0 var(--space-8) 0;
  }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-md);
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--gray-400);
  font-size: var(--fs-body-sm);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--gray-500);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------------------
   Toast Notifications
   ------------------------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  max-width: 360px;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow-cyan-sm);
  font-size: var(--fs-body-sm);
  color: var(--white);
  animation: slideInRight var(--duration-moderate) var(--ease-out);
}

@keyframes slideInRight {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ------------------------------------------------------------------------------
   Modal Dialog
   ------------------------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out), visibility var(--duration-base);
}

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

.modal-panel {
  width: 100%;
  max-width: 560px;
  background: var(--bg-panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--glow-cyan-md);
  transform: scale(0.96);
  transition: transform var(--duration-moderate) var(--ease-out);
}

.modal-overlay.is-active .modal-panel {
  transform: scale(1);
}

/* ------------------------------------------------------------------------------
   Tooltips
   ------------------------------------------------------------------------------ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-md);
  color: var(--white);
  white-space: nowrap;
  max-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease 300ms, visibility 150ms ease 300ms;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------------------------------------------
   Progress & Skeleton Loading
   ------------------------------------------------------------------------------ */
.skeleton {
  background: var(--bg-panel);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1500ms in-out infinite;
}

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

.progress-bar-track {
  width: 100%;
  height: 2px;
  background: var(--bg-panel);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan-sm);
  transition: width var(--duration-base) var(--ease-out);
}

/* ==============================================================================
   Super Intelligence Solutions (SIS) — Owner-Only RBAC Visibility Controls
   Strictly hides Herbal Harbour & X-Tracker unless body has .sis-owner-active
   ============================================================================== */
.owner-only-tool,
[data-owner-only="true"],
a[href*="/xtracker/"],
a[href*="/herbalharbour/"],
button[aria-controls="pane-xtracker"],
#pane-xtracker {
  display: none !important;
}

body.sis-owner-active .owner-only-tool,
body.sis-owner-active [data-owner-only="true"],
body.sis-owner-active a[href*="/xtracker/"],
body.sis-owner-active a[href*="/herbalharbour/"],
body.sis-owner-active button[aria-controls="pane-xtracker"] {
  display: inline-flex !important;
}

body.sis-owner-active #pane-xtracker.active {
  display: block !important;
}

/* ==============================================================================
   Corporate Intranet & Employee Visibility Controls
   Strictly hides Intranet navigation links unless body has .sis-employee-active
   ============================================================================== */
.employee-only,
[data-employee-only="true"],
a[href*="/intranet"] {
  display: none !important;
}

body.sis-employee-active .employee-only,
body.sis-employee-active [data-employee-only="true"],
body.sis-employee-active a[href*="/intranet"] {
  display: inline-flex !important;
}

/* ==============================================================================
   Hugging Face-Style User Account Nav Pill & Profile Dropdown
   ============================================================================== */
.hf-account-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1000;
}

.hf-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 3px 12px 3px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: var(--font-body);
  text-decoration: none;
  color: var(--white);
  height: 34px;
  box-sizing: border-box;
}

.hf-account-pill:hover,
.hf-account-pill.is-active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.hf-avatar-circle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #ff9d00, #ff5c5c, #00f0ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hf-account-handle {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hf-tier-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.hf-tier-badge.tier-operator {
  background: rgba(255, 176, 0, 0.15);
  color: #ffb000;
  border-color: rgba(255, 176, 0, 0.4);
}

.hf-tier-badge.tier-pro {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.hf-tier-badge.tier-community {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  border-color: rgba(255, 255, 255, 0.15);
}

/* HF Dropdown Menu */
.hf-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.08);
  padding: 6px;
  z-index: 10001;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(20px);
  animation: hfDropdownFade 0.15s ease-out forwards;
}

@keyframes hfDropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hf-dropdown-menu.is-open {
  display: flex;
}

.hf-dropdown-header {
  padding: 10px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.hf-dropdown-user-title {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.hf-dropdown-user-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-dropdown-user-email {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
  font-family: var(--font-body);
}

.hf-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.hf-dropdown-item.danger-item:hover {
  background: rgba(255, 92, 92, 0.12);
  color: #ff5c5c;
}

.hf-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ==============================================================================
   Hugging Face Profile Banner & Hub Navigation System
   ============================================================================== */
.hf-profile-wrapper {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hf-profile-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  pointer-events: none;
}

.hf-profile-banner {
  padding: 48px 0 24px;
  position: relative;
  z-index: 2;
}

.hf-profile-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.hf-profile-avatar-lg {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  border: 3px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  object-fit: cover;
  background: linear-gradient(135deg, #ff9d00, #ff5c5c, #00f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}

.hf-profile-info {
  flex: 1;
  min-width: 280px;
}

.hf-profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hf-profile-fullname {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hf-profile-handle {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.hf-profile-bio {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 14px;
  max-width: 720px;
}

.hf-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hf-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.hf-meta-pill a {
  color: var(--cyan);
  text-decoration: none;
}

/* HF Tab Strip */
.hf-tabs-container {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
  padding-top: 2px;
}

.hf-tabs-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hf-tabs-nav::-webkit-scrollbar {
  display: none;
}

.hf-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.hf-tab-btn:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.hf-tab-btn.is-active {
  color: var(--cyan);
  font-weight: 600;
  border-bottom-color: var(--cyan);
}

.hf-tab-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  padding: 1px 6px;
  border-radius: 9999px;
}

.hf-tab-btn.is-active .hf-tab-counter {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

/* Hugging Face Hub Card Grid */
.hf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.hf-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.hf-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

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

.hf-card-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hf-card-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.hf-card-desc {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-500);
}

.hf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
}

.hf-status-pill.status-active {
  background: rgba(0, 255, 156, 0.12);
  color: #00ff9c;
  border: 1px solid rgba(0, 255, 156, 0.3);
}

.hf-status-pill.status-zerogpu {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.hf-status-pill.status-private {
  background: rgba(255, 176, 0, 0.12);
  color: #ffb000;
  border: 1px solid rgba(255, 176, 0, 0.3);
}

/* Quota & ZeroGPU Meters */
.hf-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.hf-metric-box {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}

.hf-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-metric-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.hf-metric-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

.hf-meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 10px;
}

.hf-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #7c5cff);
  border-radius: 9999px;
}

/* ==============================================================================
   Awwwards-Level Modern Developer Portfolio & Lab Showcase
   ============================================================================== */
.portfolio-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.2s ease;
}

.portfolio-badge:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
  transform: translateY(-1px);
}

.portfolio-badge.github-badge {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-badge.hf-badge {
  border-color: rgba(255, 176, 0, 0.3);
  color: #ffb000;
  background: rgba(255, 176, 0, 0.06);
}

.portfolio-badge.status-badge {
  border-color: rgba(0, 255, 156, 0.3);
  color: #00ff9c;
  background: rgba(0, 255, 156, 0.06);
}

/* Floating WhatsApp Widget */
.sis-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 10px 18px 10px 14px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sis-whatsapp-fab:hover {
  background: #20bd5a;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.sis-whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sis-whatsapp-ping {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #00f0ff;
  border-radius: 50%;
  border: 2px solid #080b11;
  animation: pulsePing 2s infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Slick Domain Mail Dispatch Modal */
.domain-mail-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.domain-mail-modal.is-open {
  display: flex;
}

.domain-mail-card {
  background: #0c111a;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.1);
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.domain-mail-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.domain-mail-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-mail-body {
  padding: 24px;
}

.domain-mail-close {
  background: transparent;
  border: none;
  color: var(--gray-400);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.domain-mail-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
