:root {
    --barbie-pink: #ff2a75;
    --barbie-dark-pink: #d81b60;
    --barbie-magenta: #c2185b;
    --barbie-light-pink: #ff69b4;
    --barbie-pastel: #ffe4e1;
    --barbie-gold: #ffd700;
    --barbie-purple: #8a2be2;
    --bg-dark: #120016;
    --panel-bg: rgba(40, 5, 32, 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-x: hidden;
    position: relative;
}

/* Dynamic Barbie Background */
.barbie-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 42, 117, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(216, 27, 96, 0.25) 0%, transparent 70%),
        linear-gradient(135deg, #18001c 0%, #300028 50%, #150019 100%);
    z-index: -2;
}

/* Floating sparkles pattern overlay */
.barbie-sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(rgba(255, 215, 0, 0.5) 1.5px, transparent 1.5px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 20px;
    animation: sparklesMove 20s linear infinite;
    opacity: 0.6;
    z-index: -1;
}

@keyframes sparklesMove {
    from { background-position: 0 0, 20px 20px; }
    to { background-position: 400px 400px, 420px 420px; }
}

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

/* Glassmorphism Panel */
.panel {
    background: var(--panel-bg);
    border: 3px solid var(--barbie-pink);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 15px 45px rgba(255, 42, 117, 0.45),
        inset 0 0 25px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: barbiePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.panel.hidden {
    display: none;
}

/* Barbie Profile Avatar Container */
.barbie-avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.barbie-avatar-container.small-avatar {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
}

.avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--barbie-gold), var(--barbie-pink), var(--barbie-light-pink), var(--barbie-gold));
    background-size: 300% 300%;
    animation: ringGlow 4s ease infinite;
    box-shadow: 
        0 0 30px rgba(255, 42, 117, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8);
}

.barbie-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a001a;
    display: block;
}

.crown-badge {
    position: absolute;
    top: -12px;
    right: -6px;
    font-size: 2rem;
    filter: drop-shadow(0 0 12px var(--barbie-gold));
    animation: crownBounce 2.5s ease-in-out infinite;
}

.barbie-avatar-container.small-avatar .crown-badge {
    font-size: 1.4rem;
    top: -8px;
    right: -4px;
}

@keyframes ringGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(8deg); }
}

h1 {
    color: var(--barbie-pastel);
    margin-bottom: 10px;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 42, 117, 0.9), 0 0 30px var(--barbie-gold);
    font-size: 2.1rem;
}

h2 {
    color: var(--barbie-pastel);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 42, 117, 0.8), 0 0 20px var(--barbie-gold);
    font-size: 1.8rem;
}

p {
    margin-bottom: 25px;
    color: #fce4ec;
    font-size: 1.15rem;
    font-weight: 500;
}

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

input {
    padding: 16px;
    border-radius: 18px;
    border: 2.5px solid var(--barbie-dark-pink);
    background: rgba(25, 0, 25, 0.75);
    color: var(--barbie-gold);
    font-size: 1.3rem;
    text-align: center;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
}

input::placeholder {
    color: rgba(255, 182, 193, 0.6);
    font-weight: normal;
    letter-spacing: normal;
    font-size: 1.05rem;
}

input:focus {
    border-color: var(--barbie-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 12px var(--barbie-pink);
    transform: scale(1.02);
}

button {
    padding: 16px;
    border-radius: 18px;
    border: 2px solid var(--barbie-gold);
    background: linear-gradient(135deg, var(--barbie-dark-pink), var(--barbie-pink), var(--barbie-light-pink));
    color: white;
    font-size: 1.25rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 8px 25px rgba(255, 42, 117, 0.5);
}

button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.8), 0 0 20px var(--barbie-pink);
    background: linear-gradient(135deg, var(--barbie-pink), #ff4081, var(--barbie-gold));
}

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

.error {
    color: #ff5252;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.8);
}

.error.hidden {
    display: none;
}

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

.platform-card {
    background: rgba(255, 42, 117, 0.15);
    border: 2px solid rgba(255, 105, 180, 0.5);
    border-radius: 22px;
    padding: 24px 15px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.platform-card:hover {
    background: rgba(255, 42, 117, 0.35);
    border-color: var(--barbie-gold);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 42, 117, 0.6),
        inset 0 0 20px rgba(255, 215, 0, 0.3);
}

.card-icon {
    font-size: 3.4rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px var(--barbie-pink));
    transition: transform 0.3s;
}

.platform-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

h3 {
    font-size: 1.25rem;
    color: var(--barbie-pastel);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 42, 117, 0.5);
}

.expired-panel {
    border-color: #ff1744 !important;
    box-shadow: 0 0 35px rgba(255, 23, 68, 0.6) !important;
}

.contact-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #d32f2f, #ff1744);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 23, 68, 0.4);
}

.contact-btn:hover {
    background: #b71c1c;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.7);
}

/* Footer Copyright */
.footer-copyright {
    margin-top: 25px;
    text-align: center;
}

.footer-copyright a {
    color: var(--barbie-gold, #ffd700);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 42, 117, 0.6);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 22px;
    border-radius: 18px;
    background: rgba(30, 0, 25, 0.75);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(10px);
}

.footer-copyright a:hover {
    transform: scale(1.06);
    color: #ffffff;
    border-color: var(--barbie-pink, #ff2a75);
    box-shadow: 0 0 25px rgba(255, 42, 117, 0.8), 0 0 15px rgba(255, 215, 0, 0.5);
}

@keyframes barbiePop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
