:root {
    --primary-bg: #2d004d;
    --secondary-bg: #4a007b;
    --text-dark: #f0e6fa;
    --text-light: #c0a0e0;
    --accent-color: #8a2be2;
    --accent-color-hover: #9b41ef;
    --special-color: #ff69b4;
    --special-color-hover: #ff85c6;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.5);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --theme-transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

body.light-theme {
    --primary-bg: #f7f9fc;
    --secondary-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --accent-color: #6a7ee7;
    --accent-color-hover: #526be6;
    --special-color: #e76a7e;
    --special-color-hover: #e6526b;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    transition: var(--theme-transition);
}

#secret-monesy {
    position: fixed;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    opacity: 0.15;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    cursor: pointer;
}

#secret-monesy:hover {
    top: 5px;
    opacity: 1;
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.admin-content {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 380px;
    box-shadow: var(--shadow-hover);
}

.admin-content input {
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    background: var(--primary-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-actions button {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: 0.3s;
}

#add-btn { background: var(--accent-color); color: white; }
#close-admin { background: #666; color: white; }

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    border: 4px solid var(--secondary-bg);
    transition: var(--theme-transition);
}

.title {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 2.8em;
    margin: 0;
    transition: color 0.5s ease;
}

.theme-toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--accent-color);
    box-shadow: var(--shadow-light);
    transition: var(--theme-transition);
    z-index: 20;
}

.buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 25px;
    background-color: var(--accent-color);
    color: var(--secondary-bg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2em;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.btn i { margin-right: 12px; font-size: 1.3em; }
.btn:hover { background-color: var(--accent-color-hover); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-donate, .btn-special { background-color: var(--special-color); }

.footer { width: 100%; text-align: center; padding: 20px; color: var(--text-light); font-size: 0.9em; }
.company-logo { width: 100px; height: auto; margin-bottom: 10px; opacity: 0.8; }
.footer-text a { color: var(--text-light); text-decoration: none; font-weight: 600; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.8s ease-out forwards; opacity: 0; }
.fade-in-delay-1 { animation: fadeIn 0.8s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease-out 0.3s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeIn 0.8s ease-out 0.4s forwards; opacity: 0; }
.fade-in-delay-4 { animation: fadeIn 0.8s ease-out 0.5s forwards; opacity: 0; }
.fade-in-delay-5 { animation: fadeIn 0.8s ease-out 0.6s forwards; opacity: 0; }
.fade-in-delay-6 { animation: fadeIn 0.8s ease-out 0.7s forwards; opacity: 0; }
.fade-in-delay-7 { animation: fadeIn 0.8s ease-out 0.8s forwards; opacity: 0; }

#falling-avatars-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.falling-item {
    position: absolute;
    top: -100px;
    object-fit: cover;
    animation: fall linear infinite;
}

.falling-avatar { border-radius: 50%; opacity: 0.6; filter: blur(1px); }
.monesy-avatar { border-radius: 5px; opacity: 0.8; }

@keyframes fall {
    from { transform: translateY(0vh) rotate(0deg); }
    to { transform: translateY(105vh) rotate(360deg); }
}

@media (max-width: 480px) {
    .title { font-size: 2em; }
    .btn { padding: 15px 20px; font-size: 1.1em; }
    #secret-monesy { width: 60px; top: -30px; }
}