/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* MU Online Dark Color Palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a0f0f;
    --bg-card: #1a1a1a;

    /* MU Online Accent Colors */
    --accent-primary: #ff3333;        /* MU Red */
    --accent-secondary: #ff8800;      /* MU Orange */
    --accent-gold: #ffaa00;           /* MU Gold */

    /* Gradient Colors */
    --gradient-red: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    --gradient-orange: linear-gradient(135deg, #ff8800 0%, #ff5500 100%);
    --gradient-fire: linear-gradient(135deg, #ff3333 0%, #ff8800 50%, #ffaa00 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;

    /* Status Colors */
    --success: #00ff00;
    --warning: #ffaa00;
    --error: #ff3333;

    /* Shadows and Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.95);
    --glow-red: 0 0 20px rgba(255, 51, 51, 0.6);
    --glow-orange: 0 0 20px rgba(255, 136, 0, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particle System Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md), 0 0 20px rgba(255, 51, 51, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 51, 51, 0.5));
}

.logo .highlight {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: -0.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,51,51,0.15)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.2) 0%, rgba(255, 136, 0, 0.1) 50%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.6))
            drop-shadow(0 0 40px rgba(255, 136, 0, 0.4));
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons with Premium Glow */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px rgba(255, 51, 51, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md),
                0 0 30px rgba(255, 51, 51, 0.9),
                0 0 60px rgba(255, 136, 0, 0.5);
    animation: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.4);
    animation: pulseGlowOrange 2.5s ease-in-out infinite;
}

.btn-secondary:hover {
    background: var(--accent-secondary);
    color: #000000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 136, 0, 0.9),
                0 0 60px rgba(255, 170, 0, 0.5);
    animation: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section.bg-dark {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 51, 51, 0.5));
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards with Glassmorphism */
.card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 51, 51, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border 0.4s ease;
    border: 1px solid rgba(255, 51, 51, 0.3);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.05) 0%, rgba(255, 136, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg),
                0 0 40px rgba(255, 51, 51, 0.6),
                0 0 60px rgba(255, 170, 0, 0.4);
    border: 1px solid rgba(255, 170, 0, 0.8);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2) 0%, rgba(255, 136, 0, 0.2) 100%);
    border-bottom: 2px solid var(--accent-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Class Cards */
.class-card .card-header {
    display: block;
}

.class-tag {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.dark-knight .class-tag {
    background: #dc2626;
}

.dark-wizard .class-tag {
    background: #7c3aed;
}

.elf .class-tag {
    background: #10b981;
}

.magic-gladiator .class-tag {
    background: #f59e0b;
}

.summoner .class-tag {
    background: #8b5cf6;
}

.dark-lord .class-tag {
    background: #0891b2;
}

.stats-list {
    list-style: none;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-primary);
    box-shadow: inset 0 0 20px rgba(255, 51, 51, 0.1);
}

.stats-list li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.stats-list strong {
    color: var(--accent-secondary);
}

/* Map Cards */
.level-tag {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.map-description {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.mob-list,
.drop-list {
    list-style: none;
    margin: 0.5rem 0;
}

.mob-list li,
.drop-list li {
    padding: 0.5rem;
    border-left: 3px solid var(--accent-secondary);
    margin: 0.5rem 0;
    background: rgba(255, 136, 0, 0.1);
    border-radius: 0.25rem;
}

.mob-name {
    color: var(--accent-gold);
    font-weight: 600;
}

.card-body h4 {
    color: var(--accent-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Crafting Section */
.crafting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.craft-recipe {
    background: rgba(255, 51, 51, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.1);
}

.craft-recipe strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.craft-recipe ul {
    list-style: none;
    color: var(--text-secondary);
}

.craft-recipe li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.craft-recipe li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

.jewel-info {
    background: rgba(255, 136, 0, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-secondary);
    box-shadow: inset 0 0 20px rgba(255, 136, 0, 0.05);
}

.jewel-info h4 {
    color: var(--accent-gold);
    margin-top: 0;
}

.jewel-info p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.success-rate {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ancient-list {
    list-style: none;
}

.ancient-list li {
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-gold);
}

.ancient-list strong {
    color: var(--accent-gold);
}

.socket-list {
    list-style: none;
}

.socket-list li {
    padding: 0.5rem;
    background: rgba(255, 51, 51, 0.1);
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    border-left: 3px solid var(--accent-primary);
}

.socket-list strong {
    color: var(--accent-secondary);
}

.tip-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.tip-box strong {
    color: var(--accent-gold);
}

/* Calculator Section */
.calculator-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.tab-btn.active {
    background: var(--gradient-red);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: var(--glow-red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calculator-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md), 0 0 30px rgba(255, 51, 51, 0.1);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.calculator-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input {
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 51, 51, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.2),
                0 0 20px rgba(255, 136, 0, 0.1);
}

.calc-result {
    background: rgba(255, 51, 51, 0.08);
    border: 2px solid var(--accent-primary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(255, 51, 51, 0.1),
                0 0 20px rgba(255, 136, 0, 0.1);
}

.calc-result h4 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

.footer-note {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-menu.active {
        max-height: 500px;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .crafting-grid {
        grid-template-columns: 1fr;
    }

    .calculator-tabs {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--shadow-sm), 0 0 20px rgba(255, 51, 51, 0.5);
    }
    50% {
        box-shadow: var(--shadow-sm), 0 0 35px rgba(255, 51, 51, 0.9);
    }
}

@keyframes pulseGlowOrange {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 136, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 136, 0, 0.7);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-primary);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Ad Containers */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem;
}

.ad-container.ad-horizontal {
    max-width: 728px;
    min-height: 90px;
}

.ad-container.ad-vertical {
    max-width: 300px;
    min-height: 600px;
    position: sticky;
    top: 100px;
    float: right;
    margin: 2rem 0 2rem 2rem;
}

.ad-placeholder {
    background: rgba(255, 51, 51, 0.05);
    border: 2px dashed var(--accent-primary);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    font-size: 0.875rem;
    font-weight: 600;
}

.ad-vertical .ad-placeholder {
    min-height: 600px;
}

/* Feature Cards */
.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 51, 51, 0.6));
}

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 2s; }

.feature-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Tips Lists */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.75rem;
    background: rgba(255, 51, 51, 0.08);
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-secondary);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.tips-list li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Build Stats */
.build-stats {
    list-style: none;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.build-stats li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.build-stats li:last-child {
    border-bottom: none;
}

.build-desc {
    font-style: italic;
    color: var(--accent-secondary);
    margin-top: 1rem;
}

/* Event Cards */
.event-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.event-card p {
    margin-bottom: 0.75rem;
}

.event-desc {
    font-style: italic;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.reward-list {
    list-style: none;
    margin: 0.5rem 0;
}

.reward-list li {
    padding: 0.5rem;
    background: rgba(255, 136, 0, 0.1);
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    border-left: 3px solid var(--accent-secondary);
    color: var(--text-secondary);
}

.event-time {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 0.5rem;
    border: 1px solid var(--accent-gold);
}

.event-time strong {
    color: var(--accent-gold);
}

/* Set Bonus & Seeds */
.set-bonus,
.seed-levels {
    list-style: none;
    margin-top: 1rem;
}

.set-bonus li,
.seed-levels li {
    padding: 0.75rem;
    background: rgba(255, 51, 51, 0.08);
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-secondary);
}

/* Upgrade Tips */
.tips-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.upgrade-tips {
    list-style: none;
    padding: 0;
}

.upgrade-tips li {
    padding: 0.75rem;
    background: rgba(255, 136, 0, 0.1);
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-secondary);
    color: var(--text-secondary);
}

.upgrade-tips strong {
    color: var(--accent-gold);
}

/* Calculator Extras */
.calc-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group select {
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 51, 51, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.2),
                0 0 20px rgba(255, 136, 0, 0.1);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.result-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    text-align: left;
}

.result-details p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

/* Stat Guide */
.stat-guide {
    list-style: none;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.stat-guide li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-guide li:last-child {
    border-bottom: none;
}

.stat-guide strong {
    color: var(--accent-secondary);
}

/* Jewels Inventory Section */
.jewels-inventory {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(255, 170, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9),
                inset 0 0 30px rgba(255, 51, 51, 0.1),
                0 0 40px rgba(255, 136, 0, 0.2);
}

.jewels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.jewel-item {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 51, 51, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jewel-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
                                rgba(255, 51, 51, 0.6) 0%,
                                rgba(255, 136, 0, 0.6) 50%,
                                rgba(255, 170, 0, 0.6) 100%);
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: rotateGlow 3s linear infinite;
}

.jewel-item:hover::before {
    opacity: 1;
}

.jewel-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 170, 0, 0.5),
                0 0 60px rgba(255, 51, 51, 0.3);
}

.jewel-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px currentColor);
}

.jewel-item:nth-child(1) .jewel-icon { animation-delay: 0s; }
.jewel-item:nth-child(2) .jewel-icon { animation-delay: 0.3s; }
.jewel-item:nth-child(3) .jewel-icon { animation-delay: 0.6s; }
.jewel-item:nth-child(4) .jewel-icon { animation-delay: 0.9s; }
.jewel-item:nth-child(5) .jewel-icon { animation-delay: 1.2s; }
.jewel-item:nth-child(6) .jewel-icon { animation-delay: 1.5s; }

.jewel-name {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.jewel-effect {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive - Ad Containers */
@media (max-width: 768px) {
    .ad-container.ad-vertical {
        display: none;
    }

    .ad-container.ad-horizontal {
        max-width: 100%;
    }

    .ad-placeholder {
        font-size: 0.75rem;
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* Guide Section Styles */
.guide-section {
    margin: 4rem 0;
}

.guide-section h2 {
    margin-bottom: 2rem;
}

.guide-section h3 {
    color: var(--accent-secondary);
    margin: 2rem 0 1rem 0;
    font-size: 1.75rem;
}

.guide-section h4 {
    color: var(--accent-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
}

.guide-section h5 {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
    font-size: 1.125rem;
}

.guide-section p {
    line-height: 1.8;
    margin: 1rem 0;
}

.guide-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.guide-section li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Evolution Table */
.evolution-table {
    margin: 2rem 0;
}

.evolution-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 1rem;
    border: 2px solid rgba(255, 51, 51, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.evolution-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 51, 51, 0.08);
    border-radius: 0.5rem;
    border: 1px solid var(--accent-primary);
    margin: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.1);
}

.evolution-step strong {
    display: block;
    color: var(--accent-gold);
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

.evolution-step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
}

.level-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.evolution-arrow {
    font-size: 2rem;
    color: var(--accent-secondary);
    padding: 0 0.5rem;
}

/* Article Styles */
article {
    max-width: 1400px;
    margin: 0 auto;
}

article h2 {
    scroll-margin-top: 100px;
}

article table {
    margin: 1rem 0;
}

article table th,
article table td {
    color: var(--text-secondary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    box-shadow: inset 0 0 10px rgba(255, 51, 51, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-gold) 100%);
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.7);
}

/* Responsive - Evolution Path */
@media (max-width: 768px) {
    .evolution-path {
        flex-direction: column;
    }

    .evolution-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .evolution-step {
        width: 100%;
        margin: 0.5rem 0;
    }
}
