/* ============================================ */
/* LUDERE MC – MODERNÍ STYLY S ANIMACEMI        */
/* ============================================ */

/* RESET & VARIABLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* --- Hlubinná obsidiánová základna --- */
    --bg: #07100c;
    --bg-2: #0c1813;
    --bg-3: #13221b;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    /* --- Skutečné "ore" barvy --- */
    --emerald: #22c55e;
    --emerald-light: #86efac;
    --emerald-dark: #14532d;
    --emerald-glow: rgba(34, 197, 94, 0.35);
    --emerald-soft: rgba(34, 197, 94, 0.09);
    --gold: #fbbf24;
    --gold-light: #fde68a;
    --gold-glow: rgba(251, 191, 36, 0.32);
    --gold-soft: rgba(251, 191, 36, 0.09);
    --diamond: #22d3ee;
    --diamond-light: #a5f3fc;
    --diamond-glow: rgba(34, 211, 238, 0.3);
    --redstone: #ef4444;

    --text: #eef5f0;
    --text-2: #9caa9f;
    --text-3: #576259;

    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    /* Zpětná kompatibilita se starším pojmenováním */
    --purple: var(--emerald);
    --purple-light: var(--emerald-light);
    --purple-dark: var(--emerald-dark);
    --purple-glow: var(--emerald-glow);
    --purple-soft: var(--emerald-soft);
}

/* Nativní fade přechod mezi stránkami (Chromium) – progresivní vylepšení */
@view-transition {
    navigation: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(ellipse 60% 40% at 15% 10%, rgba(34, 197, 94, 0.07), transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 15%, rgba(34, 211, 238, 0.045), transparent 50%),
        radial-gradient(ellipse 45% 30% at 50% 100%, rgba(251, 191, 36, 0.035), transparent 55%);
    animation: pageFadeIn 0.6s ease both;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #16281f;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-dark);
}

::selection {
    background: var(--emerald);
    color: #04120b;
}

/* ============================================ */
/* TYPOGRAPHY                                    */
/* ============================================ */
h1, h2, h3, h4 {
    font-family: 'Fraunces', sans-serif;
}

.pixel-tag {
    font-family: 'Silkscreen', monospace;
    letter-spacing: 1px;
}

/* ============================================ */
/* MODERNÍ BUTTONY                               */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    outline: none;
    transform: translateY(0);
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px var(--emerald-glow);
}

/* Shimmer efekt na pozadí tlačítek */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 200%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, #15a34a 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 10px 28px var(--emerald-glow), 0 4px 12px rgba(34, 197, 94, 0.4);
    transform: translateY(-3px);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: var(--bg-glass-2);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.5), 0 4px 12px rgba(88, 101, 242, 0.3);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-pill {
    border-radius: 99px;
    padding: 10px 20px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.hero-discord-btn {
    background: var(--bg-glass-2);
    color: var(--text);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(8px);
    transition: background var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.hero-discord-btn i {
    color: #5865F2;
    font-size: 1.1rem;
    transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.hero-discord-btn:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.55);
    box-shadow: 0 0 26px rgba(88, 101, 242, 0.3), 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.hero-discord-btn:hover i {
    transform: scale(1.2) rotate(-6deg);
    color: #8b9cff;
}

/* ============================================ */
/* NAVBAR                                        */
/* ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 68px;
    background: rgba(7, 16, 12, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(7, 16, 12, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-family: 'Fraunces', sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    transition: opacity var(--transition);
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-brand img {
    transition: transform var(--transition);
}

.nav-brand:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-glass);
}

.nav-links a.active {
    color: var(--emerald-light);
    background: var(--emerald-soft);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
}

/* ============================================ */
/* NAVBAR – WIKI VARIANTA (logo, user menu, mobile) */
/* ============================================ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
    transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo-text { white-space: nowrap; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 99px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.user-trigger:hover {
    background: var(--bg-glass);
    border-color: var(--border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-3);
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    font-size: 1rem;
    color: var(--text-3);
    transition: transform var(--transition);
}

.user-menu.open .user-chevron { transform: rotate(180deg); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.25s;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.dropdown-item:hover { background: var(--bg-glass-2); color: var(--text); }
.dropdown-item.danger { color: #fca5a5; }
.dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.12); color: #f87171; }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 4px;
}

.mobile-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 8999;
    background: rgba(7, 16, 12, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.mobile-menu a:hover { background: var(--bg-glass-2); color: var(--text); }

@media (min-width: 901px) {
    .mobile-menu { display: none; }
}

/* ============================================ */
/* HERO SECTION                                  */
/* ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('img/background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.1s ease-out;
    will-change: transform;
}

.hero-bg-img.active {
    opacity: 0.25;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 50% at center, black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at center, black 20%, transparent 60%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 60%);
    top: 10%;
    left: -10%;
    z-index: 1;
    filter: blur(80px);
    animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 60%);
    bottom: 5%;
    right: -5%;
    z-index: 1;
    filter: blur(60px);
    animation: heroGlowPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlowPulse {
    0% { opacity: 0.6; transform: scale(1) translate(0, 0); }
    100% { opacity: 1; transform: scale(1.15) translate(30px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-soft);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 99px;
    padding: 6px 16px 6px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald-light);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--emerald-light) 50%, var(--diamond) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 40px;
    flex-wrap: wrap;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Fraunces', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-3);
    font-weight: 500;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* ANNOUNCEMENTS STRIP                           */
/* ============================================ */
.announcements-strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.announcements-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.announcements-strip-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--emerald-light);
    font-family: 'Silkscreen', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.announcements-strip-text {
    font-size: 0.85rem;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================ */
/* SECTION LAYOUT                                 */
/* ============================================ */
.section {
    padding: 100px 40px;
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Silkscreen', monospace;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--emerald-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 4px 12px;
    background: var(--emerald-soft);
    border-radius: 99px;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.section-title {
    font-family: 'Fraunces', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================ */
/* MINI FEATURES                                  */
/* ============================================ */
.features-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-mini-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all var(--transition-smooth);
    cursor: default;
}

.feature-mini-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.15);
}

.feature-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--emerald-soft);
    color: var(--emerald-light);
    transition: all var(--transition-smooth);
}

.feature-mini-card:hover .feature-mini-icon {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
    transform: scale(1.08);
}

.feature-mini-text h4 {
    font-family: 'Fraunces', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-mini-text p {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.5;
}

/* ============================================ */
/* FEATURE CARDS                                  */
/* ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--emerald-light), var(--diamond), var(--emerald-light));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-2);
    border-radius: inherit;
    z-index: -1;
    transition: background 0.5s;
}

.feature-card:hover::before {
    opacity: 0.5;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px -20px rgba(34, 197, 94, 0.3);
}

.slot-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(255, 255, 255, 0.14);
    opacity: 0;
    transition: opacity 0.4s ease, border-color 0.4s ease;
    pointer-events: none;
}

.slot-corner-tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.slot-corner-br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }

.feature-card:hover .slot-corner {
    opacity: 1;
    border-color: var(--emerald-light);
}

.feature-card .glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald-light), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s ease;
}

.feature-card:hover .glow-line {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-smooth);
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
}

.feature-card:hover .feature-icon {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.4);
    transform: scale(1.08) rotate(-5deg);
}

.feature-card h3 {
    font-family: 'Fraunces', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* DISCORD CTA                                    */
/* ============================================ */
.discord-cta {
    padding: 0 40px 100px;
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.discord-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(34, 197, 94, 0.09) 100%);
    border: 1px solid rgba(88, 101, 242, 0.22);
    border-radius: var(--radius-xl);
    padding: 60px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
}

.discord-cta-inner:hover {
    border-color: rgba(88, 101, 242, 0.45);
    box-shadow: 0 0 60px rgba(88, 101, 242, 0.18);
    transform: translateY(-4px);
}

.discord-cta-inner::before {
    content: '\ed1c';
    font-family: 'boxicons';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 260px;
    color: rgba(88, 101, 242, 0.05);
    pointer-events: none;
    line-height: 1;
    animation: floatDiscordIcon 6s ease-in-out infinite;
}

@keyframes floatDiscordIcon {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-55%) rotate(4deg); }
}

.discord-cta-text h2 {
    font-family: 'Fraunces', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.discord-cta-text p {
    color: var(--text-2);
    font-size: 1rem;
}

.btn-discord-pulse {
    position: relative;
}

.btn-discord-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    border: 2px solid rgba(88, 101, 242, 0.5);
    animation: discordPulse 2.5s ease-out infinite;
}

@keyframes discordPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================ */
/* MAP SECTION                                    */
/* ============================================ */
.map-section {
    padding: 0 40px 100px;
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.map-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.map-iframe-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.05);
    transition: all var(--transition-smooth);
    position: relative;
}

.map-iframe-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), transparent);
    pointer-events: none;
}

.map-iframe-wrap:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.15);
    transform: translateY(-6px);
}

.map-iframe-wrap iframe {
    width: 100%;
    height: 560px;
    border: none;
    display: block;
}

/* ============================================ */
/* WIKI CONTENT                                   */
/* ============================================ */
.wiki-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wiki-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.wiki-meta {
    font-size: 0.82rem;
    color: var(--text-3);
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.wiki-meta .type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.default { background: var(--emerald-soft); color: var(--emerald-light); }
.type-badge.important { background: rgba(239, 68, 68, 0.12); color: var(--redstone); }
.type-badge.warning { background: rgba(251, 191, 36, 0.1); color: var(--gold); }

.wiki-body {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text);
}

.wiki-body p {
    margin-bottom: 16px;
}

.wiki-body a {
    color: var(--emerald-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wiki-body a:hover {
    color: var(--emerald);
}

.wiki-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-3);
}

.wiki-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.wiki-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-2);
}

.wiki-page-list {
    display: grid;
    gap: 14px;
}

.wiki-page-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wiki-page-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.12);
}

.wiki-page-card a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition);
}

.wiki-page-card a:hover {
    color: var(--emerald-light);
}

.wiki-page-card .page-meta {
    font-size: 0.78rem;
    color: var(--text-3);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ============================================ */
/* FOOTER                                         */
/* ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition), transform var(--transition);
}

.footer-logo:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.footer-logo img {
    transition: transform var(--transition);
}

.footer-logo:hover img {
    transform: rotate(-8deg) scale(1.1);
}

.footer-copy {
    color: var(--text-3);
    font-size: 0.82rem;
}

.footer-made {
    font-size: 0.8rem;
    color: var(--text-3);
}

.footer-made span {
    color: var(--emerald-light);
    font-weight: 600;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================ */
/* TOAST                                          */
/* ============================================ */
#toast-root {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(12, 24, 19, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    min-width: 300px;
    max-width: 380px;
    animation: toast-in 0.4s var(--transition-bounce);
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.toast.hiding {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-icon.success { background: rgba(34, 197, 94, 0.15); color: var(--emerald); }
.toast-icon.error { background: rgba(239, 68, 68, 0.15); color: var(--redstone); }
.toast-icon.info { background: rgba(34, 211, 238, 0.15); color: var(--diamond); }
.toast-icon.warning { background: rgba(251, 191, 36, 0.15); color: var(--gold); }

.toast-body { flex: 1; min-width: 0; }

.toast-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 3px;
}

.toast-msg {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.45;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin-top: 1px;
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
}

.toast-close:hover {
    color: var(--text);
    transform: scale(1.2);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--emerald);
}

.toast.success .toast-progress { background: var(--emerald); }
.toast.error .toast-progress { background: var(--redstone); }
.toast.warning .toast-progress { background: var(--gold); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ============================================ */
/* MODAL                                          */
/* ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 4, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.modal {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(30px) scale(0.94);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.show .modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    outline: none;
}

.form-input::placeholder { color: var(--text-3); }

.form-input:focus {
    border-color: var(--emerald);
    background: var(--emerald-soft);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
    transform: scale(1.01);
}

textarea.form-input { min-height: 110px; resize: vertical; }

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-2);
    transition: all 0.2s;
}

.type-option i { font-size: 1.2rem; }

.type-option:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.type-option.selected {
    border-color: var(--emerald);
    background: var(--emerald-soft);
    color: var(--text);
    box-shadow: 0 0 12px rgba(34,197,94,0.15);
}

.type-option.t-warning.selected { border-color: var(--gold); background: rgba(251, 191, 36, 0.08); }
.type-option.t-important.selected { border-color: var(--redstone); background: rgba(239, 68, 68, 0.08); }

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-2);
    transition: color var(--transition);
}

.check-row:hover {
    color: var(--text);
}

.check-row input {
    accent-color: var(--emerald);
    width: 16px;
    height: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

/* ============================================ */
/* ADMIN BAR                                      */
/* ============================================ */
#adminBar {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(7, 16, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
}

#adminBar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.admin-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--emerald-light);
}

.admin-bar-left i {
    font-size: 1.2rem;
}

.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================ */
/* SCROLL ANIMATIONS                              */
/* ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].visible { transform: translateX(0); }

[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].visible { transform: translateX(0); }

[data-reveal="scale"] { transform: scale(0.9) translateY(30px); }
[data-reveal="scale"].visible { transform: scale(1) translateY(0); }

[data-stagger]>* {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-stagger].visible>*:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
[data-stagger].visible>*:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
[data-stagger].visible>*:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
[data-stagger].visible>*:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
[data-stagger].visible>*:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
[data-stagger].visible>*:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }
[data-stagger].visible>*:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.48s; }
[data-stagger].visible>*:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.56s; }
[data-stagger].visible>*:nth-child(n+9) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

/* ============================================ */
/* RESPONSIVE                                     */
/* ============================================ */
@media (max-width: 1024px) {
    .hero-visual { display: none; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .navbar { padding: 0 20px; }
}

@media (max-width: 768px) {
    .hero { padding: 110px 20px 60px; }
    .section { padding: 60px 20px; }
    .discord-cta { padding: 0 20px 60px; }
    .discord-cta-inner { padding: 40px 28px; flex-direction: column; text-align: center; }
    .map-section { padding: 0 20px 60px; }
    .footer { padding: 30px 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .hero-stats { gap: 8px 0; }
    .stat-divider { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .announcements-strip-inner { padding: 16px 20px; }
    .features-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .toast { min-width: 0; max-width: calc(100vw - 40px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal], [data-stagger]>* { opacity: 1 !important; transform: none !important; }
    .hero-bg-img, .hero-bg-img.active { transition: opacity 1s ease !important; transform: none !important; }
}