/*
 * Steal a Brainrot Script Styles v1.9
 * Last Updated: 2025-07-31
 * Cache Buster: 1.9 - Added YouTube Video Integration
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-first optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Force override any browser default styles */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

/* Reset all default link styles */
a, a:link, a:visited, a:hover, a:active {
    color: inherit !important;
    text-decoration: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e9ecef;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Ensure all links are styled properly */
a {
    color: inherit;
    text-decoration: none;
}

/* Hide any default browser styling */
a:link, a:visited, a:hover, a:active {
    color: inherit;
}

/* Script link styling */
.script-link {
    color: #58a6ff !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.script-link:hover {
    color: #79c0ff !important;
    border-bottom-color: #58a6ff;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

.script-link:active {
    color: #409eff !important;
    transform: translateY(1px);
}

/* Main Title Styles */
.lego-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    margin: 0 auto 20px auto;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.hero-description {
    font-size: 1.2rem;
    color: #8b949e;
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.98), rgba(21, 26, 33, 0.98));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #30363d;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

/* Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.brand-icon i:first-child {
    position: absolute;
    font-size: 1.2rem;
    color: white;
    animation: pulse 2s infinite;
}

.brand-icon i:last-child {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-left: 2px;
    margin-top: 2px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.brand-sub {
    font-size: 0.75rem;
    color: #8b949e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Center */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 16px;
    background: rgba(33, 38, 45, 0.6);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #8b949e;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), rgba(121, 192, 255, 0.1));
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-link span {
    font-size: 0.9rem;
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid #30363d;
    border-radius: 10px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-color: #58a6ff;
    transform: rotate(180deg);
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #5b6eae);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn i {
    font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #8b949e;
    border-radius: 1px;
}

.mobile-menu-btn:hover span {
    background: #58a6ff;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.98), rgba(21, 26, 33, 0.98));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #30363d;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.mobile-nav-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #8b949e;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.mobile-divider {
    height: 1px;
    background: #30363d;
    margin: 12px 0;
}

.mobile-discord-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 8px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

/* Simple Hero Section */
.simple-hero {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.simple-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.simple-hero h1:not(.lego-title) {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 900;
    font-family: 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #dc2626, 4px 4px 0px #2563eb, 6px 6px 0px #eab308, 8px 8px 0px #16a34a, 10px 10px 0px #8b5cf6, 0 0 25px rgba(255,255,255,0.3), 0 0 50px rgba(88, 166, 255, 0.2);
    position: relative;
    z-index: 1;
}

.simple-hero .lego-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    margin: 0 auto 20px auto;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.simple-hero p {
    font-size: 1.2rem;
    color: #8b949e;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 900;
    font-family: 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px #dc2626, 6px 6px 0px #2563eb, 9px 9px 0px #eab308, 12px 12px 0px #16a34a, 15px 15px 0px #8b5cf6, 0 0 30px rgba(255,255,255,0.4), 0 0 60px rgba(88, 166, 255, 0.2);
}

.hero-description {
    font-size: 1.3rem;
    color: #8b949e;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

.hero-description strong {
    color: #58a6ff;
    font-weight: 600;
}

.hero-description em {
    color: #79c0ff;
    font-style: normal;
}

.hero-features {
    margin: 60px 0;
}

.feature-highlight {
    background: linear-gradient(135deg, rgba(33, 38, 45, 0.8), rgba(22, 27, 34, 0.8));
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.feature-highlight h2 {
    color: #f0f6fc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.feature-highlight p {
    color: #8b949e;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.feature-highlight strong {
    color: #58a6ff;
    font-weight: 600;
}

.feature-highlight em {
    color: #79c0ff;
    font-style: normal;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(33, 38, 45, 0.6), rgba(22, 27, 34, 0.6));
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: #58a6ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #58a6ff;
    margin-bottom: 8px;
}

.stat-label {
    color: #8b949e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.getting-started {
    margin: 80px 0;
    text-align: center;
}

.getting-started h2 {
    color: #f0f6fc;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(135deg, rgba(33, 38, 45, 0.8), rgba(22, 27, 34, 0.8));
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: #58a6ff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 166, 255, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
}

.step-card h3 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-card p {
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
}

.step-card strong {
    color: #58a6ff;
}

.beginner-guide {
    margin: 80px 0;
    text-align: center;
}

.beginner-guide h2 {
    color: #f0f6fc;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.beginner-guide > p {
    color: #8b949e;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.beginner-guide strong {
    color: #58a6ff;
}

.beginner-chars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.beginner-char {
    background: linear-gradient(135deg, rgba(33, 38, 45, 0.8), rgba(22, 27, 34, 0.8));
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s;
}

.beginner-char:hover {
    border-color: #58a6ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.beginner-char h4 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.beginner-char p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 10px;
}

.beginner-char p:last-child {
    margin-bottom: 0;
}

.beginner-char strong {
    color: #58a6ff;
}

.advanced-strategy {
    margin: 80px 0;
    text-align: center;
}

.advanced-strategy h2 {
    color: #f0f6fc;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.advanced-strategy > p {
    color: #8b949e;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advanced-strategy strong {
    color: #58a6ff;
}

.advanced-strategy em {
    color: #79c0ff;
    font-style: normal;
}

.strategy-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.tip-item {
    background: linear-gradient(135deg, rgba(33, 38, 45, 0.8), rgba(22, 27, 34, 0.8));
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s;
}

.tip-item:hover {
    border-color: #58a6ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.tip-item h4 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tip-item p {
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
}

.tip-item strong {
    color: #58a6ff;
}

/* SEO Content Section */
.seo-content-section {
    margin: 80px 0;
    background: linear-gradient(135deg, #161b22, #21262d);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 40px;
}

.seo-hero h2 {
    color: #f0f6fc;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.seo-description {
    color: #8b949e;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seo-description strong {
    color: #58a6ff;
    font-weight: 600;
}

.seo-description em {
    color: #79c0ff;
    font-style: normal;
}

.seo-features {
    margin: 40px 0;
}

.seo-highlight {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.seo-highlight h3 {
    color: #f0f6fc;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

.seo-highlight p {
    color: #8b949e;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.seo-highlight strong {
    color: #58a6ff;
    font-weight: 600;
}

.seo-highlight em {
    color: #79c0ff;
    font-style: normal;
}

.seo-guide {
    margin: 40px 0;
}

.seo-guide h3 {
    color: #f0f6fc;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.seo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.seo-step {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}

.seo-step h4 {
    color: #58a6ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.seo-step p {
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
}

.seo-step strong {
    color: #58a6ff;
}

.seo-beginner {
    margin: 40px 0;
}

.seo-beginner h3 {
    color: #f0f6fc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.seo-beginner > p {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.seo-beginner strong {
    color: #58a6ff;
}

.seo-chars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.seo-char {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}

.seo-char h4 {
    color: #f0f6fc;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.seo-char p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 10px;
}

.seo-char p:last-child {
    margin-bottom: 0;
}

.seo-char strong {
    color: #58a6ff;
}

.seo-advanced {
    margin: 40px 0;
}

.seo-advanced h3 {
    color: #f0f6fc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.seo-advanced > p {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.seo-advanced strong {
    color: #58a6ff;
}

.seo-advanced em {
    color: #79c0ff;
    font-style: normal;
}

.seo-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.seo-strategy {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}

.seo-strategy h4 {
    color: #f0f6fc;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.seo-strategy p {
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
}

.seo-strategy strong {
    color: #58a6ff;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    box-shadow: 0 4px 15px rgba(35, 134, 54, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a6e2a, #238636);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6e7681, #8b949e);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 118, 129, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #6e7681);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(110, 118, 129, 0.4);
}

/* Calculator Container */
.calculator-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.calculator-left h2,
.calculator-right h3 {
    color: #333;
    margin-bottom: 20px;
}

/* Filters Section */
.filters-section {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #161b22, #21262d);
    border: 1px solid #30363d;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.filters-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #f0f6fc;
}

.filter-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #0d1117;
    color: #f0f6fc;
}

.search-input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-input::placeholder {
    color: #6e7681;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6e7681;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #f0f6fc;
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #0d1117;
    color: #f0f6fc;
}

.filter-select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.filter-select option {
    background: #21262d;
    color: #f0f6fc;
}

/* Category Section */
.category-section {
    margin-bottom: 30px;
}

.category-section h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #f0f6fc;
}

.category-section p {
    color: #8b949e;
    margin-bottom: 20px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #30363d;
    background: linear-gradient(135deg, #21262d, #161b22);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #8b949e;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    border-color: #58a6ff;
    color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    border-color: #58a6ff;
    color: white;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    min-height: 400px;
    transition: all 0.3s ease;
}

.character-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom Character Form */
.custom-character-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.custom-character-form h4 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 1.2em;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #888;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.custom-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.custom-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

/* Editable Character Card */
.custom-editable-card {
    background: linear-gradient(135deg, #161b22, #21262d);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    min-height: 320px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-editable-card .character-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 12px;
    text-align: center;
}

.custom-input-group {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.input-label {
    display: block;
    color: #b0b0b0;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 3px;
    text-align: left;
}

.character-earnings-input,
.character-price-input {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    gap: 5px;
}

.character-earnings-input span,
.character-price-input span {
    color: #10b981;
    font-weight: 600;
    font-size: 1em;
}

.character-earnings-input input,
.character-price-input input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
    text-align: left;
    width: 140px;
    transition: all 0.3s ease;
    cursor: text;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    flex: 1;
}

.character-earnings-input input:focus,
.character-price-input input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.character-earnings-input input::placeholder,
.character-price-input input::placeholder {
    color: #888;
}

.character-stats {
    margin: 15px 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-editable-card .character-efficiency,
.custom-editable-card .character-roi {
    color: #b0b0b0;
    font-size: 0.85em;
    margin: 3px 0;
}

.custom-editable-card .character-rarity {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    display: inline-block;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
    align-self: center;
}



/* Delete Custom Character Button */
.delete-custom-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    transition: all 0.3s ease;
    z-index: 10;
}

.delete-custom-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.character-card {
    position: relative;
}

/* Custom Character Card (without image) */
.custom-character-card {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #161b22, #21262d);
}

.custom-character-card .character-name {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-top: 10px;
}

.custom-character-card .character-rarity {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.character-card {
    background: linear-gradient(135deg, #161b22, #21262d);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #30363d;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05), rgba(121, 192, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.character-card:hover::before {
    opacity: 0;
}

.character-card.selected {
    border-color: #58a6ff;
    background: linear-gradient(135deg, #1f2937, #374151);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.2);
}

.character-card.selected::before {
    opacity: 1;
}

.character-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #30363d;
    transition: all 0.3s;
}

.character-avatar {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.character-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.character-fallback {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #161b22, #21262d);
}

.avatar-emoji {
    position: absolute;
    font-size: 2.5rem;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: float 3s ease-in-out infinite;
}

.avatar-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Notification Styles */
.notification {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.notification-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: color 0.3s;
}

.notification-close:hover {
    color: #f0f6fc;
}



.character-card:hover .character-image {
    transform: scale(1.05);
}

.character-card:hover .character-real-image {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.character-card:hover .avatar-emoji {
    animation-duration: 1s;
    transform: scale(1.1);
}

.character-card.selected .character-image {
    border-color: #58a6ff;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.character-card.selected .character-avatar {
    box-shadow: inset 0 0 20px rgba(88, 166, 255, 0.2);
}

.character-card.selected .character-real-image {
    filter: brightness(1.2) saturate(1.2);
    box-shadow: inset 0 0 20px rgba(88, 166, 255, 0.3);
}

.character-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #f0f6fc;
    position: relative;
    z-index: 1;
}

.character-earnings {
    color: #3fb950;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(63, 185, 80, 0.3);
    position: relative;
    z-index: 1;
}

.character-price {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.character-efficiency {
    color: #79c0ff;
    font-size: 0.8rem;
    margin-bottom: 3px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.character-roi {
    color: #f2cc60;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.character-rarity {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: lowercase;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.rarity-common {
    background: linear-gradient(135deg, #6e7681, #8b949e);
    color: white;
    border: 1px solid #30363d;
}
.rarity-rare {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: 1px solid #1a7f37;
}
.rarity-epic {
    background: linear-gradient(135deg, #8957e5, #a475f9);
    color: white;
    border: 1px solid #6f42c1;
}
.rarity-legendary {
    background: linear-gradient(135deg, #fb8500, #fd7e14);
    color: white;
    border: 1px solid #e85d04;
}
.rarity-mythic {
    background: linear-gradient(135deg, #f85149, #ff6b6b);
    color: white;
    border: 1px solid #da3633;
}
.rarity-brainrot {
    background: linear-gradient(135deg, #da3633, #f85149);
    color: white;
    border: 1px solid #b91c1c;
}
.rarity-secret {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    border: 1px solid #7c3aed;
}

.character-count {
    text-align: center;
    color: #8b949e;
    font-style: italic;
}

/* Calculator Right Panel */
.calculator-right {
    background: linear-gradient(135deg, #161b22, #21262d);
    border: 1px solid #30363d;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.calculator-inputs {
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 20px;
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #f0f6fc;
}

.input-section input,
.input-section select {
    width: 100%;
    padding: 10px;
    border: 2px solid #30363d;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #0d1117;
    color: #f0f6fc;
}

.input-section input:focus,
.input-section select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.input-section select option {
    background: #21262d;
    color: #f0f6fc;
}

.mutation-info,
.server-luck-info {
    font-size: 0.9rem;
    color: #8b949e;
    margin-top: 5px;
}

/* Calculation Results */
.calculation-results {
    background: linear-gradient(135deg, #0d1117, #161b22);
    border: 1px solid #30363d;
    padding: 20px;
    border-radius: 8px;
}

.calculation-results h3 {
    color: #f0f6fc;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.result-label {
    color: #8b949e;
}

.result-value {
    font-weight: 600;
    color: #3fb950;
    text-shadow: 0 0 10px rgba(63, 185, 80, 0.3);
}

.result-item.total {
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 10px;
    border-top: 2px solid #30363d;
}

.result-item.total .result-value {
    color: #58a6ff;
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.time-info {
    text-align: center;
    color: #8b949e;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Pro Tips Section */
.pro-tips-section {
    margin-bottom: 60px;
}

.pro-tips-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #f0f6fc;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tip-card {
    background: linear-gradient(135deg, #161b22, #21262d);
    border: 1px solid #30363d;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05), rgba(121, 192, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 20px rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
}

.tip-card:hover::before {
    opacity: 1;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tip-card h3 {
    margin-bottom: 15px;
    color: #f0f6fc;
    position: relative;
    z-index: 1;
}

.tip-card p {
    color: #8b949e;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0d1117, #161b22);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    text-align: left;
}

.footer-title {
    color: #f0f6fc;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-copyright {
    color: #8b949e;
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link.facebook {
    background-color: #1877f2;
    color: white;
}

.social-link.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.social-link.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-link.twitter:hover {
    background-color: #1a91da;
    transform: translateY(-2px);
}

.social-link.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-link.linkedin:hover {
    background-color: #006ba1;
    transform: translateY(-2px);
}

.social-link.email {
    background-color: #ea4335;
    color: white;
}

.social-link.email:hover {
    background-color: #d93025;
    transform: translateY(-2px);
}

.social-link.whatsapp {
    background-color: #25d366;
    color: white;
}

.social-link.whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.social-link.reddit {
    background-color: #ff4500;
    color: white;
}

.social-link.reddit:hover {
    background-color: #e63e00;
    transform: translateY(-2px);
}

.footer-disclaimer {
    color: #6e7681;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .nav-actions .discord-btn span {
        display: none;
    }

    .filter-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .calculator-right {
        position: static;
    }

    /* Custom Form Mobile */
    .character-earnings-input input,
    .character-price-input input {
        width: 80px;
        font-size: 0.85em;
        padding: 6px 8px;
    }

    /* Custom Character Form Mobile Optimization */
    .custom-character-form {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .custom-character-form h4 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-group label {
        font-size: 0.85em;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 10px;
        font-size: 0.9em;
        border-radius: 6px;
    }

    .form-actions {
        margin-top: 15px;
        gap: 8px;
    }

    .form-actions .btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    /* Custom Character Card Mobile */
    .custom-editable-card {
        padding: 15px;
        min-height: 280px;
        max-height: 280px;
    }

    .custom-editable-card .character-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .custom-input-group {
        margin-bottom: 12px;
    }

    .custom-input-group label {
        font-size: 0.8em;
        margin-bottom: 3px;
    }

    .custom-input-group input {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .delete-custom-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
}

@media (max-width: 768px) {
    /* Hide character selection visual feedback on mobile */
    .character-card.selected {
        border-color: #374151 !important;
        background: linear-gradient(135deg, #1f2937, #374151) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .character-card.selected::before {
        opacity: 0 !important;
    }

    .character-card.selected .character-image {
        border-color: #4b5563 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .character-card.selected .character-avatar {
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2) !important;
    }

    .character-card.selected .character-real-image {
        filter: none !important;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2) !important;
    }

    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .nav-center,
    .nav-actions .theme-toggle {
        display: none;
    }

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

    .brand-text .brand-main {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .brand-text .brand-sub {
        font-size: 0.7rem;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    /* Hero Section Mobile Optimization */
    .simple-hero {
        padding: 40px 20px;
        min-height: auto;
    }

    .simple-hero .lego-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .simple-hero .hero-description {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 10px;
    }

    /* Main Content Mobile */
    .main-content {
        padding: 20px 15px;
    }

    /* Calculator Mobile Layout */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .calculator-left,
    .calculator-right {
        padding: 20px 15px;
    }

    /* Character Grid Mobile */
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .character-card {
        padding: 12px;
    }

    .character-image {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .character-name {
        font-size: 0.95rem;
        margin-top: 8px;
    }

    /* Category Buttons Mobile */
    .category-buttons {
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .category-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: auto;
    }

    /* Tips Grid Mobile */
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tip-card {
        padding: 18px;
    }

    .tip-card h3 {
        font-size: 1.1rem;
    }

    .tip-card p {
        font-size: 0.9rem;
    }

    /* Filters Section Mobile */
    .filters-section {
        padding: 15px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Mobile Menu Improvements */
    .mobile-menu {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-nav-links {
        padding: 15px;
    }

    .mobile-nav-link {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .mobile-nav-link i {
        width: 20px;
        text-align: center;
    }

    /* Touch-friendly improvements */
    .character-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .character-card:active {
        transform: scale(0.98);
    }

    /* Scroll improvements */
    .main-content {
        overflow-x: hidden;
    }

    /* Better spacing for mobile */
    .section-spacing {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    /* Navigation Mobile */
    .nav-container {
        padding: 0 12px;
        height: 65px;
    }

    .brand-text .brand-main {
        font-size: 1rem;
        letter-spacing: 0.2px;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
    }

    /* Hero Section Ultra Mobile */
    .simple-hero {
        padding: 30px 15px;
    }

    .simple-hero .lego-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .simple-hero .hero-description {
        font-size: 0.9rem;
        padding: 0 5px;
    }

    /* Character Grid Ultra Mobile */
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .character-card {
        padding: 8px;
    }

    .character-image {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .character-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    /* Category Buttons Ultra Mobile */
    .category-buttons {
        gap: 4px;
        margin-bottom: 15px;
    }

    .category-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    /* Custom Character Form Ultra Mobile */
    .custom-character-form {
        padding: 15px 10px;
        margin: 10px 0;
        border-radius: 8px;
    }

    .custom-character-form h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 0.8em;
        margin-bottom: 3px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 8px;
        font-size: 0.85em;
        border-radius: 5px;
    }

    .form-actions {
        margin-top: 12px;
        gap: 6px;
        flex-direction: column;
    }

    .form-actions .btn {
        padding: 12px 16px;
        font-size: 0.85em;
        width: 100%;
    }

    /* Custom Character Card Ultra Mobile */
    .custom-editable-card {
        padding: 12px;
        min-height: 250px;
        max-height: 250px;
    }

    .custom-editable-card .character-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .custom-input-group {
        margin-bottom: 10px;
    }

    .custom-input-group label {
        font-size: 0.75em;
        margin-bottom: 2px;
    }

    .custom-input-group input {
        padding: 6px 8px;
        font-size: 0.8em;
    }

    .custom-editable-card .character-efficiency,
    .custom-editable-card .character-roi {
        font-size: 0.8em;
        margin: 2px 0;
    }

    .custom-editable-card .character-rarity {
        padding: 2px 8px;
        font-size: 0.7em;
    }

    .delete-custom-btn {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: 5px;
        right: 5px;
        border-radius: 6px;
    }

    /* Calculator Ultra Mobile */
    .calculator-left,
    .calculator-right {
        padding: 15px 12px;
    }

    /* Tips Grid Ultra Mobile */
    .tip-card {
        padding: 15px;
    }

    .tip-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .tip-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Mobile Menu Ultra Mobile */
    .mobile-nav-links {
        padding: 12px;
    }

    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* Main Content Ultra Mobile */
    .main-content {
        padding: 15px 12px;
    }

    /* Filters Ultra Mobile */
    .filters-section {
        padding: 12px;
    }

    /* Better touch targets */
    .character-card {
        min-height: 100px;
    }

    /* Improved spacing */
    .section-spacing {
        margin-bottom: 20px;
    }

    /* Discord button mobile */
    .nav-actions .discord-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .nav-actions .discord-btn i {
        font-size: 1rem;
    }
}

/* Extra optimizations for very small screens */
@media (max-width: 360px) {
    .simple-hero .lego-title {
        font-size: 1.6rem;
    }

    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }

    .character-card {
        padding: 6px;
        min-height: 90px;
    }

    .character-image {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .character-name {
        font-size: 0.8rem;
    }

    .category-btn {
        padding: 5px 6px;
        font-size: 0.7rem;
    }

    .nav-container {
        padding: 0 10px;
    }

    .brand-text .brand-main {
        font-size: 0.9rem;
    }
}

/* Mobile-specific utility classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Improved mobile scrolling */
.mobile-scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Mobile-friendly button styles */
@media (max-width: 768px) {
    button, .btn, .character-card, .category-btn, .nav-link, .mobile-nav-link {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    /* Improved touch feedback */
    .character-card:active,
    .category-btn:active,
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    /* Better mobile form elements */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Mobile-friendly hover states */
    .character-card:hover {
        transform: none;
    }

    .character-card:active {
        transform: scale(0.97);
        background: rgba(88, 166, 255, 0.15);
    }
}

/* ===== BRAINROTS SECTION ===== */
.brainrots-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    min-height: 100vh;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    justify-content: center;
}

.breadcrumb a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #79c0ff;
}

.breadcrumb-separator {
    color: #8b949e;
    font-weight: 500;
}

.breadcrumb-current {
    color: #f0f6fc;
    font-weight: 500;
}

.brainrots-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.brainrots-header {
    text-align: center;
    margin-bottom: 50px;
}

.brainrots-header h2 {
    font-size: 3rem;
    color: #58a6ff;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

.brainrots-description {
    font-size: 1.2rem;
    color: #8b949e;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

/* Rarity Filter */
.rarity-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.rarity-btn {
    padding: 12px 24px;
    background: rgba(33, 38, 45, 0.8);
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #f0f6fc;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rarity-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.rarity-btn.active {
    background: linear-gradient(135deg, #58a6ff, #1f6feb);
    border-color: #58a6ff;
    color: white;
}

/* Controls Row */
.controls-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sort-label {
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.95rem;
}

.sort-select {
    padding: 8px 16px;
    background: rgba(33, 38, 45, 0.8);
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #f0f6fc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #58a6ff;
    background: rgba(33, 38, 45, 1);
}

/* Search Bar */
.brainrots-search {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: rgba(33, 38, 45, 0.8);
    border: 2px solid #30363d;
    border-radius: 12px;
    color: #f0f6fc;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: #58a6ff;
    background: rgba(33, 38, 45, 1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
    font-size: 1.2rem;
}

/* Keyboard Help */
.keyboard-help {
    text-align: center;
    margin-bottom: 40px;
}

.help-toggle {
    background: rgba(33, 38, 45, 0.8);
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #f0f6fc;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.help-toggle:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
}

.help-content {
    margin-top: 20px;
    background: rgba(33, 38, 45, 0.9);
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-item kbd {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    color: #f0f6fc;
    font-weight: 500;
}

.help-item span {
    color: #8b949e;
    font-size: 0.9rem;
}

/* Brainrots Grid */
.brainrots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.brainrot-card {
    background: rgba(33, 38, 45, 0.8);
    border: 2px solid #30363d;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brainrot-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    background: rgba(33, 38, 45, 1);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.brainrot-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #30363d;
}

.brainrot-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.brainrot-rarity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.05em;
}

.rarity-common { background: #7c3aed; color: white; }
.rarity-rare { background: #2563eb; color: white; }
.rarity-epic { background: #7c2d12; color: white; }
.rarity-legendary { background: #ea580c; color: white; }
.rarity-mythic { background: #dc2626; color: white; }
.rarity-brainrot-god { background: #fbbf24; color: #1f2937; }
.rarity-secret { background: linear-gradient(45deg, #ec4899, #8b5cf6); color: white; }

/* Brainrot Card Header */
.brainrot-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.brainrot-info {
    flex: 1;
}

.brainrot-stats {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #58a6ff;
    background: rgba(22, 27, 34, 0.8);
}

.stat-label {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1.2;
}

.stat-value.price {
    color: #f85149;
}

.stat-value.income {
    color: #3fb950;
}

.stat-value.roi {
    color: #58a6ff;
}

.stat-value.efficiency {
    color: #fbbf24;
}

/* Brainrot Card Actions */
.brainrot-actions {
    margin-top: 15px;
}

.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #2ea043, #238636);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 160, 67, 0.3);
}

.calc-btn:active {
    transform: translateY(0);
}

/* Character Guide Section */
.character-guide-section {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    border-radius: 16px;
    border: 1px solid #30363d;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.character-guide-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f0f6fc;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-content {
    color: #c9d1d9;
    line-height: 1.7;
    font-size: 1.1rem;
}

.guide-content p {
    margin-bottom: 20px;
}

.guide-content strong {
    color: #58a6ff;
    font-weight: 600;
}

.character-recommendations {
    margin: 40px 0;
}

.character-recommendations h2 {
    font-size: 1.8rem;
    color: #f0f6fc;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #3fb950, #56d364);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.recommendation-item {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    border-color: #58a6ff;
    background: rgba(33, 38, 45, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.recommendation-item h5 {
    font-size: 1.3rem;
    color: #f0f6fc;
    margin-bottom: 12px;
    font-weight: 600;
}

.recommendation-item p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.recommendation-item em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 600;
}

.strategy-tips {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.strategy-tips h2 {
    font-size: 1.6rem;
    color: #f0f6fc;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strategy-tips ul {
    list-style: none;
    padding: 0;
}

.strategy-tips li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.strategy-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #58a6ff;
    font-weight: bold;
    font-size: 1.2rem;
}

.closing-note {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(121, 192, 255, 0.05));
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stats Summary */
.brainrots-stats,
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(33, 38, 45, 0.8);
    border: 2px solid #30363d;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #58a6ff;
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #58a6ff;
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

/* Responsive Design for Brainrots */
@media (max-width: 768px) {
    .brainrots-header h2 {
        font-size: 2rem;
    }

    .brainrots-description {
        font-size: 1rem;
    }

    .rarity-filter {
        gap: 8px;
        flex-wrap: wrap;
    }

    .rarity-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .controls-row {
        gap: 20px;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .help-content {
        padding: 15px;
    }

    .brainrots-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .brainrot-card {
        padding: 15px;
    }

    .brainrot-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .brainrot-image {
        width: 60px;
        height: 60px;
    }

    .brainrot-name {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 8px 6px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .calc-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Character Guide Mobile */
    .character-guide-section {
        margin-top: 40px;
        padding: 25px 0;
    }

    .character-guide-section h2 {
        font-size: 1.8rem;
    }

    .guide-content {
        font-size: 1rem;
    }

    .character-recommendations h2 {
        font-size: 1.5rem;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .recommendation-item {
        padding: 15px;
    }

    .recommendation-item h5 {
        font-size: 1.1rem;
    }

    .strategy-tips {
        padding: 20px;
    }

    .strategy-tips h2 {
        font-size: 1.4rem;
    }

    .strategy-tips li {
        font-size: 0.95rem;
        padding-left: 20px;
    }

    .closing-note {
        padding: 20px;
        font-size: 1rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Quick Jump Button - Mobile Only */
.quick-jump-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #58a6ff, #4f94d4);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

/* Hide quick jump button on desktop */
@media (min-width: 769px) {
    .quick-jump-btn {
        display: none !important;
    }
}

.quick-jump-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.quick-jump-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .quick-jump-btn {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
        display: flex !important; /* 只在移动端显示 */
    }
}

/* Script Page Styles */
.script-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    position: relative;
    overflow: hidden;
}

.script-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.script-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.script-download-section {
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.script-download-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.download-description {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 32px;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.download-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.download-btn.primary {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(35, 134, 54, 0.3);
}

.download-btn.primary:hover {
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
}

.download-btn.secondary {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    color: #e9ecef;
    border: 1px solid #30363d;
}

.download-btn.secondary:hover {
    background: linear-gradient(135deg, #30363d 0%, #21262d 100%);
    transform: translateY(-2px);
    border-color: #484f58;
}

.script-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 16px;
    color: #ffc107;
    font-size: 0.95rem;
}

.script-warning i {
    font-size: 1.2rem;
}

.script-code-section {
    margin: 40px 0;
}

.script-code-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.code-container {
    position: relative;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
}

.code-container pre {
    margin: 0;
    padding: 24px;
    background: transparent;
    color: #e9ecef;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(33, 38, 45, 0.9);
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e9ecef;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-code-btn:hover {
    background: rgba(48, 54, 61, 0.9);
    border-color: #484f58;
}

.script-features-section {
    margin: 60px 0;
}

.script-features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: #484f58;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    border-radius: 12px;
    flex-shrink: 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-content p {
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
}

.installation-guide-section {
    margin: 60px 0;
}

.installation-guide-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.guide-description {
    text-align: center;
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.installation-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: #484f58;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.step-image {
    flex-shrink: 0;
    width: 200px;
}

.step-guide-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 1px solid #30363d;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.step-content p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-content ul {
    color: #8b949e;
    line-height: 1.6;
    margin: 12px 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
}

.warning-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    color: #ffc107;
    font-size: 0.9rem;
}

.warning-box i {
    font-size: 1.1rem;
}

.code-example {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    max-width: 100%;
    word-wrap: break-word;
}

.code-example code {
    color: #e9ecef;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    display: block;
    max-width: 100%;
}

.success-note {
    background: rgba(35, 134, 54, 0.1);
    border: 1px solid rgba(35, 134, 54, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    color: #2ea043;
    font-weight: 500;
}

.faq-section {
    margin: 60px 0;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #484f58;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(48, 54, 61, 0.3);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.faq-question i {
    color: #8b949e;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 24px 20px 24px;
    border-top: 1px solid #30363d;
}

.faq-answer p {
    color: #8b949e;
    line-height: 1.6;
    margin: 16px 0 0 0;
}

.seo-content-section {
    margin: 60px 0;
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 40px;
}

.seo-content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.seo-content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 32px 0 16px 0;
}

.seo-content-section p {
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Game Introduction Section */
.game-intro-section {
    margin: 40px 0;
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 40px;
}

.game-intro-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.game-intro-content p {
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #161b22 0%, #1a1f26 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.table-of-contents h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* What is Script Section */
.what-is-script-section {
    margin: 40px 0;
}

.what-is-script-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.script-explanation {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.script-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 2px dashed #30363d;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b949e;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #238636;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Hero with Image Section */
.hero-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
}

.hero-content {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content .lego-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: 2.8rem;
    line-height: 1.1;
}

.hero-content .hero-description {
    text-align: left;
    margin-bottom: 30px;
    max-width: none;
}

.hero-content .breadcrumb {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
    border: 2px solid #30363d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.main-hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.script-description p {
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Script Tabs */
.script-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.script-tab {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.script-tab:hover {
    border-color: #238636;
    transform: translateY(-2px);
}

.script-tab.active {
    border-color: #238636;
    background: linear-gradient(135deg, rgba(35, 134, 54, 0.1) 0%, rgba(46, 160, 67, 0.1) 100%);
}

.script-tab h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.script-tab p {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 0;
}

/* Script Content */
.script-content {
    display: none;
}

.script-content.active {
    display: block;
}

.script-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.feature-tag {
    background: rgba(35, 134, 54, 0.2);
    color: #2ea043;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.feature-tag.premium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

/* Latest Scripts Section */
.latest-scripts-section {
    margin: 60px 0;
}

.latest-scripts-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.scripts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scripts-description {
    text-align: center;
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.script-item {
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.script-item:hover {
    transform: translateY(-2px);
    border-color: #484f58;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.script-code-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.script-code-container .script-code-preview {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    word-wrap: break-word;
    min-width: 0;
}

.script-code-container .copy-script-btn {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: center;
    max-width: 140px;
}

.script-code-container .copy-script-btn:hover {
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
    transform: translateY(-1px);
}

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

.script-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.script-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.script-status.updated {
    background: rgba(35, 134, 54, 0.2);
    color: #2ea043;
}

.script-status.new {
    background: rgba(56, 139, 253, 0.2);
    color: #58a6ff;
}

.script-status.premium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.script-status.working {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.script-status.essential {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.script-status.no-key {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.script-status.admin {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.script-status.esp {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

.script-status.speed {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
}

.script-status.noclip {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.script-status.teleport {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
}

.script-status.fly {
    background: rgba(135, 206, 250, 0.2);
    color: #87ceea;
}

.script-status.god {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.script-status.aimbot {
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
}

.script-status.anti-afk {
    background: rgba(50, 205, 50, 0.2);
    color: #32cd32;
}

.script-status.spam {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
}

.script-status.invisible {
    background: rgba(169, 169, 169, 0.2);
    color: #a9a9a9;
}

.script-status.tools {
    background: rgba(139, 69, 19, 0.2);
    color: #8b4513;
}

.script-status.rejoin {
    background: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
}

.script-status.hop {
    background: rgba(75, 0, 130, 0.2);
    color: #4b0082;
}

.script-status.gui {
    background: rgba(30, 144, 255, 0.2);
    color: #1e90ff;
}

.script-status.universal {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.script-status.ultimate {
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
}

.script-status.master {
    background: rgba(128, 0, 128, 0.2);
    color: #800080;
}

/* Table of Contents Styles */
.toc-toggle {
    margin-bottom: 15px;
}

.toc-toggle-btn {
    background: #238636;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.toc-toggle-btn:hover {
    background: #2ea043;
}

.toc-content {
    display: block;
}

.toc-content.hidden {
    display: none;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents .toc-sublist {
    padding-left: 20px;
    margin-top: 8px;
}

.table-of-contents li {
    margin: 6px 0;
}

.table-of-contents a {
    color: #0969da;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #0550ae;
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #7d8590;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0f6fc;
}

.footer-info p {
    color: #7d8590;
    margin: 10px 0;
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto 0;
}

.footer-disclaimer p {
    color: #ffc107;
    font-size: 0.85rem;
    margin: 0;
}

.script-status.key-system {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.script-status.auto {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.script-status.collection {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.script-status.instant {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.script-status.features {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

/* Show More Section */
.show-more-section {
    text-align: center;
    margin: 40px 0;
}

.show-more-btn {
    background: linear-gradient(135deg, #1a1f26 0%, #21262d 100%);
    border: 2px solid #30363d;
    border-radius: 12px;
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}

.show-more-btn:hover {
    border-color: #484f58;
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    transform: translateY(-2px);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.additional-scripts {
    margin-top: 32px;
}

.script-features {
    margin-bottom: 16px;
}

.script-features p {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 0;
}

.script-code-preview {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    max-width: 100%;
    word-wrap: break-word;
}

.script-code-preview code {
    color: #e9ecef;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
    display: block;
    max-width: 100%;
    line-height: 1.4;
}

.copy-script-btn {
    width: 100%;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-script-btn:hover {
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
    transform: translateY(-1px);
}

/* Mobile Responsive for Script Page */
@media (max-width: 768px) {
    .script-download-section {
        padding: 24px;
        margin: 24px 0;
    }

    .script-download-section h2 {
        font-size: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .step-item {
        flex-direction: column;
        text-align: left;
        gap: 20px;
        padding: 24px;
    }

    .step-number {
        margin: 0 auto;
    }

    .script-explanation {
        flex-direction: column;
        gap: 30px;
    }

    .script-video-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .step-image {
        width: 100%;
        text-align: center;
    }

    .step-guide-image {
        max-width: 350px;
    }

    .seo-content-section {
        padding: 24px;
    }

    .script-features-section h2,
    .installation-guide-section h2,
    .faq-section h2 {
        font-size: 2rem;
    }

    .script-explanation {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .image-placeholder {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .script-tabs {
        flex-direction: column;
    }

    .script-tab {
        min-width: auto;
    }

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

    .game-intro-section {
        padding: 24px;
    }

    .hero-with-image {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .main-hero-image {
        max-width: 100%;
        max-height: 300px;
    }

    .quick-stats,
    .brainrots-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .script-section {
        padding: 40px 0;
    }

    .lego-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .quick-stats,
    .brainrots-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

    .hero-with-image {
        padding: 24px 16px;
        gap: 24px;
    }

    .lego-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card h3 {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .script-container {
        padding: 0 16px;
    }

    .script-code-container .script-code-preview {
        max-width: 100%;
    }

    .code-example,
    .script-code-preview {
        font-size: 0.75rem;
        padding: 8px;
    }

    .code-example code,
    .script-code-preview code {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .copy-script-btn,
    .script-code-container .copy-script-btn {
        max-width: 120px;
        align-self: center;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Update Page Styles */
.current-version-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
}

.version-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.version-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.version-number {
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    color: #0d1117;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 18px;
}

.version-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.version-details p {
    color: #b8c5d6;
    margin: 8px 0;
    font-size: 16px;
}

.version-details strong {
    color: #ffffff;
}

.status-stable {
    color: #10b981;
    font-weight: 600;
}

.version-actions {
    display: flex;
    gap: 12px;
}

.update-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.update-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.update-card.featured {
    border-color: rgba(88, 166, 255, 0.3);
    background: rgba(88, 166, 255, 0.05);
}

.update-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 166, 255, 0.3);
}

.update-header {
    margin-bottom: 20px;
}

.update-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.update-date {
    color: #b8c5d6;
    font-size: 14px;
}

.update-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-major {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.type-patch {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.update-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.update-content h4 {
    color: #58a6ff;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.update-content ul {
    list-style: none;
    padding: 0;
}

.update-content li {
    color: #b8c5d6;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.update-content li::before {
    content: "•";
    color: #58a6ff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.changelog-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f1419 100%);
}

.notifications-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.notification-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.notification-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.notification-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.notification-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.notification-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.notification-card p {
    color: #b8c5d6;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Update Page Mobile Responsive */
@media (max-width: 768px) {
    .version-info {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .version-actions {
        justify-content: center;
        flex-direction: column;
    }

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

    .version-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
