/* ============================================
   MCAspect — Global Styles
   Minecraft Tools Hub Landing Page
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --bg-deep: #020603;
    --bg-surface: #0a0d0b;
    --bg-card: #0f1310;
    --bg-card-hover: #141a16;
    --border: rgba(16, 185, 129, 0.12);
    --border-hover: rgba(16, 185, 129, 0.3);

    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #022c22;

    --text-primary: #e2e8e4;
    --text-secondary: #9aa39e;
    --text-muted: #5d665f;

    --nether-500: #ef4444;
    --nether-600: #dc2626;
    --end-500: #a855f7;
    --end-600: #9333ea;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --container: 1280px;
    --section-pad: clamp(60px, 8vw, 120px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Particles ---------- */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}


.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0);
    }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(2, 6, 3, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 6, 3, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease-spring);
}

.logo:hover .logo-icon {
    transform: rotate(90deg);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--emerald-500);
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.08);
}

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

.version-badge {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--emerald-400);
    letter-spacing: 0.05em;
}

.nav-cta {
    padding: 8px 20px;
    background: var(--emerald-500);
    color: var(--bg-deep);
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.02em;
    transition: all 0.25s var(--ease-out);
}

.nav-cta:hover {
    background: var(--emerald-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: rgba(2, 6, 3, 0.98);
    border-bottom: 1px solid var(--border);
}

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

.mobile-link {
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-link:hover {
    color: var(--emerald-400);
}

.mobile-cta {
    margin-top: 16px;
    text-align: center;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    animation-delay: -3s;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, transparent 70%);
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: heroRise 0.8s var(--ease-out) both;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald-400);
    letter-spacing: 0.05em;
    animation: heroRise 0.8s var(--ease-out) 0.1s both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-500);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: heroRise 0.8s var(--ease-out) 0.15s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-300) 50%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: heroRise 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: heroRise 0.8s var(--ease-out) 0.25s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

.btn-primary {
    background: var(--emerald-500);
    color: var(--bg-deep);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}

.btn-primary:hover {
    background: var(--emerald-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.08);
    color: var(--emerald-400);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 14px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: heroRise 0.8s var(--ease-out) 0.35s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 800;
    color: var(--emerald-400);
    letter-spacing: -0.02em;
}

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: heroRise 0.8s var(--ease-out) 0.5s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--emerald-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.4; height: 25px; }
}

/* ---------- Seed Section ---------- */
.seed-section {
    position: relative;
    padding: 0 0 var(--section-pad);
    margin-top: -40px;
    z-index: 10;
}

.seed-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
}

.seed-card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.seed-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    transition: border-color 0.3s ease;
}

.seed-input-wrapper:focus-within {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.seed-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.seed-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-primary);
    padding: 12px 0;
}

.seed-input::placeholder {
    color: var(--text-muted);
}

.seed-random-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.seed-random-btn:hover {
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.1);
}

.seed-go-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    background: var(--emerald-500);
    color: var(--bg-deep);
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.25s var(--ease-out);
}

.seed-go-btn:hover {
    background: var(--emerald-400);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.seed-version-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.version-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.version-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.version-chip {
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
}

.version-chip:hover {
    border-color: var(--border-hover);
    color: var(--emerald-400);
}

.version-chip.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-400);
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--emerald-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- Popular Tools ---------- */
.tools-section {
    padding: 0 0 var(--section-pad);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.popular-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
}

.popular-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.popular-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.popular-card:hover .popular-card-bg {
    opacity: 1;
}

.popular-biome .popular-card-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
}

.popular-slime .popular-card-bg {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05) 0%, transparent 60%);
}

.popular-village .popular-card-bg {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
}

.popular-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.06);
    border-radius: 14px;
    transition: transform 0.3s var(--ease-spring);
}

.popular-card:hover .popular-icon {
    transform: scale(1.1);
}

.popular-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.popular-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.popular-arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.popular-card:hover .popular-arrow {
    color: var(--emerald-400);
    transform: translateX(4px);
}

/* ---------- Ore Distribution Section ---------- */
.ore-section {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.ore-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.dimension-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.dim-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}

.dim-btn.active {
    background: var(--emerald-500);
    color: var(--bg-deep);
}

.dim-btn:not(.active):hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.dim-icon {
    font-size: 16px;
}

.dim-icon-img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    object-fit: contain;
}


/* Ore Chart */
.ore-chart-container {
    position: relative;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.ore-chart {
    position: relative;
    display: flex;
    height: 500px;
    padding: 20px 20px 20px 0;
}

.y-axis {
    position: relative;
    width: 50px;
    flex-shrink: 0;
}

.y-label {
    position: absolute;
    right: 8px;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.chart-area {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.deepslate-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 3;
}

.deepslate-label {
    position: absolute;
    right: 0;
    top: -20px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Ore columns */
.ore-columns {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 20px;
    z-index: 2;
}

.ore-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ore-column:hover .ore-bar {
    filter: brightness(1.3);
    box-shadow: 0 0 20px var(--ore-color);
}

.ore-bar-wrapper {
    position: relative;
    width: 40px;
}

.ore-bar {
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    transition: all 0.4s var(--ease-out);
    position: absolute;
    bottom: 0;
}

.ore-peak {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
    z-index: 5;
    animation: peakPulse 2.5s ease-in-out infinite;
}

@keyframes peakPulse {
    0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { transform: translateX(-50%) scale(1.2); box-shadow: 0 0 8px rgba(255, 255, 255, 0.15); }
}

.ore-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ore-best-y {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--emerald-400);
    opacity: 0.8;
}

/* Scrubber */
.scrubber {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    cursor: ns-resize;
    touch-action: none;
}

.scrubber-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--emerald-500) 10%, var(--emerald-500) 90%, transparent 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: scrubGlow 3s ease-in-out infinite;
}

@keyframes scrubGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.scrubber-handle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    background: var(--emerald-500);
    border-radius: 6px;
    white-space: nowrap;
}

.scrubber-y {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-deep);
}

/* Ore Info Cards */
.ore-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ore-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.ore-info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ore-info-card.active {
    background: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}


.ore-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ore-info-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.ore-info-y {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald-400);
}

/* ---------- Finders Section ---------- */
.finders-section {
    padding: var(--section-pad) 0;
}

.finder-group {
    margin-bottom: 48px;
}

.finder-group:last-child {
    margin-bottom: 0;
}

.finder-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.group-icon {
    font-size: 22px;
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.finder-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
}

.finder-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--emerald-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.finder-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.finder-nether:hover {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.1);
}

.finder-end:hover {
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.1);
}

/* ---------- Extras Section ---------- */
.extras-section {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.extra-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
}

.extra-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.extra-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease-spring);
}

.extra-card:hover .extra-icon-wrap {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.extra-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.extra-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.extra-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-500);
    transition: color 0.2s ease;
}

.extra-card:hover .extra-link {
    color: var(--emerald-400);
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: var(--section-pad) 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: clamp(48px, 6vw, 80px) 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-actions {
    position: relative;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

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

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .ore-chart {
        height: 400px;
    }

    .ore-bar-wrapper {
        width: 28px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .seed-input-wrapper {
        flex-wrap: wrap;
    }

    .seed-go-btn {
        width: 100%;
        text-align: center;
    }

    .seed-version-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .ore-chart {
        height: 350px;
    }

    .ore-cards {
        grid-template-columns: 1fr;
    }

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

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--border-hover);
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.1);
}

.lang-globe {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lang-btn:hover .lang-globe {
    opacity: 1;
}

.lang-chevron {
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.lang-current {
    font-family: var(--font-mono);
    font-size: 11px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.2s var(--ease-out);
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}

.lang-option:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--emerald-400);
}

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

.lang-check {
    margin-left: auto;
    color: var(--emerald-500);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lang-option.active .lang-check {
    opacity: 1;
}

/* ---------- MinecraftMaps Ore Chart Animations ---------- */
@keyframes odColumnIn {
    from { opacity: 0; transform: scaleY(.85); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes odTwinkleA {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

@keyframes odTwinkleB {
    0%, 100% { opacity: .6; }
    50% { opacity: 1; }
}

@keyframes odScrubGlow {
    0%, 100% { opacity: .95; }
    50% { opacity: .55; }
}

@keyframes odPeakPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

#interactiveOreSvg circle {
    transform-box: fill-box;
    transform-origin: center;
}

/* Ore Sidebar floating info panel */
.ore-sidebar {
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 230px;
    background: rgba(9, 15, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid #10b981;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
    padding: 24px 20px;
    z-index: 10;
    color: #e2e8f0;
    font-family: var(--font-mono);
    opacity: 0;
    transform: translateX(-280px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.ore-sidebar.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ore-sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #8f9991;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s;
}

.ore-sidebar-close:hover {
    color: #ef4444;
}

/* Apps Directory Page */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.app-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.app-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.app-card:hover .app-card-icon {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.app-card-icon img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    object-fit: contain;
}

.app-card-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.app-card-title {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.app-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.app-card-btn {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.app-card:hover .app-card-btn {
    gap: 10px;
    color: #34d399;
}

/* ---------- Seed Map App ---------- */
.seed-map-container {
    display: flex;
    height: calc(100vh - 64px);
    margin-top: 64px;
    background: var(--bg-deep);
}

.seed-map-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-content {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input,
.control-group select {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    outline: none;
}

.input-with-button input:focus,
.control-group select:focus {
    border-color: var(--emerald-500);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: var(--emerald-400);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.coordinates-display {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coord-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coord-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coord-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--emerald-400);
}

.seed-map-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.map-toolbar {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 19, 16, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.canvas-wrapper:active {
    cursor: grabbing;
}

#seed-map-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

/* Hotfix for canvas wrapper */
.seed-map-main {
    display: flex;
    flex-direction: column;
}
.canvas-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
}
#seed-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Chunkbase Style Features Toolbar */
.features-toolbar {
    display: flex;
    align-items: center;
    background: #e6f0fa;
    border: 1px solid #b3d4f5;
    padding: 6px 12px;
    gap: 12px;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
    z-index: 10;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.features-label {
    color: #0056b3;
    font-weight: 600;
    font-size: 14px;
}

.feature-zoom-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.feature-zoom-btn:hover {
    background: #ffe8a1;
}

.features-icons {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.features-icons .icon-btn {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05);
}

.features-icons .icon-btn.active {
    background: #e2e6ea;
    border-color: #0056b3;
    border-width: 2px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.features-icons .icon-btn:hover {
    background: #e9ecef;
}

/* Ensure map fits nicely under the toolbar */
.seed-map-main {
    background: #0a0a0a;
    padding: 0;
}

.canvas-wrapper {
    border: none;
    border-radius: 0;
    background: #000;
    box-shadow: none;
}

.marker-popup {
    position: absolute;
    background: white;
    color: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    pointer-events: auto;
    z-index: 100;
    font-family: 'Inter', sans-serif;
    transform: translate(-50%, -100%); /* Shift up by its full height */
    margin-top: -10px; /* Space above the pin */
    min-width: 180px;
    font-size: 14px;
}
.marker-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 8px;
}
.popup-actions span {
    cursor: pointer;
    margin-left: 8px;
    color: #4f46e5;
}
.popup-coords {
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.copy-btn {
    cursor: pointer;
    color: #4f46e5;
}
.popup-biome {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.biome-color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}
.popup-details-btn {
    text-align: center;
    cursor: pointer;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.popup-details-btn:hover {
    background: #e5e7eb;
}
