/* ========================
   SMT Floating Nav — Desktop
   ======================== */

.smt-fn-desktop-nav {
  display: none;
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%) translateX(50px);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: normal;
  box-sizing: border-box;
}

.smt-fn-desktop-nav.smt-fn-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.smt-fn-desktop-nav-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 40px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.1), 0 20px 40px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.smt-fn-nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.smt-fn-nav-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: scale(1.1);
}

.smt-fn-nav-btn:active {
  transform: scale(0.95);
}

.smt-fn-nav-btn.smt-fn-active {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.15);
}

.smt-fn-nav-btn.smt-fn-active:hover {
  transform: scale(1.1);
}

/* Active indicator bar */
.smt-fn-indicator {
  position: absolute;
  left: 0;
  width: 0.25rem;
  height: 3rem;
  background: linear-gradient(to bottom, #06b6d4, #0891b2);
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.smt-fn-nav-btn.smt-fn-active .smt-fn-indicator {
  opacity: 1;
}

/* Icon */
.smt-fn-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: block;
}

.smt-fn-nav-btn:hover .smt-fn-icon {
  color: #0891b2;
}

.smt-fn-nav-btn.smt-fn-active .smt-fn-icon {
  color: #0891b2;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

/* Label */
.smt-fn-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.35);
  opacity: 0.6;
  transition: all 0.3s ease;
  text-transform: none;
  text-decoration: none;
  line-height: 1;
}

.smt-fn-nav-btn:hover .smt-fn-label {
  color: #0891b2;
  opacity: 1;
}

.smt-fn-nav-btn.smt-fn-active .smt-fn-label {
  color: #0891b2;
  opacity: 1;
}

/* Glow overlay */
.smt-fn-glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent 70%);
  pointer-events: none;
  box-sizing: border-box;
}

.smt-fn-nav-btn:hover .smt-fn-glow {
  opacity: 1;
}

.smt-fn-nav-btn.smt-fn-active .smt-fn-glow {
  opacity: 1;
}

/* ========================
   SMT Floating Nav — Mobile
   ======================== */

.smt-fn-mobile-nav {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: normal;
  box-sizing: border-box;
}

.smt-fn-mobile-nav.smt-fn-visible {
  opacity: 1;
  transform: translateY(0);
}

.smt-fn-mobile-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08), 0 0 60px rgba(6, 182, 212, 0.06);
  box-sizing: border-box;
}

.smt-fn-mobile-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.smt-fn-mobile-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  min-width: 60px;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.smt-fn-mobile-btn:active {
  transform: scale(0.9);
}

.smt-fn-mobile-icon-wrap {
  position: relative;
  box-sizing: border-box;
}

.smt-fn-mobile-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: block;
}

.smt-fn-mobile-btn.smt-fn-active .smt-fn-mobile-icon {
  color: #0891b2;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.smt-fn-mobile-glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.smt-fn-mobile-btn.smt-fn-active .smt-fn-mobile-glow {
  opacity: 1;
}

.smt-fn-mobile-label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  text-transform: none;
  text-decoration: none;
  line-height: 1;
}

.smt-fn-mobile-btn.smt-fn-active .smt-fn-mobile-label {
  color: #0891b2;
}

.smt-fn-mobile-dot {
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.25rem;
  background: linear-gradient(to right, #06b6d4, #0891b2);
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.smt-fn-mobile-btn.smt-fn-active .smt-fn-mobile-dot {
  opacity: 1;
}

/* ========================
   Responsive
   ======================== */

@media (min-width: 1024px) {
  .smt-fn-desktop-nav {
    display: block;
  }

  .smt-fn-mobile-nav {
    display: none !important;
  }
}
