@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary-color: #FF9E6E; /* пастельный персиковый */
    --secondary-color: #FFC8A2; /* светлый акцент */
    --dark-bg: #0B0D0F; /* более глубокий фон */
    --darker-bg: #080A0C;
    --text-light: #F5F7FA; /* контрастнее текст */
    --text-gray: #C9D1D9; /* более читаемый серый */
    --shadow-color: rgba(255, 158, 110, 0.22);
    --gradient: linear-gradient(135deg, #FF9E6E 0%, #FFC8A2 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(2px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 13, 15, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 0;
    box-shadow: 0 0 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.auth-btn {
    padding: 0.7rem 1.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 14px;
    color: #0F141A;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px var(--shadow-color);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-banner {
    max-width: 600px;
    width: 90%;
    margin-bottom: 2rem;
    box-shadow: 0 0 80px var(--shadow-color);
    animation: float 3s ease-in-out infinite;
    border-radius: 20px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 24px var(--shadow-color);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px var(--shadow-color));
    }
    to {
        filter: drop-shadow(0 0 40px var(--shadow-color));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

.download-btn {
    padding: 1.2rem 3rem;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: #0F141A;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-color);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px var(--shadow-color);
}

.btn-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 120px;
}

.form-container {
    background: rgba(19, 21, 24, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.8s ease-out;
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E2E8F0;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 158, 110, 0.20);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-button {
    width: 100%;
    padding: 1rem 1.1rem;
    background: var(--gradient);
    border: none;
    border-radius: 14px;
    color: #0F141A;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px var(--shadow-color);
    margin-top: 1rem;
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-gray);
}

.form-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-link a:hover {
    color: var(--secondary-color);
}

.error-message {
    background: rgba(231, 76, 60, 0.16);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ff8f8f;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    text-align: center;
    white-space: pre-line;
}

.success-message {
    background: rgba(46, 204, 113, 0.16);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #7ae1a0;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    text-align: center;
    white-space: pre-line;
}

/* Generic notification badges (type-based) */
.notif {
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}
.notif.info {
    background: rgba(52, 152, 219, 0.16);
    border: 1px solid rgba(52, 152, 219, 0.35);
    color: #9fd3f1;
}
.notif.success {
    background: rgba(46, 204, 113, 0.16);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #95e1af;
}
.notif.warning {
    background: rgba(241, 196, 15, 0.16);
    border: 1px solid rgba(241, 196, 15, 0.35);
    color: #ffe08a;
}
.notif.error {
    background: rgba(231, 76, 60, 0.16);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ff9a9a;
}

/* Small icon button (send) */
.icon-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 12px;
    background: var(--gradient);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.icon-button:hover { transform: translateY(-1px); }

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-sidebar {
    background: rgba(19, 21, 24, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: fit-content;
}

.profile-main {
    background: rgba(19, 21, 24, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skin-viewer {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#skinCanvas {
    width: 100%;
    height: 100%;
}

.upload-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: #0F141A;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    position: relative;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.status-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.status-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-text {
    color: var(--text-gray);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    padding: 1rem;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: #0F141A;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(19, 21, 24, 0.92);
    padding: 2rem;
    border-radius: 18px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.3s ease-out;
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 158, 110, 0.7), rgba(255, 200, 162, 0.7));
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 200, 162, 0.9);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3838;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Highlight users awaiting admin reply */
.user-card.unanswered {
    border-left: 4px solid #ffc107;
}

/* Generic tabs (used in profile) */
.tab-btn {
    padding: 0.8rem 1rem;
    background: rgba(245, 247, 250, 0.95);
    border: 1px solid rgba(15, 20, 26, 0.08);
    border-radius: 12px;
    color: #0F141A;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #0F141A;
    box-shadow: 0 6px 18px var(--shadow-color);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Small inline file choose button */
.file-choose-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    width: auto;
    text-decoration: none;
}
.file-choose-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* SVG icons inside primary buttons */
.btn-icon-img {
    width: 22px;
    height: 22px;
    display: inline-block;
}

/* Tab bar container styling used on profile */
.admin-tabs {
    display: flex;
    gap: 1rem;
    background: rgba(19, 21, 24, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}
