:root {
    --primary: #00F2FF;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #9D00FF;
    --secondary-glow: rgba(157, 0, 255, 0.4);
    --accent: #FF0055;
    --background: #05070A;
    --surface: #0D1117;
    --surface-alt: #161B22;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    --border-color: #1F2937;
    --border-neon: #00F2FF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-space-dark {
    background-color: var(--background);
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.neon-border {
    border: 1px solid var(--border-neon);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-neon-clip {
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    background: var(--primary);
    color: var(--background);
    transition: all 0.2s ease;
}

.btn-neon-clip:hover {
    background: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
    color: white;
}

/* ===== header ===== */
.nebulixapea-header .nav-link {
    position: relative;
    display: inline-block;
}

.nebulixapea-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00F2FF;
    transition: width 0.3s ease;
}

.nebulixapea-header .nav-link:hover::after {
    width: 100%;
}

.nebulixapea-header .js-mobile-menu {
    background-color: #0D1117 !important;
}

@media (max-width: 1023px) {
    .nebulixapea-header .js-mobile-menu.active {
        display: block !important;
    }
}

/* ===== hero ===== */
.nebulixapea-hero {
    position: relative;
    width: 100%;
}

.nebulixapea-hero-bg {
    pointer-events: none;
}

.nebulixapea-hero-btn {
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    min-width: 240px;
}

.nebulixapea-hero-btn:hover {
    background-color: #FFFFFF;
}

.nebulixapea-hero-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nebulixapea-hero-subtitle {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

@media (max-width: 767px) {
    .nebulixapea-hero-btn {
        clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    }
}

/* ===== about-preview ===== */
.about-universe .about-universe-bg {
    background-image: url('../files/visuals/uploads/nebulixapea-universe-background.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.about-universe .about-universe-btn {
    background: linear-gradient(135deg, #00F2FF 0%, #9D00FF 100%);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.about-universe .about-universe-btn:hover {
    background: linear-gradient(90deg, #00F2FF 0%, #FF0055 100%);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.6);
}

.about-universe .about-universe-title {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.about-universe .about-universe-description {
    hyphens: auto;
}

/* ===== atlas-preview ===== */
.atlas-preview {
    position: relative;
    overflow: hidden;
}

.atlas-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(157, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.atlas-preview__card {
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.atlas-preview__card:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-4px);
}

.atlas-preview__btn {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}

.atlas-preview__title {
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

@media (max-width: 767px) {
    .atlas-preview__title {
        font-size: 18px;
    }

    .atlas-preview__card h3 {
        font-size: 14px;
    }
}

/* ===== academy-preview ===== */
.academy-highlights-section .academy-card {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.academy-highlights-section .academy-btn {
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.academy-highlights-section .academy-card:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
    transform: scale(1.02);
}

.academy-highlights-section .academy-card img {
    filter: grayscale(20%) contrast(110%);
}

.academy-highlights-section .academy-card:hover img {
    filter: grayscale(0%) contrast(100%);
}

/* ===== logbook-preview ===== */
.logbook-preview-section .logbook-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logbook-preview-section .logbook-card:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
    transform: translateY(-4px);
}

.logbook-preview-section .logbook-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00F2FF, #9D00FF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logbook-preview-section .logbook-card:hover::before {
    opacity: 1;
}

/* ===== footer ===== */
.nebulix-footer {
    font-family: 'Inter', sans-serif;
}

.nebulix-footer h3 {
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.nebulix-footer a {
    text-decoration: none;
}

.nebulix-footer .nebulix-footer-brand img {
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

.nebulixapea-header .nav-link {
    position: relative;
    display: inline-block;
}

.nebulixapea-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00F2FF;
    transition: width 0.3s ease;
}

.nebulixapea-header .nav-link:hover::after {
    width: 100%;
}

.nebulixapea-header .js-mobile-menu {
    background-color: #0D1117 !important;
}

@media (max-width: 1023px) {
    .nebulixapea-header .js-mobile-menu.active {
        display: block !important;
    }
}

.nebulixapea-hero-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nebulixapea-hero-subtitle {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.nebulix-news-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nebulix-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 255, 0.2);
}

.nebulix-news-list .js-filter-btn.active {
    background-color: #00F2FF;
    color: #05070A;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.nebulix-footer h3 {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.nebulix-footer .nebulix-footer-brand img {
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}


/* ===== PAGE: privacy ===== */
.privacy-section { padding: 64px 20px; background-color: #05070A; color: #A0AEC0; font-family: 'Inter', sans-serif; line-height: 1.8; } .privacy-inner-wrapper { max-width: 900px; margin: 0 auto; } .privacy-header-block { margin-bottom: 48px; border-bottom: 2px solid #1F2937; padding-bottom: 24px; } .privacy-main-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 900; color: #00F2FF; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; } @media (min-width: 768px) { .privacy-main-title { font-size: 42px; } } .privacy-update-date { font-size: 14px; color: #718096; } .privacy-body-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #FFFFFF; margin-top: 40px; margin-bottom: 20px; border-left: 4px solid #9D00FF; padding-left: 16px; font-weight: 700; } @media (min-width: 768px) { .privacy-body-content h2 { font-size: 32px; } } .privacy-body-content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: #00F2FF; margin-top: 32px; margin-bottom: 16px; font-weight: 600; } @media (min-width: 768px) { .privacy-body-content h3 { font-size: 26px; } } .privacy-body-content p { margin-bottom: 24px; font-size: 16px; color: #A0AEC0; text-align: justify; hyphens: auto; } .privacy-body-content ul { margin-bottom: 24px; padding-left: 20px; list-style-type: none; } .privacy-body-content li { position: relative; padding-left: 28px; margin-bottom: 12px; } .privacy-body-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: #9D00FF; box-shadow: 0 0 8px #9D00FF; } .privacy-body-content strong { color: #FFFFFF; }

/* ===== PAGE: terms ===== */
.terms-page {
  background-color: #05070A;
  color: #FFFFFF;
}

#policy-content-container .terms-container {
  padding-top: 40px;
  padding-bottom: 80px;
}

#policy-content-container .terms-section {
  transition: transform 0.3s ease;
}

#policy-content-container .terms-card {
  position: relative;
  overflow: hidden;
}

#policy-content-container .terms-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

#policy-content-container .terms-card:hover::before {
  background: currentColor;
}

#policy-content-container h2 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

#policy-content-container h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.3;
}

#policy-content-container p, #policy-content-container li {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

@media (max-width: 767px) {
  #policy-content-container h2 {
    font-size: 16px;
  }
  #policy-content-container h3 {
    font-size: 14px;
  }
  #policy-content-container p {
    font-size: 14px;
    hyphens: auto;
  }
}

/* ===== PAGE: disclaimer ===== */
#policy-content-container { font-family: 'Inter', sans-serif; }
#policy-content-container h2, #policy-content-container h3 { font-family: 'Space Grotesk', sans-serif; }
#policy-content-container .policy-article {
    position: relative;
    overflow: hidden;
}
#policy-content-container .policy-article::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(157, 0, 255, 0.1), transparent);
    pointer-events: none;
}
#policy-content-container .policy-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}
#policy-content-container .policy-body section:last-of-type p {
    margin-bottom: 0;
}
@media (max-width: 768px) {
    #policy-content-container .policy-body p {
        text-align: left;
    }
}

/* ===== PAGE: cookies ===== */
#policy-content-container { background-color: #05070A; padding: 40px 20px; font-family: 'Inter', sans-serif; }
#policy-content-container .cookies-policy-section { max-width: 1200px; margin: 0 auto; }
#policy-content-container .cookies-policy-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
#policy-content-container .cookies-policy-heading { color: #00F2FF; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 16px; margin-top: 32px; text-transform: uppercase; letter-spacing: 0.05em; border-left: 3px solid #9D00FF; padding-left: 15px; }
#policy-content-container .cookies-policy-subheading { color: #FFFFFF; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14px; margin-bottom: 12px; margin-top: 24px; }
#policy-content-container .cookies-policy-text { color: #A0AEC0; font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
#policy-content-container .cookies-policy-list { list-style: none; padding: 0; margin-bottom: 20px; }
#policy-content-container .cookies-policy-list-item { color: #A0AEC0; font-size: 16px; line-height: 1.6; margin-bottom: 12px; position: relative; padding-left: 24px; }
#policy-content-container .cookies-policy-list-item::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background-color: #9D00FF; border-radius: 2px; box-shadow: 0 0 8px #9D00FF; }
#policy-content-container .cookies-policy-accent { color: #00F2FF; font-weight: 600; }
@media (min-width: 768px) {
  #policy-content-container { padding: 80px 40px; }
  #policy-content-container .cookies-policy-heading { font-size: 32px; }
  #policy-content-container .cookies-policy-subheading { font-size: 26px; }
  #policy-content-container .cookies-policy-text, #policy-content-container .cookies-policy-list-item { font-size: 18px; }
}

/* ===== PAGE: about ===== */
.about-content-section h1, .about-content-section h2, .about-content-section h3 {
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.about-content-section .about-image-container img {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.about-content-section .about-text-content {
  position: relative;
}

.about-content-section .about-text-content::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #00F2FF, transparent);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .about-content-section .about-text-content::before {
    display: none;
  }
}

.main-comment-card {
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 97% 100%, 0% 100%);
    position: relative;
}

.avatar-initials {
    object-fit: cover;
    flex-shrink: 0;
    user-select: none;
}

.comment-body-text p {
    word-break: break-word;
}

.main-comment-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, #00F2FF 50%);
    opacity: 0.1;
}

.reply-comment-card {
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 98% 100%, 0% 100%);
}

.avatar-initials {
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body-text p {
    color: #A0AEC0;
}

.reply-comment-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #9D00FF 0%, transparent 100%);
    opacity: 0.3;
}


/* ===== PAGE TEMPLATE: atlas-list ===== */
.nebulix-detail-page .nebulix-rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.nebulix-detail-page .nebulix-rich-text h2 {
    color: #FFFFFF;
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.nebulixapea-header .js-mobile-menu.active {
    display: block !important;
}

.nebulix-hero-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nebulix-hero-subtitle {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.space-comment-wrapper .main-comment-card {
    border-left-color: #00F2FF;
}

.reply-comment-wrapper .reply-comment-card {
    border-left-color: #9D00FF;
}

@media (max-width: 767px) {
    .nebulixapea-hero-title {
        font-size: 18px !important;
    }

    .nebulixapea-hero-subtitle {
        font-size: 16px !important;
    }
}

/* ===== PAGE TEMPLATE: academy-list ===== */
.nebulix-detail-page .nebulix-rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.nebulix-detail-page .nebulix-rich-text h2 {
    color: #FFFFFF;
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.nebulixapea-header .js-mobile-menu.active {
    display: block !important;
}

.nebulix-hero-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nebulix-hero-subtitle {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.space-comment-wrapper .main-comment-card {
    border-left-color: #00F2FF;
}

.reply-comment-wrapper .reply-comment-card {
    border-left-color: #9D00FF;
}

@media (max-width: 767px) {
    .nebulixapea-hero-title {
        font-size: 18px !important;
    }

    .nebulixapea-hero-subtitle {
        font-size: 16px !important;
    }
}

/* ===== PAGE TEMPLATE: logbook-list ===== */
.nebulix-detail-page .nebulix-rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.nebulix-detail-page .nebulix-rich-text h2 {
    color: #FFFFFF;
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.nebulixapea-header .js-mobile-menu.active {
    display: block !important;
}

.nebulix-hero-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nebulix-hero-subtitle {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.space-comment-wrapper .main-comment-card {
    border-left-color: #00F2FF;
}

.reply-comment-wrapper .reply-comment-card {
    border-left-color: #9D00FF;
}

@media (max-width: 767px) {
    .nebulixapea-hero-title {
        font-size: 18px !important;
    }

    .nebulixapea-hero-subtitle {
        font-size: 16px !important;
    }
}

/* ===== PAGE TEMPLATE: game-page ===== */
.nebulixapea-header .nav-link {
    position: relative;
    display: inline-block;
}

.nebulixapea-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00F2FF;
    transition: width 0.3s ease;
}

.nebulixapea-header .nav-link:hover::after {
    width: 100%;
}

.nebulixapea-header .js-mobile-menu {
    background-color: #0D1117 !important;
}

@media (max-width: 1023px) {
    .nebulixapea-header .js-mobile-menu.active {
        display: block !important;
    }
}

.nebulixapea-hero {
    position: relative;
    width: 100%;
}

.nebulixapea-hero-bg {
    pointer-events: none;
}

.nebulixapea-hero-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nebulixapea-hero-subtitle {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.nebulixapea-game-frame-container {
    transition: box-shadow 0.5s ease;
}

.nebulixapea-game-frame-container:hover {
    shadow-[0_0_80px_rgba(0, 242, 255, 0.1)];
}

.nebulixapea-rich-text p {
    margin-bottom: 1.5rem;
}

.nebulixapea-specs-card {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.nebulix-footer {
    font-family: 'Inter', sans-serif;
}

.nebulix-footer h3 {
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.nebulix-footer .nebulix-footer-brand img {
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

.js-like-btn.active svg {
    fill: #FF0055;
    stroke: #FF0055;
}

.js-like-btn.active .js-like-count {
    color: #FF0055;
}