:root {
    --deep-space: #02040a;
    --accent-blue: #46c6ff;
    --accent-purple: #a855f7;
    --text-main: #f0f4f8;
    --text-dim: rgba(240, 244, 248, 0.6);
    --hud-line: rgba(70, 198, 255, 0.15);
    --glass-bg: rgba(6, 12, 32, 0.6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--deep-space);
    color: var(--text-main);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 80% 40%, rgba(70, 198, 255, 0.15), transparent 50%),
        url('https://images.unsplash.com/photo-1506318137071-a8e063b4bec0?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.logo,
nav a,
.btn-skew,
.hero-badge,
.hero-layout h1,
.stream-status,
.story-item-meta,
.story-item h3,
.meta-tag-line,
.article-title,
.article-meta,
.sub-section-title,
.mini-card h3,
.stats-box,
.profile-avatar::after,
.form-group label,
.archive-header h2,
.coming-soon-box h2,
.lux-back-btn {
    font-family: 'Chakra Petch', sans-serif !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.hud-header {
    border-bottom: 1px solid var(--hud-line);
    backdrop-filter: blur(12px);
    background: rgba(2, 4, 10, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 40px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    z-index: 10;
}

nav {
    margin-left: 30px;
    margin-right: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu-toggle-cb,
.menu-icon {
    display: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: 0.3s;
    padding: 10px 0;
    position: relative;
}

nav a:hover,
nav a.active {
    color: #fff;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -29px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.btn-skew {
    font-size: 0.9rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-blue);
    padding: 12px 28px;
    cursor: pointer;
    letter-spacing: 1px;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    z-index: 10;
}

.btn-skew:hover,
.btn-skew.active {
    background: rgba(70, 198, 255, 0.2);
    box-shadow: 0 0 15px rgba(70, 198, 255, 0.4);
}

.btn-skew.purple {
    border-color: var(--accent-purple);
}

.btn-skew.purple:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

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

.glass-frame {
    border: 1px solid var(--hud-line);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 4px;
    position: relative;
    margin-bottom: 50px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: center;
    min-height: 75vh;
}

.hero-badge {
    color: var(--accent-blue);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid var(--hud-line);
    padding: 6px 16px;
    background: rgba(2, 4, 10, 0.5);
}

.hero-layout h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-layout p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.stream-status {
    font-size: 0.9rem;
    color: var(--text-dim);
    border-left: 2px solid var(--accent-purple);
    padding-left: 15px;
}

.planet-glow {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/22/Earth_Western_Hemisphere_transparent_background.png');
    background-size: cover;
    filter: drop-shadow(0 0 60px rgba(70, 198, 255, 0.4)) brightness(0.8);
    animation: slowRotate 180s linear infinite;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.explorer-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.planet-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.planet-row:nth-child(even) {
    flex-direction: row-reverse;
}

.planet-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.planet-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    box-shadow: inset -20px -20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(70, 198, 255, 0.2);
}

.planet-info {
    flex: 1.5;
}

.planet-info h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #fff;
    margin: 10px 0;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
    border-top: 1px solid var(--hud-line);
    border-bottom: 1px solid var(--hud-line);
    padding: 15px 0;
    font-size: 0.9rem;
}

.stat-item span {
    color: var(--accent-blue);
    display: block;
    font-size: 0.7rem;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.story-item {
    background: var(--glass-bg);
    border: 1px solid rgba(70, 198, 255, 0.15);
    border-radius: 4px;
    transition: 0.3s;
    display: flex;
    overflow: hidden;
    gap: 0;
}

.story-img-wrapper {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    height: auto;
    min-height: 220px;
    overflow: hidden;
    border-right: 1px solid var(--hud-line);
    position: relative;
}

.story-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s;
    filter: brightness(0.6) contrast(1.2) saturate(0.8);
}

.story-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(70, 198, 255, 0.1);
}

.story-item:hover .story-img-wrapper img {
    transform: scale(1.06);
    filter: brightness(0.85) contrast(1.1) saturate(1);
}

.story-content {
    flex: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.terminal-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.terminal-input,
.filter-input,
.notify-input {
    width: 100%;
    background: rgba(2, 4, 10, 0.7);
    border: 1px solid var(--hud-line);
    padding: 14px;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    border-radius: 2px;
}

.terminal-input:focus,
.filter-input:focus,
.notify-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(70, 198, 255, 0.2);
}

textarea.terminal-input {
    height: 150px;
    resize: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dash-box {
    background: rgba(2, 4, 10, 0.4);
    border: 1px solid rgba(70, 198, 255, 0.1);
    padding: 20px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.dash-box-header {
    font-size: 0.8rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(70, 198, 255, 0.1);
    padding-bottom: 8px;
}

.dash-box-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 15px;
    border-top: 1px solid rgba(70, 198, 255, 0.1);
    padding-top: 8px;
}

.radar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.radar-circle {
    width: 130px;
    height: 130px;
    border: 1px solid rgba(70, 198, 255, 0.2);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(70, 198, 255, 0.03) 0%, transparent 70%);
}

.radar-circle::before,
.radar-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(70, 198, 255, 0.1);
}

.radar-circle::before {
    width: 80px;
    height: 80px;
}

.radar-circle::after {
    width: 40px;
    height: 40px;
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, rgba(70, 198, 255, 0.3) 0%, transparent 70%);
    transform-origin: bottom right;
    top: 0;
    left: 0;
    border-radius: 100% 0 0 0;
    animation: radarRotation 4s linear infinite;
}

.radar-ping {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: radarBlink 2s infinite ease-in-out;
}

.terminal-log-window {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    height: 120px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    color: var(--text-dim);
    animation: lineFadeIn 0.3s ease-out forwards;
}

.log-line.text-purple {
    color: var(--accent-purple);
}

.log-line.text-blue {
    color: var(--accent-blue);
}

.stats-bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    flex-grow: 1;
}

.bar-group {
    font-size: 0.75rem;
}

.bar-label {
    color: var(--text-dim);
    margin-bottom: 4px;
}

.bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    animation: fillBar 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    animation-delay: var(--d);
}

.bar-fill.purple {
    background: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
}

.index-author-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.index-author-panel h2,
.index-author-panel h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.book-zone {
    border-left: 1px solid var(--hud-line);
    padding-left: 50px;
}

@keyframes radarRotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes radarBlink {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes lineFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

@keyframes fillBar {
    to {
        width: var(--w);
    }
}

.text-glow-green {
    color: #00ffaa;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.hud-footer {
    border-top: 1px solid var(--hud-line);
    background: rgba(2, 4, 10, 0.9);
    padding: 25px 0;
    margin-top: 80px;
    font-size: 0.85rem;
}

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

.footer-copyright {
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.footer-credits {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.footer-credits a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.footer-credits a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-blue);
}

@media (max-width: 768px) {
    .hud-header {
        padding: 0 20px;
    }

    .container {
        padding: 40px 20px;
    }

    .glass-frame {
        padding: 30px 20px;
    }

    .nav-container {
        position: relative;
        height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
        z-index: 110;
        position: relative;
    }

    .menu-icon span,
    .menu-icon span::before,
    .menu-icon span::after {
        display: block;
        background: var(--accent-blue);
        height: 2px;
        width: 24px;
        position: relative;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .menu-icon span::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 0;
        width: 24px;
        height: 2px;
        background: var(--accent-blue);
    }

    .menu-icon span::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 0;
        width: 16px;
        height: 2px;
        background: var(--accent-blue);
    }

    .menu-toggle-cb:checked~.menu-icon span {
        background: transparent;
    }

    .menu-toggle-cb:checked~.menu-icon span::before {
        transform: rotate(45deg);
        top: 0;
        background: var(--accent-purple);
    }

    .menu-toggle-cb:checked~.menu-icon span::after {
        transform: rotate(-45deg);
        top: 0;
        width: 24px;
        background: var(--accent-purple);
    }

    nav,
    .nav-container>.btn-skew {
        display: none;
        width: 100%;
        margin: 0;
    }

    .menu-toggle-cb:checked~nav {
        display: block;
        order: 3;
        margin-top: 15px;
        background: rgba(2, 4, 10, 0.98);
        border: 1px solid var(--hud-line);
        border-radius: 4px;
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .menu-toggle-cb:checked~.btn-skew {
        display: flex;
        justify-content: center;
        align-items: center;
        order: 4;
        margin-top: 15px;
        box-sizing: border-box;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 14px 20px;
        color: var(--text-dim);
        border-left: 3px solid transparent;
        transition: 0.2s;
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: #fff;
        background: rgba(70, 198, 255, 0.04);
        border-left-color: var(--accent-blue);
    }

    nav a.active::after {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        gap: 30px;
    }

    .hero-layout h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .planet-glow {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .story-item {
        flex-direction: column;
    }

    .story-img-wrapper {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--hud-line);
    }

    .index-author-panel {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .book-zone {
        border-left: none;
        border-top: 1px solid var(--hud-line);
        padding-left: 0;
        padding-top: 40px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (min-width: 940px) {
    .nav-container {
        position: relative !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-container nav {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    .nav-container nav ul {
        display: flex !important;
        gap: 35px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
}