:root {
    --cp-black: #050505;
    --cp-bg: #0d0d15;
    --cp-pink: #ff00ff;
    --cp-purple: #9d00ff;
    --cp-main: #ff00ff;
    --cp-accent: #00d4ff;
    --cp-red: #ff003c;
    --cp-glass: rgba(13, 13, 21, 0.95);
    --cp-border: rgba(255, 0, 255, 0.3);
    --cp-shadow: 0 0 30px rgba(157, 0, 255, 0.2);
    --cp-font: 'Roboto Mono', monospace; /* Updated to Roboto Mono */
    --cp-gradient: linear-gradient(135deg, #ff00ff 0%, #9d00ff 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #050505;
    color: #fff;
    font-family: var(--cp-font); /* Applied globally */
    min-height: 100vh;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

/* Layout Containers */
.cp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Cards */
.cp-card {
    background: rgba(13, 13, 21, 0.2); /* Even more transparent */
    backdrop-filter: blur(25px) saturate(200%); /* Stronger glass effect */
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 0, 255, 0.15);
    border-top: 4px solid var(--cp-pink);
    padding: 30px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 255, 0.05);
    margin-bottom: 30px;
}

.cp-card.glitch-edge {
    max-width: 400px;
    clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}

h2, h3 {
    font-family: var(--cp-font);
    text-transform: uppercase;
    color: var(--cp-pink);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    margin-top: 0;
    letter-spacing: 1px;
    font-weight: 700;
}

label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--cp-purple);
    margin-bottom: 8px;
    margin-top: 15px;
    letter-spacing: 1px;
    font-weight: 700;
}

input, textarea, select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 5px solid rgba(157, 0, 255, 0.5);
    padding: 12px;
    color: #fff;
    font-family: var(--cp-font);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-bottom-color: var(--cp-pink);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.1);
    background: transparent;
}

/* Fix Autocomplete Background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050505 inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.cp-button {
    width: 100%;
    padding: 14px;
    background: var(--cp-gradient);
    border: none;
    color: #fff;
    font-family: var(--cp-font);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
    clip-path: polygon(0 0, 95% 0, 100% 20%, 100% 100%, 5% 100%, 0 80%);
}

.cp-button:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 30px var(--cp-pink);
    transform: scale(1.02) translateY(-2px);
}

.cp-links {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cp-links a {
    color: var(--cp-pink);
    text-decoration: none;
    font-size: 12px;
    font-family: var(--cp-font);
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    text-align: center;
    transition: 0.3s;
    background: rgba(255, 0, 255, 0.05);
}

.cp-links a:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px var(--cp-pink);
    color: #fff;
    transform: translateX(5px);
}

.success {
    background: rgba(0, 255, 136, 0.05);
    border-left: 4px solid #00ff88;
    padding: 15px;
    color: #00ff88;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert {
    background: rgba(255, 0, 60, 0.05);
    border-left: 4px solid var(--cp-red);
    padding: 15px;
    color: var(--cp-red);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--cp-purple);
    background: rgba(0,0,0,0.5);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    margin: 0;
}

input[type="checkbox"]:checked {
    background: var(--cp-pink);
    border-color: var(--cp-pink);
    box-shadow: 0 0 10px var(--cp-pink);
}

input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

/* Animations */
@keyframes boot-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cp-card { animation: boot-up 0.5s ease-out; }
