/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --bg: #080c10;
    --bg-2: #0d1117;
    --card: #0f161e;
    --border: rgba(0, 200, 255, 0.12);
    --border-hover: rgba(0, 200, 255, 0.4);
    --accent: #00c8ff;
    --accent-soft: rgba(0, 200, 255, 0.08);
    --discord: #5865f2;
    --discord-hover: #4752c4;
    --discord-soft: rgba(88, 101, 242, 0.18);
    --text: #e6edf3;
    --text-dim: #9aa6b2;
    --text-muted: #6b7785;
    --green: #3ddc84;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.accent {
    color: var(--accent);
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseLine {
    0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    background: rgba(8, 12, 16, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 12, 16, 0.88);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-logo .dot {
    color: var(--accent);
}

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

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--discord);
    color: #fff;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-2px);
}

/* LANGUAGE SELECTOR */
.nav-lang-wrap {
    position: relative;
}

.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(8, 12, 16, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.nav-lang:hover {
    background: var(--accent-soft);
    border-color: var(--border-hover);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-arrow {
    transition: transform 0.2s ease;
    color: var(--text-dim);
}

.nav-lang.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(15, 22, 30, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    list-style: none;
    display: none;
    z-index: 1100;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    margin: 0;
}

.lang-dropdown.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.lang-dropdown li {
    list-style: none;
}

.lang-dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 100px;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 200, 255, 0.18);
    top: -100px;
    left: -100px;
    animation: glowFloat 14s infinite ease-in-out;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(88, 101, 242, 0.12);
    bottom: -80px;
    right: -80px;
    animation: glowFloat 18s infinite ease-in-out reverse;
}

.hero-content {
    position: relative;
    max-width: 880px;
    text-align: center;
    z-index: 1;
    animation: fadeUp 0.9s ease;
}

.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 660px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0 auto 48px;
    padding: 28px 36px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 720px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #051218;
}

.btn-primary:hover {
    background: #1ad6ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 255, 0.3);
}

.btn-discord {
    background: var(--discord);
    color: #fff;
}

.btn-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.84rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* SCROLL HINT */
.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.scroll-hint span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
}

.scroll-line {
    display: block;
    width: 2px;
    height: 50px;
    background: var(--accent);
    transform-origin: top;
    animation: pulseLine 2s infinite ease-in-out;
}

/* ===========================
   ABOUT STRIP
=========================== */
.about-strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 70px 32px;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(0, 200, 255, 0.1);
}

.about-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ===========================
   SECTION HEAD
=========================== */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto;
}

/* ===========================
   MODS
=========================== */
.mods {
    background: var(--bg);
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mod-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mod-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 200, 255, 0.1);
}

.mod-featured {
    grid-column: span 2;
    flex-direction: row;
    min-height: 340px;
}

.mod-featured .mod-image {
    flex: 1;
    min-height: 340px;
    aspect-ratio: auto;
}

.mod-featured .mod-body {
    flex: 1;
    padding: 40px;
    justify-content: center;
}

.mod-image {
    position: relative;
    background: #0a1418;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.mod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1.12);
    transform-origin: center top;
}

.mod-image img + .mod-image-fallback {
    display: none;
}

.mod-image.no-img .mod-image-fallback {
    display: block;
}

.mod-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--accent);
    color: #051218;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.mod-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mod-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-green {
    color: var(--green);
    border-color: rgba(61, 220, 132, 0.3);
    background: rgba(61, 220, 132, 0.1);
}

.mod-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mod-featured .mod-title {
    font-size: 1.7rem;
}

.mod-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
}

.mod-downloads {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.mod-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: center;
}

.mod-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-star {
    background: transparent;
    border: none;
    color: rgba(154, 166, 178, 0.45);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-star:hover {
    transform: scale(1.15);
}

.rating-star.filled {
    color: var(--accent);
}

.rating-star.hover-fill {
    color: #1ad6ff;
}

.rating-summary {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.rating-summary .rating-avg {
    color: var(--accent);
    font-weight: 700;
}

.rating-summary.empty {
    font-style: italic;
}

.mod-rating.voted .rating-star {
    cursor: default;
    pointer-events: none;
}

.mod-rating.voted .rating-star:not(.filled) {
    opacity: 0.6;
}

.rating-voted-tag {
    color: var(--accent);
    font-weight: 600;
    font-style: italic;
}

.mod-buttons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* ===========================
   DISCORD CTA
=========================== */
.discord-cta {
    background: var(--bg-2);
    padding: 100px 32px;
}

.discord-box {
    background: var(--card);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.discord-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.18) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
}

.discord-box > *:not(.discord-glow) {
    position: relative;
    z-index: 1;
}

.discord-big-icon {
    color: var(--discord);
    margin-bottom: 24px;
    display: inline-block;
}

.discord-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.discord-box p {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 32px 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--accent); }
.footer-sep {
    margin: 0 6px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.mod-card,
.about-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mod-card.visible,
.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   MOD DETAIL PAGE
=========================== */
.detail-hero {
    position: relative;
    padding: 130px 32px 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.detail-hero .grid-overlay {
    opacity: 0.6;
}

.detail-hero-content {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    z-index: 1;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb:hover {
    color: var(--accent);
}

.detail-version {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.detail-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.detail-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 720px;
    margin-bottom: 32px;
}

.detail-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 70px 32px;
}

.detail-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.detail-section p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 16px;
}

.version-pill {
    display: inline-block;
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

/* Stats rapidas */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

.quick-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s ease;
}

.quick-stat:hover {
    border-color: var(--border-hover);
}

.quick-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
}

.quick-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.quick-stat-value .accent {
    color: var(--accent);
}

/* About map */
.about-map {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.about-map-text p {
    margin-bottom: 14px;
}

.about-map-image {
    background: #0a1418;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.about-map-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Includes list */
.includes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.include-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.include-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.include-icon {
    color: var(--accent);
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
}

.include-item span:last-child {
    font-size: 0.94rem;
    color: var(--text);
    line-height: 1.5;
}

/* Changelog table */
.changelog-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.changelog-table thead {
    background: rgba(0, 200, 255, 0.05);
}

.changelog-table th {
    text-align: left;
    padding: 16px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}

.changelog-table td {
    padding: 16px 20px;
    font-size: 0.92rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.changelog-table tbody tr:last-child td {
    border-bottom: none;
}

.changelog-table tbody tr:hover {
    background: rgba(0, 200, 255, 0.03);
}

.changelog-version {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.changelog-date {
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.86rem;
}

.changelog-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.changelog-link { white-space: nowrap; }
.changelog-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.25);
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.changelog-link a:hover {
    background: rgba(0, 200, 255, 0.18);
    border-color: rgba(0, 200, 255, 0.55);
    transform: translateY(-1px);
}

.changelog-section-label {
    margin: 30px 0 14px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.changelog-section-label-paid {
    margin-top: 40px;
    color: #f5a623;
}

.changelog-paid-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}
.changelog-paid-wrap .changelog-table {
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
}
.changelog-paid-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 16, 0.0) 0%, rgba(8, 12, 16, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}
.changelog-unavailable {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 900;
    color: #f5a623;
    background: rgba(8, 12, 16, 0.88);
    border: 2px dashed rgba(245, 166, 35, 0.7);
    padding: 10px 22px;
    border-radius: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    max-width: 80%;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mod-featured {
        flex-direction: column;
        min-height: auto;
    }

    .mod-featured .mod-image {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .mod-featured .mod-body {
        padding: 24px;
    }

    .mod-featured .mod-title {
        font-size: 1.3rem;
    }

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

    .about-map {
        grid-template-columns: 1fr;
    }

    .includes-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        right: -100%;
        flex-direction: column;
        gap: 18px;
        background: rgba(8, 12, 16, 0.97);
        backdrop-filter: blur(18px);
        border-left: 1px solid var(--border);
        padding: 32px 28px;
        height: calc(100vh - 68px);
        width: 70%;
        max-width: 280px;
        align-items: flex-start;
        transition: right 0.3s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 110px 20px 70px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .stat-divider {
        width: 60%;
        height: 1px;
    }

    .about-strip {
        padding: 50px 20px;
    }

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

    .mods {
        padding: 70px 20px;
    }

    .discord-cta {
        padding: 70px 20px;
    }

    .discord-box {
        padding: 48px 24px;
    }

    .footer {
        padding: 40px 20px 24px;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .mod-buttons {
        flex-direction: column;
    }

    .mod-buttons .btn {
        width: 100%;
    }

    .detail-hero {
        padding: 110px 20px 50px;
    }

    .detail-section {
        padding: 50px 20px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .changelog-table th,
    .changelog-table td {
        padding: 12px 14px;
        font-size: 0.84rem;
    }
}

.download-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.download-count .dl-num {
  color: var(--cyan);
  font-weight: 700;
}

.stars-input { display: inline-flex; gap: 4px; cursor: pointer; }
.stars-input .star { font-size: 22px; color: #3a4a5a; transition: color 0.15s; }
.stars-input .star.active { color: #f5a623; }
.stars-input .star.hover { color: #f5a623; opacity: 0.7; }
.review-summary { font-size: 14px; color: var(--text-muted); margin-left: 10px; }
.review-summary strong { color: var(--text); }
.already-voted { font-style: italic; color: var(--cyan); font-size: 13px; }

.review-version-select {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-version-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.review-version-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 200, 255, 0.25);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}
.review-version-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.review-version-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #051218;
}

.comment-version {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: middle;
}
.comment-version-free {
  background: rgba(0, 200, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, 0.4);
}
.comment-version-paid {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.45);
}


.review-version-select {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.review-version-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.review-version-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.review-version-btn:hover {
  border-color: rgba(0, 200, 255, 0.5);
  color: var(--text);
}
.review-version-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #051218;
}
.review-version-btn[data-ver="paid"].active {
  background: #f5a623;
  border-color: #f5a623;
}

.comment-version {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.comment-version-free {
  background: rgba(0, 200, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 200, 255, 0.3);
}
.comment-version-paid {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.feedback-prompt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 14px 12px;
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  animation: fbFadeIn 0.25s ease-out;
}
@keyframes fbFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.feedback-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.feedback-x {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s, transform 0.15s;
}
.feedback-x:hover { color: #ff6b6b; transform: scale(1.1); }
.feedback-name, .feedback-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.feedback-name:focus, .feedback-text:focus { border-color: rgba(0, 200, 255, 0.5); }
.feedback-actions { display: flex; justify-content: flex-end; }
.feedback-send {
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.feedback-send:hover { background: #33d6ff; transform: scale(1.05); }
.feedback-thanks {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-align: center;
  padding: 6px 0;
}

.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comments-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}
.comment-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.comment-item:hover {
  border-color: rgba(0, 200, 255, 0.25);
  background: rgba(0, 200, 255, 0.03);
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.comment-stars {
  color: #f5a623;
  font-size: 13px;
  letter-spacing: 1px;
}
.comment-date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.comment-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.comment-reply-btn,
.comment-toggle-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: 0.3px;
  transition: color 0.15s, opacity 0.15s;
}
.comment-reply-btn:hover,
.comment-toggle-btn:hover { color: #33d6ff; opacity: 0.9; }
.comment-toggle-btn { margin-left: auto; }

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 10px;
  animation: fbFadeIn 0.2s ease-out;
}
.reply-name, .reply-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.reply-name:focus, .reply-text:focus { border-color: rgba(0, 200, 255, 0.5); }
.reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.reply-cancel, .reply-send {
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s, color 0.15s;
}
.reply-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.reply-cancel:hover { color: #ff6b6b; border-color: rgba(255, 80, 80, 0.4); }
.reply-send {
  background: var(--cyan);
  color: #000;
}
.reply-send:hover { background: #33d6ff; transform: scale(1.05); }

.replies-list {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 200, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.replies-list.hidden { display: none; }
.reply-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(0, 200, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}
.reply-item .comment-head { margin-bottom: 4px; }
.reply-item .comment-name { font-size: 13px; }
.reply-item .comment-text { font-size: 13px; }

.combo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.combo-card {
  background: #0f161e;
  border: 1px solid rgba(0,200,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  width: 280px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.combo-card:hover {
  border-color: rgba(0,200,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,200,255,0.1);
}
.combo-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #080c10;
}
.combo-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.combo-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.combo-card-meta {
  font-size: 11px;
  font-weight: 600;
  color: #4a6070;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.combo-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8f0f8;
  margin: 0;
}
.combo-card-desc {
  font-size: 13px;
  color: #7a96b0;
  line-height: 1.55;
  margin: 0 0 8px;
}
.btn-combo-dl {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  background: #0f161e;
  color: #e8f0f8;
  border: 1px solid rgba(0,200,255,0.25);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-combo-dl:hover {
  border-color: rgba(0,200,255,0.6);
  background: rgba(0,200,255,0.08);
  color: #00c8ff;
}

/* ===========================
   SHOP / CARRITO
=========================== */

.shop {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 100px 32px;
}

.shop-layout {
    max-width: 760px;
    margin: 0 auto;
}

.shop-catalog {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s ease;
}

.shop-card:hover {
    border-color: var(--border-hover);
}

.shop-card-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    background: rgba(0, 200, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-card-info {
    flex: 1;
    min-width: 0;
}

.shop-card-name {
    font-size: 0.96rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.shop-card-type {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.shop-sizes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.size-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}

.size-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.size-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #051218;
}

.shop-add-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.shop-extras-wrap {
    margin-top: 12px;
    border-top: 1px dashed rgba(0, 200, 255, 0.15);
    padding-top: 10px;
}
.shop-extras-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.15s;
}
.shop-extras-toggle:hover { opacity: 0.85; }
.extras-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.7rem;
}
.shop-extras-wrap.open .extras-arrow { transform: rotate(90deg); }
.shop-extras {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shop-extras[hidden], .shop-extra-sub[hidden] { display: none; }
.shop-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.shop-extra:hover { background: rgba(0, 200, 255, 0.04); border-color: rgba(0, 200, 255, 0.12); }
.shop-extra input { position: absolute; opacity: 0; pointer-events: none; }
.extra-check, .extra-radio {
    width: 16px; height: 16px;
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.extra-check { border-radius: 4px; }
.extra-radio { border-radius: 50%; }
.shop-extra input:checked ~ .extra-check,
.shop-mapa11 input:checked ~ .extra-check {
    background: var(--accent);
    border-color: var(--accent);
}
.shop-extra input:checked ~ .extra-check::after,
.shop-mapa11 input:checked ~ .extra-check::after {
    content: '✓';
    color: #051218;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
.shop-extra input:checked ~ .extra-radio::after {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.extra-label {
    flex: 1;
    line-height: 1.35;
}
.extra-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}
.shop-extra-group { display: flex; flex-direction: column; }
.shop-extra-sub {
    margin-top: 4px;
    margin-left: 26px;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 200, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.shop-extra-sub-item {
    font-size: 0.78rem;
    padding: 5px 10px;
}

.cart-item-extras {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.cart-item-extras li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    line-height: 1.35;
}
.cart-item-extras li span {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.shop-mapa11 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 200, 255, 0.15);
    background: rgba(0, 200, 255, 0.04);
    transition: background 0.15s, border-color 0.15s;
}
.shop-mapa11:hover {
    background: rgba(0, 200, 255, 0.08);
    border-color: rgba(0, 200, 255, 0.3);
}
.shop-mapa11 input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cart-item-mapa11 {
    display: inline-block;
    margin-left: 8px;
    background: rgba(0, 200, 255, 0.15);
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.cart-desc-wrap {
    margin: 14px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-desc-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cart-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    resize: vertical;
    min-height: 64px;
    line-height: 1.4;
    transition: border-color 0.15s;
}
.cart-desc:focus {
    border-color: rgba(0, 200, 255, 0.5);
}
.cart-desc-counter {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.cart-desc-counter.valid {
    color: var(--accent);
}

.price-note {
    margin: 18px auto 0;
    max-width: 720px;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: left;
}
.price-note summary {
    cursor: pointer;
    list-style: none;
    color: var(--accent);
    font-weight: 600;
    padding: 6px 0;
    transition: opacity 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.price-note summary::-webkit-details-marker { display: none; }
.price-note summary::before {
    content: '›';
    display: inline-block;
    transition: transform 0.2s;
    font-size: 1rem;
}
.price-note[open] summary::before { transform: rotate(90deg); }
.price-note summary:hover { opacity: 0.85; }
.price-note ul {
    margin: 8px 0 0;
    padding-left: 22px;
    line-height: 1.6;
}
.price-note li { margin-bottom: 2px; }

.cart-coupon-wrap {
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-coupon-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cart-coupon-row {
    display: flex;
    gap: 6px;
}
.cart-coupon-input {
    flex: 1;
    min-width: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 8px;
    color: var(--text);
    padding: 9px 12px;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: border-color 0.15s;
}
.cart-coupon-input:focus { border-color: rgba(0, 200, 255, 0.5); }
.cart-coupon-input:disabled { opacity: 0.55; cursor: not-allowed; }
.cart-coupon-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.cart-coupon-btn:hover {
    background: var(--accent);
    color: #051218;
}
.cart-coupon-msg {
    font-size: 0.74rem;
    min-height: 14px;
    line-height: 1.3;
}
.cart-coupon-msg.ok { color: var(--accent); font-weight: 600; }
.cart-coupon-msg.err { color: #ff6b6b; }
.cart-coupon-msg.pending { color: var(--text-muted); font-style: italic; }

.cart-total-strike {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    margin-right: 6px;
}

.legal-page {
    min-height: calc(100vh - 200px);
    padding: 120px 24px 60px;
    background: var(--bg-2);
}
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text);
    line-height: 1.65;
}
.legal-content h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 0;
    margin-bottom: 30px;
}
.legal-content h2 {
    font-size: 1.15rem;
    color: #e8f0f8;
    margin-top: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}
.legal-content p, .legal-content li {
    font-size: 0.95rem;
    color: #c5d2dc;
}
.legal-content ul {
    padding-left: 22px;
    margin: 8px 0 16px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content a {
    color: var(--accent);
    text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }
.legal-content code {
    background: rgba(0, 200, 255, 0.08);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}
.legal-back {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.donations {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 90px 32px;
    text-align: center;
}
.donations .section-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}
.donations-extra {
    display: inline-block;
    font-size: 0.36em;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.4em;
    vertical-align: bottom;
    transform: translateY(-0.15em);
    letter-spacing: 0;
    font-style: italic;
}

.btn-paid-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.btn-paid {
    background: rgba(245, 166, 35, 0.08);
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.4);
    cursor: not-allowed;
    opacity: 0.85;
    white-space: nowrap;
}
.btn-paid:hover {
    transform: none;
    box-shadow: none;
    background: rgba(245, 166, 35, 0.08);
}
.btn-paid-price {
    font-weight: 800;
    margin-left: 4px;
}
.btn-paid-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.02em;
}
.donation-amounts {
    max-width: 720px;
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.donation-amounts .donation-btn {
    flex: 1 1 calc((100% - 72px) / 7);
    min-width: 80px;
}
.donation-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 22px 8px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid rgba(0, 200, 255, 0.18);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    letter-spacing: -0.02em;
}
.donation-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #051218;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 200, 255, 0.2);
}
.donation-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
.donation-custom {
    max-width: 720px;
    margin: 14px auto 0;
    display: flex;
    gap: 12px;
}
.donation-custom-input {
    flex: 1;
    min-width: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: var(--card);
    border: 1px solid rgba(0, 200, 255, 0.18);
    border-radius: 14px;
    color: var(--text);
    padding: 18px 20px;
    outline: none;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.donation-custom-input:focus {
    border-color: var(--accent);
    background: rgba(0, 200, 255, 0.04);
}
.donation-custom-input::-webkit-outer-spin-button,
.donation-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.donation-custom-input { -moz-appearance: textfield; appearance: textfield; }
.donation-custom-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0 28px;
    border-radius: 14px;
    background: var(--accent);
    color: #051218;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.donation-custom-btn:hover {
    background: #33d6ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 255, 0.2);
}
.donation-custom-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.donation-note {
    max-width: 540px;
    margin: 24px auto 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 480px) {
    .donation-custom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 720px) {
    .donation-amounts .donation-btn {
        flex: 1 1 calc((100% - 24px) / 3);
    }
}
@media (max-width: 420px) {
    .donation-amounts .donation-btn {
        flex: 1 1 calc((100% - 12px) / 2);
    }
}

.requirements-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 200, 255, 0.04);
    border: 1px solid rgba(0, 200, 255, 0.18);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 16px 20px;
}
.requirements-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.requirements-box p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--bg-2);
}
.success-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    width: 100%;
}
.success-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
}
.success-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 16px;
}
.success-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 14px;
}
.success-sub {
    color: var(--text-muted) !important;
    font-size: 0.84rem !important;
    font-style: italic;
}
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.nav-cart-wrap { position: relative; }
.nav-cart-btn {
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,200,255,0.18);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #cfd9e3;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-cart-btn:hover {
    border-color: rgba(0,200,255,0.5);
    color: var(--accent);
    background: rgba(0,200,255,0.1);
}
.nav-cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: #051218;
    border: 2px solid var(--bg-2, #0d1117);
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 0 rgba(0,200,255,0.5);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-cart-badge.empty { background: rgba(255,255,255,0.12); color: var(--text-muted); }
.nav-cart-badge.bump { animation: cartBump 0.4s ease; }
@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-drawer {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid rgba(0,200,255,0.18);
    border-radius: 14px;
    padding: 20px;
    z-index: 200;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    animation: fbFadeIn 0.18s ease-out;
}
.cart-drawer.open { display: block; }

.cart-drawer-count {
    margin-left: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0,200,255,0.08);
    border: 1px solid rgba(0,200,255,0.18);
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.3;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cart-title {
    font-size: 0.96rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-empty-msg {
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cart-item-size {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s ease;
    margin-top: 1px;
}

.cart-item-remove:hover {
    color: #ff6b6b;
}

.cart-footer {
    margin-top: 4px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 14px;
    border-top: 1px solid var(--border);
}

.cart-total-label {
    font-size: 0.84rem;
    color: var(--text-dim);
}

.cart-total-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.cart-contact-btn,
.cart-checkout-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.35;
    padding: 13px 16px;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
    min-width: 0;
}
.cart-checkout-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none !important;
}
.cart-checkout-hint {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}
.cart-contact-fallback {
    margin-top: 14px;
    border-top: 1px dashed rgba(0, 200, 255, 0.15);
    padding-top: 12px;
}
.cart-contact-fallback summary {
    font-size: 0.78rem;
    color: var(--accent);
    cursor: pointer;
    padding: 4px 0;
    font-weight: 600;
    list-style: none;
    text-align: center;
}
.cart-contact-fallback summary::-webkit-details-marker { display: none; }
.cart-contact-fallback summary::before {
    content: '› ';
    transition: transform 0.2s;
    display: inline-block;
}
.cart-contact-fallback[open] summary::before { transform: rotate(90deg); }
.cart-contact-fallback[open] > :not(summary) { margin-top: 10px; }

.cart-contact-panel {
    margin-top: 14px;
    animation: fbFadeIn 0.2s ease-out;
}

.cart-contact-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
}

.cart-contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(0, 200, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.cart-contact-option:hover {
    border-color: var(--border-hover);
    background: var(--accent-soft);
}

.cart-contact-option-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-contact-option-label {
    font-size: 0.84rem;
    font-weight: 700;
}

.cart-contact-option-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.shop-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--card);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 9999;
    max-width: 280px;
}

.shop-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .shop {
        padding: 70px 20px;
    }
    .cart-drawer {
        width: calc(100vw - 24px);
        right: -8px;
    }
    .shop-card {
        flex-wrap: wrap;
    }
    .shop-add-btn {
        width: 100%;
        justify-content: center;
    }
}
