/* Modern Matrix Footer with glass morphism */
.matrix-footer {
  position: relative;
  margin-top: 120px;
  padding: 60px 0 0;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.4) 20%, var(--bg));
  overflow: hidden;
}

/* Floating orbs background */
.footer-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.3), transparent);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent);
  top: 50%; right: -150px;
  animation-delay: -7s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(236,72,153,0.2), transparent);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Main footer matrix layout */
.footer__matrix {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 30px 40px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.footer__matrix::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255,255,255,0.06), 
    transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.footer__matrix:hover::before {
  opacity: 1;
}

.fm-left { justify-self: start; }
.fm-center { justify-self: center; }
.fm-right { justify-self: end; }
/* Left mini pills with glass effect */
.mini-cards { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  flex-wrap: wrap; 
}

.mini-pill { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  height: 36px; 
  padding: 0 16px; 
  border-radius: 999px; 
  border: 1px solid rgba(255,255,255,0.1); 
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9); 
  font-size: 0.875rem; 
  font-weight: 500;
  cursor: default; 
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mini-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.mini-pill:hover::before {
  transform: translateX(100%);
}

.mini-pill:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.mini-pill.mini-top { 
  cursor: pointer; 
  text-decoration: none; 
}

.mini-pill[data-copy-btn] { 
  cursor: pointer; 
}

.mini-pill[data-copy-btn]:hover .mini-copy {
  opacity: 1;
  transform: translateX(0);
}

.mini-pill[data-copy-btn].is-copied {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.3);
}

.mini-pill[data-copy-btn].is-copied .mini-copy { 
  color: #4ade80; 
}

.mini-copy { 
  color: rgba(255,255,255,0.5); 
  font-size: 0.75rem;
  margin-left: 4px;
  opacity: 0.7;
  transform: translateX(-4px);
  transition: all 0.2s;
}

.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
/* Center social matrix with premium glass effect */
.social-matrix { 
  display: grid; 
  grid-auto-flow: column; 
  grid-auto-columns: minmax(0, auto); 
  gap: 12px; 
  padding: 8px; 
  border-radius: 16px; 
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); 
  backdrop-filter: blur(16px) saturate(180%); 
  box-shadow: 
    0 10px 32px rgba(0,0,0,0.3), 
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.social-matrix .sm-tile { 
  width: 44px; 
  height: 44px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 12px; 
  background: rgba(255,255,255,0.06); 
  border: 1px solid rgba(255,255,255,0.08); 
  color: #fff; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative;
  overflow: hidden;
}

.social-matrix .sm-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s;
}

.social-matrix .sm-tile::after { 
  content: ""; 
  position: absolute; 
  inset: -50%; 
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 40%); 
  opacity: 0; 
  transition: opacity 0.3s;
}

.social-matrix .sm-tile:hover { 
  transform: translateY(-4px) scale(1.05); 
  background: rgba(255,255,255,0.1); 
  border-color: rgba(255,255,255,0.2); 
  box-shadow: 
    0 12px 28px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.1);
}

.social-matrix .sm-tile:hover::before {
  opacity: 1;
  transform: scale(1.5);
}

.social-matrix .sm-tile:hover::after { 
  opacity: 1; 
}

.social-matrix .sm-tile svg { 
  width: 18px; 
  height: 18px; 
  display: block;
  z-index: 1;
  position: relative;
}
/* Brand accents with glow effects on hover */
.sm-ig:hover { 
  background: linear-gradient(135deg, rgba(240,70,150,0.2), rgba(255,140,90,0.2));
  box-shadow: 
    0 12px 28px rgba(240,70,150,0.3),
    inset 0 0 0 1px rgba(240,70,150,0.4);
}

.sm-x:hover { 
  background: rgba(255,255,255,0.15);
  box-shadow: 
    0 12px 28px rgba(255,255,255,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.3);
}

.sm-li:hover { 
  background: rgba(14,118,168,0.2);
  box-shadow: 
    0 12px 28px rgba(14,118,168,0.3),
    inset 0 0 0 1px rgba(14,118,168,0.4);
}

.sm-yt:hover { 
  background: rgba(255,60,60,0.2);
  box-shadow: 
    0 12px 28px rgba(255,60,60,0.3),
    inset 0 0 0 1px rgba(255,60,60,0.4);
}

.sm-be:hover { 
  background: rgba(58,139,255,0.2);
  box-shadow: 
    0 12px 28px rgba(58,139,255,0.3),
    inset 0 0 0 1px rgba(58,139,255,0.4);
}

.sm-as:hover { 
  background: rgba(0,200,180,0.2);
  box-shadow: 
    0 12px 28px rgba(0,200,180,0.3),
    inset 0 0 0 1px rgba(0,200,180,0.4);
}
/* Right mini status */
.mini-status { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(255,255,255,0.8); 
  font-size: 0.875rem;
  font-weight: 500;
}

/* Ticker at bottom */
.footer__bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.ticker {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  padding-right: 40px;
}

.ticker__track span {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive adjustments */
@media (max-width: 768px){
  .footer__matrix { 
    grid-template-columns: 1fr; 
    gap: 24px;
    padding: 20px;
  }
  .fm-left, .fm-center, .fm-right { 
    justify-self: center; 
  }
  .mini-cards {
    justify-content: center;
  }
  .mini-status { 
    order: 2; 
  }
}

/* --- Minimal footer --- */
.min-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  background: transparent;
}
.min-footer .container {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.min-footer__nav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.7);
}
.min-footer__nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.min-footer__nav a:hover { text-decoration: underline; }
.min-footer__nav span { color: rgba(255,255,255,0.35); }
.min-footer__meta {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
