/* Variables */
:root {
    --sp-bg-glass: rgba(4, 4, 8, 0.2);
    --sp-border-color: #2B2B2F;
    --sp-text-primary: #FFFFFF;
    --sp-text-secondary: rgba(255, 255, 255, 0.7);
    --sp-text-muted: #C5C4C8;
    --sp-primary-gradient-start: #6565EC;
    --sp-primary-gradient-end: #4545CC;
    --sp-primary-border: #7A75EF;
}

a:visited{
color: unset;
}

/* Header Wrapper */
.sp-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    z-index: 1000;
}

.sp-header {
    width: 100%;
    max-width: 1300px;
    height: 54px;
    background: var(--sp-bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sp-border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px !important;
}

/* Logo */
.sp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.sp-logo img {
    height: 24px;
}

/* Navigation */
.sp-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
align-items: center;
font-size: 14px;
}


.sp-nav-link {
    color: var(--sp-text-secondary);
    text-decoration: none;
    
}

.sp-nav-link:hover {
    color: var(--sp-text-primary);
}

/* Buttons */
.sp-actions {
    display: flex;
    gap: 12px;
}

.sp-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
}

.sp-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sp-border-color);
    color: var(--sp-text-muted) !important;
font-weight: 600;
}
.sp-btn-secondary:hover{

background: #A9A8AE;
color: #0A0A0F !important;
}

.sp-btn-primary {
    background: linear-gradient(180deg, var(--sp-primary-gradient-start), var(--sp-primary-gradient-end));
    border: 1px solid var(--sp-primary-border);
    color: #F0EDFE !important;
font-weight: 600;
}
.sp-btn-primary:hover{
background: #2F2F9D;
color: #BBBBBB;
}

/* Mobile */
.sp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--sp-text-secondary);
}

.sp-mobile-menu {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--sp-border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.sp-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sp-nav,
    .sp-actions {
        display: none;
    }

    .sp-mobile-toggle {
        display: block;
    }
.sp-logo img {
    height: 20px;
}

}


@media (max-width: 768px) {

    /* Header layout */
    .sp-header {
        padding: 0 16px;
    }

    /* Show actions on mobile */
    .sp-actions {
        display: flex;
        gap: 10px;
        margin-left: auto; /* push to right */
    }

    /* Buttons size for mobile */
    .sp-btn {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    /* Hamburger visible on mobile */
    .sp-mobile-toggle {
        display: block;
        margin-left: 8px; /* space after buttons */
    }
}








/* ========== PRODUCT MEGA MENU ========== */

.sp-nav-item {
    position: relative;
align-items: center;
}


.sp-mega-menu {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-30%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
}
.sp-mega-inner {
    width: 820px;
    padding: 12px;

    background: rgba(255,255,255,.05);
    backdrop-filter: blur(18px);
    border: 1px solid var(--sp-border-color);
    border-radius: 12px;
}


.sp-nav-item.has-mega:hover .sp-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-30%) translateY(0);
}

/* GRID STRUCTURE */
.sp-mega-grid {
    display: grid;
    grid-template-columns: 260px 1px 1fr;
    gap: 32px;
    align-items: start;
}

/* LEFT COLUMN */
.sp-core-col {
    padding-right: 12px;
}


.sp-mega-divider {
    width: 1px;
    background: rgba(255,255,255,0.08);
    height: 100%;
}

.sp-mega-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-mega-title {
    font-size: 12px;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.sp-mega-link {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.sp-mega-link strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.sp-mega-link small {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.sp-mega-link:hover {
    background: rgba(255,255,255,0.06);
}

/* OUTER BLACK CONTAINER */
.sp-mega-outer {
        backdrop-filter: blur(32px);
    transform-origin: top;
    background: rgba(8, 9, 10, .9);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 20px;
       box-shadow: 0 8px 32px #08090a;
}








/* RIGHT COLUMN */
.sp-more-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* RIGHT SIDE 2-COLUMN GRID */
.sp-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

/* LINK STYLE (MATCH SS) */
.sp-mega-link {
    padding: 12px 14px;
    border-radius: 12px;
}

.sp-mega-link strong {
    font-size: 14px;
    font-weight: 500;
}

.sp-mega-link small {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}


.sp-nav-item:not(:first-child):hover .sp-mega-menu {
    transform: translateX(-50%) translateY(0);
}
/* Resources menu width */
.sp-resources-menu .sp-mega-inner {
    width: 460px;
}

/* 2x2 grid */
.sp-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-top: 12px;
}

/* Center resources dropdown */
.sp-resources-menu {
    transform: translateX(-50%) translateY(10px);
}

.sp-nav-item.has-mega:hover .sp-resources-menu {
    transform: translateX(-50%) translateY(0);
}








/* ========== MOBILE SIDEBAR MENU ========== */

.sp-mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #0A0A0F;
  z-index: 2000;
  transition: right 0.3s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sp-mobile-sidebar.is-open {
  right: 0;
}

.sp-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #C5C4C8;
  font-size: 16px;
  margin-bottom: 24px;
}

.sp-mobile-close {
  background: none;
  border: none;
  color:#C5C4C8;
  font-size: 20px;
}

.sp-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-mobile-link,
.sp-mobile-submenu a {
  color: #C5C4C8;
  text-decoration: none;
  font-size: 12px;
}

.sp-mobile-parent {
  background: none;
  border: none;
  color: #C5C4C8;
  font-size: 14px;
  padding: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
}


.sp-mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding-left: 12px;
}

.sp-mobile-item.active .sp-mobile-submenu {
  display: flex;
}

.sp-mobile-item{
padding: 20px;
    background: rgb(75 75 75 / 50%);
    border-radius: 10px;
color: #C5C4C8;

}
a.sp-mobile-link{
padding: 20px;
    background: rgb(75 75 75 / 50%);
    border-radius: 10px;
color: #C5C4C8;
font-size: 14px;
}


/* MOBILE ONLY */
@media (min-width: 769px) {
  .sp-mobile-sidebar {
    display: none;
  }
}

.sp-arrow {
  transition: transform 0.25s ease;
  font-size: 20px;
}

.sp-mobile-item.active .sp-arrow {
  transform: rotate(180deg);
}


