/* --- Homepage Premium Redesign --- */

:root {
    --mylands-color: #00c896;
    --mycommands-color: #5865f2;
    --myeconomy-color: #f1c40f;
    --mylands-glow: rgba(0, 200, 150, 0.4);
    --mycommands-glow: rgba(88, 101, 242, 0.4);
    --myeconomy-glow: rgba(241, 196, 15, 0.4);
}

/* --- Hero Premium Redesign --- */
.hero-modern {
    padding: 8rem 0 6rem !important;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 200, 150, 0.1), transparent 55%),
        radial-gradient(ellipse at 20% 50%, rgba(88, 101, 242, 0.05), transparent 50%);
}

.hero-bg-anim {
    background:
        radial-gradient(circle at 10% 20%, rgba(88, 101, 242, 0.04), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 200, 150, 0.04), transparent 40%);
    animation: hero-pulse 10s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
}

/* Badge */
.hero-badge-modern {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 150, 0.08) !important;
    border: 1px solid rgba(0, 200, 150, 0.25) !important;
    color: var(--accent) !important;
    padding: 8px 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 50px !important;
    backdrop-filter: blur(8px);
    margin-bottom: 2rem !important;
}

.hero-badge-modern i {
    font-size: 0.7rem;
}

/* Title */
.hero-title-modern {
    font-size: clamp(2.5rem, 5.5vw, 4rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-shimmer 6s ease-in-out infinite;
}

@keyframes title-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Brand Highlight */
.hero-brand {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--accent), #5865f2, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: brand-gradient 4s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(0, 200, 150, 0.3));
}

@keyframes brand-gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Subtitle */
.hero-subtitle-modern {
    font-size: 1.1rem !important;
    color: var(--text-muted) !important;
    max-width: 500px;
    margin: 0 auto 2.5rem !important;
    line-height: 1.6;
    font-weight: 400;
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-actions .btn {
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-actions .btn-primary {
    background: var(--accent) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 200, 150, 0.3) !important;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 200, 150, 0.45) !important;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* --- Stats Enhancement --- */
.stat-card-glass {
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01) !important;
}

.stat-card-glass:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 200, 150, 0.1) !important;
}

/* --- Plugins Section Redesign --- */
.plugins-section-modern {
    padding: 5rem 0;
    position: relative;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-modern {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.plugins-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Compact Premium Card */
.plugin-card-premium {
    position: relative;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    background: rgba(22, 27, 34, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.plugin-card-premium:hover {
    transform: translateY(-6px);
    background: rgba(22, 27, 34, 0.65) !important;
}

/* Dynamic Accent Glows */
.plugin-card-premium[data-plugin="mylands"]:hover {
    border-color: var(--mylands-color) !important;
    box-shadow: 0 12px 40px -10px var(--mylands-glow) !important;
}

.plugin-card-premium[data-plugin="mycommands"]:hover {
    border-color: var(--mycommands-color) !important;
    box-shadow: 0 12px 40px -10px var(--mycommands-glow) !important;
}

.plugin-card-premium[data-plugin="myeconomy"]:hover {
    border-color: var(--myeconomy-color) !important;
    box-shadow: 0 12px 40px -10px var(--myeconomy-glow) !important;
}

.plugin-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plugin-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    transition: all 0.4s ease;
}

.plugin-card-premium:hover .plugin-icon-box {
    color: #fff;
    background: var(--accent) !important;
    transform: rotate(8deg) scale(1.05);
}

.plugin-info h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px;
}

.plugin-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    flex-grow: 1;
}

.plugin-stats-modern {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0 0;
}

.plugin-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plugin-stat-item i {
    color: var(--accent);
    font-size: 0.8rem;
}

.plugin-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-plugin {
    flex: 1;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-align: center;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
}

.btn-plugin-primary {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.2) !important;
}

.btn-plugin-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.3) !important;
}

.btn-plugin-secondary {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    backdrop-filter: blur(8px);
}

.btn-plugin-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* --- Redesigned Footer Content --- */
.plugin-card-premium .badge-new {
    background: linear-gradient(135deg, var(--accent), #00e676) !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 200, 150, 0.3) !important;
}

/* --- Discord Live Indicator --- */
.discord-badge {
    position: relative;
    overflow: hidden;
}

.discord-feature span#discord-count {
    position: relative;
    color: var(--text-light);
    font-weight: 800;
}

.discord-feature span#discord-count::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00c853;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #00c853;
    animation: flash 2s infinite;
    vertical-align: middle;
    margin-top: -2px;
}

@keyframes flash {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* --- Buttons --- */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Advanced Hero & Stats Redesign --- */

/* Hero Aura Background Blobs */
.hero-aura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-aura-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: aura-float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #5865f2;
    bottom: -50px;
    right: -100px;
    animation-duration: 18s;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #f1c40f;
    top: 40%;
    left: 60%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes aura-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) scale(1.2) rotate(45deg);
    }

    66% {
        transform: translate(-50px, 150px) scale(0.9) rotate(-30deg);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1) rotate(20deg);
    }
}

/* Typography Shimmer */
.hero-title-modern {
    position: relative;
    background: linear-gradient(135deg, #fff 20%, #888 40%, #fff 60%, #888 80%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 8s linear infinite;
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

/* --- Advanced Stat Cards (3D Tilt & Glow) --- */
.stats-grid-modern {
    perspective: 1000px;
}

.stat-card-glass {
    --rx: 0deg;
    --ry: 0deg;
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Glass Sweep Light Effect */
.stat-card-glass .glass-sweep {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
}

.stat-card-glass:hover .glass-sweep {
    animation: glass-sweep 0.8s ease-in-out;
}

@keyframes glass-sweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.stat-icon-modern,
.stat-value-modern,
.stat-label-modern {
    transform: translateZ(30px);
    /* Increased depth for parallax */
    transition: transform 0.1s ease-out;
}

/* Shine overlay following mouse (JS will help here too) */
.stat-card-glass .shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-glass:hover .shine {
    opacity: 1;
}

/* --- Buttons Enhancement --- */
.btn-glow {
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}