:root {
    --ben10-green: #2ecc71;
    --ben10-dark-green: #27ae60;
    --ben10-neon: #39ff14;
    --bg-dark: #111;
    --panel-bg: rgba(20, 20, 20, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Effect */
.omnitrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(46, 204, 113, 0.1) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(46, 204, 113, 0.03) 0px, rgba(46, 204, 113, 0.03) 2px, transparent 2px, transparent 10px);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 10;
}

.panel {
    background: var(--panel-bg);
    border: 2px solid var(--ben10-green);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3), inset 0 0 10px rgba(46, 204, 113, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.panel.hidden {
    display: none;
}

/* Omnitrix CSS Logo */
.omnitrix-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #000;
    border: 5px solid #555;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--ben10-neon);
    overflow: hidden;
}
.omnitrix-logo.small-logo {
    width: 60px;
    height: 60px;
    border-width: 3px;
    margin-bottom: 10px;
}
.omnitrix-logo::before, .omnitrix-logo::after {
    content: '';
    position: absolute;
    background: var(--ben10-green);
}
.omnitrix-logo::before {
    width: 120%;
    height: 40px;
    transform: rotate(45deg);
}
.omnitrix-logo.small-logo::before {
    height: 25px;
}
.omnitrix-logo::after {
    width: 120%;
    height: 40px;
    transform: rotate(-45deg);
}
.omnitrix-logo.small-logo::after {
    height: 25px;
}

.omnitrix-core {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--ben10-neon);
    position: relative;
}
.omnitrix-logo.small-logo .omnitrix-core {
    width: 20px;
    height: 20px;
}

h1 {
    color: var(--ben10-neon);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

h2 {
    color: var(--ben10-neon);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

p {
    margin-bottom: 25px;
    color: #ccc;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

input {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #333;
    background: #222;
    color: var(--ben10-neon);
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    font-family: monospace;
}

input:focus {
    border-color: var(--ben10-green);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

button {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, var(--ben10-dark-green), var(--ben10-green));
    color: white;
    font-size: 1.2rem;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.5);
}

button:active {
    transform: translateY(0);
}

.error {
    color: #ff4757;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
}
.error.hidden {
    display: none;
}

/* Portal Section */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.platform-card {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-card:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--ben10-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.5));
}

h3 {
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.contact-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}
