* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.35s ease;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(145deg, #0a0a0a, #11111f);
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: rgba(30,30,30,0.95);
    color: #fff;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0,0,0,0.35);
    border-right: 2px solid #252525;
    backdrop-filter: blur(5px);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-left: 25px;
    color: #00bfff;
    background: linear-gradient(90deg, #00bfff, #2fe2ff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 5px rgba(0,191,255,0.5),
        0 0 10px rgba(0,191,255,0.4),
        0 2px 20px rgba(0,191,255,0.2);
    animation: neonGlow 2s infinite alternate;
}

.card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    letter-spacing: 2px;
    margin-top: -10px;
    margin-bottom: 10px;
    color: #00bfff;
    background: linear-gradient(90deg, #00bfff, #2fe2ff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 5px rgba(0,191,255,0.5),
        0 0 10px rgba(0,191,255,0.4),
        0 2px 20px rgba(0,191,255,0.2);
    animation: neonGlow 2s infinite alternate;
    border-bottom: 2px solid #00bfff;
    padding-bottom: 10px;
}

.custom-button {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 20px 20px 20px 20px;
    font-size: 1.2em;
}

.card .custom-button {
    margin: 0 auto;
    margin-top: 20px;
}

@keyframes neonGlow {
    0% {
        text-shadow:
            0 0 5px rgba(0,191,255,0.5),
            0 0 10px rgba(0,191,255,0.4),
            0 2px 20px rgba(0,191,255,0.2);
    }
    100% {
        text-shadow:
            0 0 10px rgba(0,191,255,0.8),
            0 0 20px rgba(0,191,255,0.6),
            0 2px 30px rgba(0,191,255,0.3);
    }
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin: 12px 0;
    position: relative;
}

.sidebar nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    padding: 12px 18px;
    border-radius: 20px 20px 20px 20px;
    backdrop-filter: blur(2px);
}

.sidebar .sidebar-footer {
    font-size: 0.85em;
    opacity: 0.6;
    margin-top: auto;
}

.footer-bar {
    width: 100%;
    background: rgba(40,40,40,0.95);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    box-shadow: 0 -3px 20px rgba(0,0,0,0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.main-content, .tos-content, .lua-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-content h2, .tos-content h2, .lua-content h2, .signup-page h2 {
    font-size: 2em;
    color: #ffffff;
    border-bottom: 2px solid #00bfff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: rgba(35,35,35,0.9);
    padding: 25px;
    border-radius: 16px;
    flex: 1;
    min-width: 100px;
    text-align: center;
    backdrop-filter: blur(5px);
    flex-wrap: wrap;
}

.card h3 {
    font-size: 2em;
    color: #ffffff;
    border-bottom: 2px solid #00bfff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.button {
    display: inline-block;
    padding: 12px 25px;
    background: #00bfff;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-button,
.card,
.sub-card,
.column,
.button,
.sidebar nav ul li a,
.column.card {
    border: 2px solid rgba(0, 191, 255, 0.25);
    box-shadow: 0 0 10px rgba(0,191,255,0.15), 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, border 0.3s, box-shadow 0.3s;
    cursor: normal;
}

.custom-button:hover,
.card:hover,
.column:hover,
.sub-card:hover,
.button:hover,
.sidebar nav ul li a:hover,
.column.card:hover {
    border: 2px solid rgba(0, 191, 255, 0.6);
    box-shadow: 0 0 20px rgba(0,191,255,0.4), 0 15px 35px rgba(0,0,0,0.25);
    transform: translateY(-5px);
    cursor: pointer;
}

.column {
    background: rgba(35,35,35,0.9);
    padding: 25px;
    border-radius: 16px;
    flex: 1;
    min-width: 280px;
    backdrop-filter: blur(5px);
}

.column.card {
    display: flex;
    flex-direction: column;
}

.column.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: #fff;
    border-bottom: 2px solid #00bfff;
    padding: 18px 20px;
    margin: 0 0 20px 0;
    border-radius: 12px 12px 0 0;
    background: rgba(40,40,40,0.85);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sub-card {
    background: rgba(45,45,45,0.9);
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.sub-card p {
    margin: 0;
    color: #cfcfcf;
    line-height: 1.6;
}

.lua-content .sub-card h4 .highlight {
    color: #00bfff;
    font-weight: bold;
}

.lua-content .sub-card h4 .highlight2 {
    color: #2fe20b;
    font-weight: bold;
}

.extra-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.lua-content .sub-card {
    margin-bottom: 20px;
}

.lua-content .column {
        margin-bottom: 15px;
}

.lua-content .sub-card.open .extra-info {
    opacity: 1;
    max-height: 400px;
}

.lua-content code {
    color: #8f8f8f;
    background-color: rgba(28,28,28,0.95);
    overflow-x: auto;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.95em;
}

.lua-content .lua-columns .column h3 {
    border-bottom: 2px solid #00bfff;
    padding: 7px 20px;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.lua-columns .column {
    margin-bottom: 30px;
}

.sub-card p.first-line {
    font-weight: bold;
    font-size: 1.1em;
}

.sub-card p.second-line {
    font-weight: bold;
    border-bottom: 2px solid #00bfff;
    padding: 7px 20px;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.tos-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #e0e0e0;
}

.tos-content a {
    color: #00bfff;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.tos-content a:hover {
    color: #0077aa;
}

.main-content::-webkit-scrollbar,
.tos-content::-webkit-scrollbar,
.lua-content::-webkit-scrollbar,
.signup-page::-webkit-scrollbar {
    width: 10px;
}

.main-content::-webkit-scrollbar-thumb,
.tos-content::-webkit-scrollbar-thumb,
.lua-content::-webkit-scrollbar-thumb,
.signup-page::-webkit-scrollbar {
    background: #555;
    border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover,
.tos-content::-webkit-scrollbar-thumb:hover,
.lua-content::-webkit-scrollbar-thumb:hover,
.signup-page::-webkit-scrollbar {
    background: #00bfff;
}

@media(max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px 10px;
    }

    .columns {
        flex-direction: column;
    }
}