* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #e6f0ff;
    background: #02030a;
}

/* BLUE SCROLLBARS */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050814; }
::-webkit-scrollbar-thumb {
    background: #0077ff;
    border-radius: 5px;
    box-shadow: 0 0 10px #00aaff;
}
::-webkit-scrollbar-thumb:hover {
    background: #33aaff;
}

/* BACKGROUND */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: url("hologlow.jpg") center/cover no-repeat;
    filter: blur(4px) brightness(0.35);
    z-index: -2;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(0,120,255,0.4), transparent 60%),
        radial-gradient(circle at bottom, rgba(255,0,60,0.35), transparent 60%);
    mix-blend-mode: screen;
    z-index: -1;
}

/* TOPBAR */
.topbar {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #02030a, #0b1020);
    box-shadow: 0 0 25px rgba(0,120,255,0.6);
    text-align: center;
    padding: 6px 0;
}
.banner-link { display: inline-block; }
.banner {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,120,255,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.banner-link:hover .banner {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(255,0,60,0.7);
}
.home-link {
    position: absolute;
    right: 20px;
    top: 18px;
    padding: 6px 14px;
    font-size: 16px;
    color: #00aaff;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(0,120,255,0.8);
    background: radial-gradient(circle, rgba(0,120,255,0.25), rgba(2,3,10,0.9));
    box-shadow: 0 0 15px rgba(0,120,255,0.8);
    text-shadow: 0 0 8px #00aaff;
    transition: all 0.25s ease;
}
.home-link:hover {
    color: #ff003c;
    border-color: rgba(255,0,60,0.9);
    box-shadow: 0 0 20px rgba(255,0,60,0.9);
    transform: translateY(-1px);
}

/* LAYOUT */
.main-wrap {
    width: 95%;
    max-width: 1300px;
    margin: 25px auto 40px auto;
}

/* METAL TABLES */
.metal-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background: linear-gradient(145deg, #0a0f1a, #0d1524);
    border: 2px solid #003366;
    box-shadow: 0 0 25px #003366, 0 0 35px #ff003c;
    border-radius: 12px;
    overflow: hidden;
}
.metal-table th {
    background: linear-gradient(180deg, #001a33, #000d1a);
    padding: 14px;
    font-size: 20px;
    color: #00aaff;
    text-shadow: 0 0 12px #00aaff;
    border-bottom: 2px solid #003366;
}
.metal-table td {
    padding: 16px;
    border-bottom: 1px solid #002244;
    font-size: 15px;
}
.metal-title {
    font-size: 26px !important;
    color: #00aaff !important;
    text-shadow: 0 0 20px #00aaff, 0 0 25px #ff003c;
}
.metal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #ff003c;
    text-shadow: 0 0 10px #ff003c;
}
.metal-subtitle span {
    color: #ff003c;
}

/* UPLOAD */
.upload-cell {
    text-align: center;
}
#upload { display: none; }

/* BUTTONS */
.btn {
    cursor: pointer;
    border: none;
    outline: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #e6f0ff;
    text-shadow: 0 0 8px #00aaff;
}
.neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #00aaff, #02030a);
    box-shadow: 0 0 18px rgba(0,120,255,0.9), 0 0 28px rgba(255,0,60,0.6);
    border: 1px solid rgba(0,120,255,0.8);
    transition: all 0.25s ease;
}
.neon-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 24px rgba(0,120,255,1), 0 0 34px rgba(255,0,60,0.9);
}
.red-btn {
    background: radial-gradient(circle at 30% 0%, #ff003c, #02030a);
    border-color: rgba(255,0,60,0.9);
}

/* CONTROLS */
.metal-cell label {
    display: block;
    margin: 10px 0;
    font-size: 14px;
}
.metal-cell input[type="range"] {
    width: 100%;
    margin-top: 6px;
    accent-color: #00aaff;
}
.color-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.color-row input[type="color"] {
    width: 40px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #00aaff;
    background: #02030a;
    box-shadow: 0 0 10px rgba(0,120,255,0.7);
    cursor: pointer;
}
.wm-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ADVANCED COLOR SYSTEM */
.rgb-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
}
.preset-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.preset {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #003366;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.preset:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px currentColor;
}
#glowLayers {
    width: 100%;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #003366;
    background: #02030a;
    color: #e6f0ff;
}

/* PREVIEW */
.preview-table td {
    text-align: center;
}
canvas {
    width: 100%;
    max-width: 520px;
    background: transparent;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0,120,255,0.8), 0 0 35px rgba(255,0,60,0.6);
    border: 1px solid rgba(0,120,255,0.7);
}

/* FOOTER */
.footer {
    width: 100%;
    text-align: center;
    padding: 12px 10px 18px 10px;
    font-size: 12px;
    color: #a8c6ff;
    background: linear-gradient(90deg, #02030a, #0b1020);
    border-top: 1px solid rgba(0,120,255,0.5);
    box-shadow: 0 -8px 20px rgba(0,120,255,0.4);
    text-shadow: 0 0 8px #00aaff;
}

.metal-table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

@media (max-width: 900px) {
    .metal-table th,
    .metal-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .metal-table tr {
        display: block;
        width: 100%;
    }

    .preset-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .rgb-row {
        grid-template-columns: 20px 1fr;
    }
}

