:root {
    --primary-color: #ff69b4;
    --secondary-color: #da70d6;
    --neon-color: #ff1493;
    --bg-dark: #1a0b1a;
    --panel-bg: rgba(30, 10, 30, 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 */
.magic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(255, 105, 180, 0.15) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 105, 180, 0.05) 0px, rgba(255, 105, 180, 0.05) 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(--primary-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3), inset 0 0 10px rgba(255, 105, 180, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.panel.hidden {
    display: none;
}

/* Magic Logo (Profile Image Container) */
.magic-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: 4px solid #fff;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--neon-color);
    overflow: hidden;
}
.magic-logo.small-logo {
    width: 70px;
    height: 70px;
    border-width: 3px;
    margin-bottom: 10px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

h2 {
    color: var(--neon-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 20, 147, 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(--neon-color);
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    font-family: monospace;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

button {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    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(255, 105, 180, 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(255, 105, 180, 0.1);
    border: 2px solid rgba(255, 105, 180, 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(255, 105, 180, 0.2);
    border-color: var(--neon-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 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);
}
