* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  /* prevent stray horizontal scroll globally */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--c-text);
  background: var(--c-surface);
  min-height: 100vh;
  /* ensure body covers viewport height */
  width: 100%;
  /* avoid forcing 100vw which can include scrollbar width */
  position: relative;
  overflow-x: hidden;
  /* belt-and-suspenders on body too */
}

/* Clean anime background - no floating effects */

.bg-grid {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg-grid);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    margin: 0;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    margin: 0;
    padding: 12px;
  }
}

/* Unified Header - Professional Theme */
.site-header,
.header,
.mobile-header,
.desktop-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--c-surface-light);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Mobile Header */
.mobile-header {
  display: block;
}

.mobile-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Desktop Header */
.desktop-header {
  display: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  object-fit: cover;
}

/* Mobile Menu Button - Classic Clean Style */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-light);
  border: 1px solid var(--c-border);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  color: var(--c-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

.mobile-menu-btn:hover {
  background: var(--c-surface);
  border-color: var(--c-primary);
}

.header-container,
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Header Actions (Telegram + Hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Keep actions visually aligned to nav without crowding brand */
  margin-left: 12px;
}

/* Telegram button retains accent styling */
.lang-toggle-container {
  display: flex;
  align-items: center;
  margin-right: 0;
}

.lang-toggle-input {
  display: none;
}

.lang-toggle-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  background-color: var(--c-surface-light);
  border: 1px solid var(--c-border);
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-toggle-label::after {
  content: 'EN';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: bold;
  color: var(--c-text-muted);
  transition: all 0.3s ease;
}

.lang-toggle-label::before {
  content: 'MM';
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: bold;
  color: var(--c-text-muted);
  opacity: 0;
  transition: all 0.3s ease;
}

.lang-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--c-text);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.lang-toggle-input:checked+.lang-toggle-label {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}

.lang-toggle-input:checked+.lang-toggle-label .lang-toggle-slider {
  transform: translateX(24px);
  background-color: var(--c-white);
}

.lang-toggle-input:checked+.lang-toggle-label::after {
  opacity: 0;
}

.lang-toggle-input:checked+.lang-toggle-label::before {
  opacity: 1;
  color: var(--c-white);
}

/* Hover effects */
.lang-toggle-label:hover .lang-toggle-slider {
  transform: scale(1.1);
}

.lang-toggle-input:checked+.lang-toggle-label:hover .lang-toggle-slider {
  transform: translateX(24px) scale(1.1);
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  border: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  color: var(--c-white);
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.telegram-btn i {
  color: var(--c-white);
  font-size: 20px;
}

.telegram-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  border: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  color: var(--c-white);
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.messenger-btn i {
  color: var(--c-white);
  font-size: 20px;
}

.messenger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* Navigation for other pages */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--c-white);
  color: var(--c-black);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all 0.2s ease;
  border: 1px solid var(--c-border);
}

.nav a:hover,
.nav a.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* Brand Section */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: none;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
  display: block;
}

.brand-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: white;
  letter-spacing: 0.3px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}


.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

/* Remove flashy shimmer for a more professional desktop look */
.nav-link::before {
  content: none;
  display: none;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--c-border);
  color: var(--c-white);
  transform: none;
  box-shadow: none;
}

.nav-link i {
  font-size: var(--font-size-sm);
}

/* Mobile Menu Toggle - Anime Style */
.mobile-menu-toggle,
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  /* Professional, not too rounded */
  transition: all 0.2s ease;
  position: relative;
  z-index: 1100;
  margin-right: 0;
  /* Removed extra margin */
  color: #ffffff;
  box-shadow: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle::before,
.mobile-toggle::before {
  content: none;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.mobile-menu-toggle:hover,
.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ffffff;
}

.mobile-menu-toggle:focus-visible,
.mobile-toggle:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--shadow-glow);
}

.mobile-menu-toggle:hover::before,
.mobile-toggle:hover::before {
  opacity: 0.5;
  animation: rotateGradient 3s linear infinite;
}

.mobile-menu-toggle svg {
  display: block;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.active svg {
  transform: rotate(90deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Menu Content - Clean Anime Style */
.mobile-menu-content {
  padding: 1rem;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}



.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
  border-radius: 12px;
  margin: 0 20px;
  min-height: 48px;
}

/* Removed complex pseudo-elements for cleaner design */

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.mobile-nav-link i {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 20px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
  color: white;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }

  .desktop-header {
    display: block;
  }

  .logo {
    width: 42px;
    height: 42px;
  }

  /* Professional desktop header spacing */
  .header-container {
    gap: 16px;
  }

  .brand {
    margin-right: auto;
  }

  .desktop-nav {
    margin-left: 8px;
  }

  .desktop-nav .nav-link {
    margin: 0;
  }

  .header-actions {
    margin-left: 16px;
  }

  body {
    padding-bottom: 44px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .telegram-btn {
    display: inline-flex;
  }

  .header-container {
    height: 60px;
    padding: 0 1rem;
    justify-content: space-between;
  }

  .brand {
    flex: 1;
    gap: 0.5rem;
  }

  .mobile-menu {
    right: 0.5rem;
    width: calc(100vw - 1rem);
    max-width: 320px;
  }
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.1rem;
}

.logo {
  width: 32px;
  height: 32px;
}

.mobile-nav {
  height: 60px;
  padding: 0 1rem;
}

.nav-container {
  height: 60px;
  padding: 0 1rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel - Dropdown Overlay */
.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0.5rem;
  right: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  z-index: 1600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform-origin: top center;
  transform: translateY(-12px) scaleY(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-light);
  position: relative;
  min-height: 60px;
}

@keyframes floatBg {
  0% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-10px) translateX(10px);
  }

  100% {
    transform: translateY(0) translateX(0);
  }
}

.mobile-menu-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: white;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  position: absolute;
  top: 20px;
  right: 30px;
}

.mobile-menu-close:hover {
  color: #ccc;
  transform: rotate(90deg);
}

/* Mobile menu brand removed - no logo after hamburger */

.mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-menu nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Removed - using .mobile-nav-link instead */
/* .mobile-menu-nav a styles moved to .mobile-nav-link */

/* All .mobile-menu-nav a styles moved to .mobile-nav-link */

/* All .mobile-menu-nav a i styles moved to .mobile-nav-link i */

/* Cleaned up - using .mobile-nav-link:last-child instead */

/* Mobile Menu Responsive */
@media (max-width: 480px) {
  .mobile-menu {
    left: 0.5rem;
    right: 0.5rem;
    top: 56px;
    max-width: none;
  }

  .mobile-menu-header {
    padding: 14px 18px;
    min-height: 56px;
  }

  .mobile-menu-close {
    top: 14px;
    right: 18px;
  }

  .mobile-menu nav {
    padding: 16px;
  }

  .mobile-nav {
    padding: 0 12px;
    height: 56px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .mobile-nav-link {
    padding: 16px;
    font-size: var(--font-size-xs);
    margin: 0;
    gap: 6px;
  }

  .mobile-nav-link i {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

/* Tighten global spacing for small screens */
@media (max-width: 520px) {
  .container {
    padding: 12px;
  }

  .navbar {
    padding: 10px 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: var(--font-size-lg);
  }

  .section {
    padding: 16px;
  }

  .btn {
    padding: 10px 12px;
    font-size: var(--font-size-sm);
  }

  .card {
    margin-bottom: 16px;
  }
}

/* Better mobile grid spacing */
@media (max-width: 520px) {
  .grid {
    gap: 12px;
  }

  .showcase {
    margin-top: 16px;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  transition: all 200ms ease;
  text-decoration: none;
}

.btn-primary {
  color: var(--c-white);
  background: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--c-surface-light);
  color: var(--c-text);
  border: 2px solid var(--c-border);
}

.btn-ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.card {
  background: var(--c-surface-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.section {
  padding: 28px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Heading Styles - clean, readable text */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--c-text);
  font-weight: var(--font-weight-bold);
  margin: 0 0 16px 0;
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
}

h5 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}

h6 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

/* Generic centered main layout (replaces Tailwind flex center) */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pink Gradient Highlighting */
.highlight {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: var(--font-weight-medium);
}

.highlight-border {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--c-primary), var(--c-secondary)) 1;
  border-radius: 8px;
}

.highlight-text {
  color: var(--c-text);
  font-weight: var(--font-weight-semibold);
}

/* Mobile Footer Navigation - Enhanced Modern Style */
.mobile-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 8px calc(10px + env(safe-area-inset-bottom)) 8px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  z-index: 2000;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12),
    0 -4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-tap-highlight-color: rgba(68, 32, 166, 0.1);
}

@media (min-width: 769px) {
  .mobile-footer-nav {
    display: none;
  }
}

/* Mobile bottom spacing to prevent overlap with footer nav + browser bar */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    /* 70px for mobile footer nav + safe area for browser bar */
  }

  /* Ensure main content areas have proper spacing */
  main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* For pages with fixed/full height content */
  .bg-grid {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* Add margin-bottom to common content sections */
  section {
    margin-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  /* Specific spacing for last child elements - ensure proper spacing above footer nav */
  .container>*:last-child,
  main>*:last-child {
    margin-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  }

  /* Ensure buttons and action elements at bottom have spacing */
  main>div:last-child button,
  main>div:last-child a.btn {
    margin-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  }
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  text-decoration: none;
  position: relative;
  width: 25%;
  min-height: 56px;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.footer-nav-item:active {
  transform: scale(0.95);
}

.footer-nav-item.active {
  color: var(--c-primary);
}

.footer-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  color: var(--c-text-muted);
  position: relative;
}

.footer-nav-item:hover .footer-nav-icon {
  color: var(--c-primary);
  transform: translateY(-2px) scale(1.05);
}

.footer-nav-item:hover .footer-nav-text {
  color: var(--c-text);
  transform: translateY(-1px);
}

.footer-nav-item:active .footer-nav-icon {
  transform: scale(0.9);
}

.footer-nav-item.active .footer-nav-icon {
  color: var(--c-primary);
}

/* Active State Styles - Enhanced Floating Icon */
.footer-nav-item.active .footer-nav-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: var(--c-white);
  border-radius: 50%;
  position: absolute;
  top: -34px;
  box-shadow: 0 8px 24px rgba(68, 32, 166, 0.35),
    0 4px 12px rgba(68, 32, 166, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 5px solid var(--c-surface);
  animation: floatIcon 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatIcon {
  0% {
    transform: scale(0.8) translateY(10px);
    opacity: 0;
  }

  50% {
    transform: scale(1.1) translateY(-2px);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.footer-nav-text {
  font-size: 11px;
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.footer-nav-item.active .footer-nav-text {
  color: var(--c-primary);
  font-weight: 700;
}

/* Hide the old indicator */
.footer-active-indicator {
  display: none;
}

/* Footer Buy Dropdown */
.footer-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  z-index: 2098;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.footer-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.footer-buy-menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  bottom: 70px;
  width: min(92vw, 360px);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 2099;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.footer-buy-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.footer-buy-menu-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.footer-buy-menu-list {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px;
  gap: 4px;
}

.footer-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.footer-menu-item:hover {
  background: #f1f5f9;
}

.footer-menu-item i {
  color: var(--c-primary);
}

/* Removed mobile bottom navigation */

/* Package grid styles moved to buy.css to avoid duplication and conflicts */

/* Projects Grid - Custom grid with hover text color change */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.projects-grid .card {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.projects-grid .card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: 0 8px 25px rgba(44, 198, 238, 0.3);
}

/* Hover effect for projects-grid cards - change all text to black */
.projects-grid .card:hover,
.projects-grid .card:hover * {
  color: black !important;
  -webkit-text-fill-color: black !important;
}

/* Desktop Footer - Enhanced Design */
.footer.desktop-footer {
  text-align: center;
  padding: 32px 20px;
  margin-top: 60px;
  margin-bottom: 20px;
  color: var(--c-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.3px;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px 24px 0 0;
}

.footer.desktop-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.footer.desktop-footer span {
  color: var(--c-primary);
  font-weight: var(--font-weight-semibold);
  margin: 0 2px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .desktop-footer {
    display: none;
  }
}

/* Floating Telegram Action Button (removed) */
/* The header contains the single Telegram button via .telegram-btn styles */

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

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(11, 12, 21, 0.95);
  /* Matches surface color */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin-bottom: 6px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }
}



/* REDIECT PREMIUM PACKAGES TO TELEGRAM AND MESSENGER */
/* overlay */
.route-redirect-confirm {
  display: none;
  position: fixed;
  background: rgba(27, 26, 26, 0.95);
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.route-redirect-confirm .redirect-box {
  background: #0F172A;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.route-redirect-confirm h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

.route-redirect-confirm p {
  color: #e1e1e1;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.route-redirect-confirm button {
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.route-redirect-confirm #cancel-redirect {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  color: #666;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.route-redirect-confirm #cancel-redirect:hover {
  background: #e0e0e0;
  color: #333;
}

.route-redirect-confirm #redirect-telegram,
.route-redirect-confirm #redirect-messenger {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin: 0 0.5rem;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.route-redirect-confirm #redirect-telegram {
  background: #0088cc;
}

.route-redirect-confirm #redirect-telegram:hover {
  background: #0077b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.route-redirect-confirm #redirect-messenger {
  background: #006aff;
}

.route-redirect-confirm #redirect-messenger:hover {
  background: #005ce6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
}

.route-redirect-confirm i {
  font-size: 1.2rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .route-redirect-confirm .redirect-box {
    padding: 1.5rem;
    width: 85%;
  }

  .route-redirect-confirm h2 {
    font-size: 1.3rem;
  }

  .route-redirect-confirm #redirect-telegram,
  .route-redirect-confirm #redirect-messenger {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    min-width: unset;
  }
}