/* RPRU Site Styles */
body {
    font-family: 'Tektur', sans-serif;
    background-color: #191E24;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    letter-spacing: -0.02em;
}

/* Modern Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Hero Text Effect */
.text-hero {
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #191E24;
}

::-webkit-scrollbar-thumb {
    background: #333B46;
    border-radius: 10px;
}

/* Glow Spheres */
.glow-sphere {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

/* Resource Card Hover Effects */
.resource-card {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.resource-card:hover .resource-card-overlay {
    opacity: 1;
}

.resource-card:hover .resource-card-image {
    transform: scale(110%);
}

.resource-card-overlay {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.resource-card-image {
    transition: transform 1s ease;
}

/* Button Effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideInFromTop 0.4s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(40px, 10vw, 80px);
    }

    .glass-card {
        border-radius: 24px;
    }

    .nav-mobile {
        display: none;
    }
}

/* Form Elements */
.form-input {
    background: rgba(25, 30, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: #333B46;
    padding: 80px 24px;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Стили чекбоксов */
.checkbox-custom {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.checkbox-custom:checked {
    background: white;
    border-color: white;
}

.checkbox-custom:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3b82f6;
    font-size: 12px;
    font-weight: bold;
}

.register-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
}

.register-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.register-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.register-checkbox input:checked ~ .checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.register-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.register-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Радиокнопки */
input[type="radio"]:checked + label {
    background: rgba(59, 130, 246, 0.5) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: white !important;
}

input[type="file"] {
    display: none;
}

#profile-menu {
    background: rgba(25, 30, 36, 0.96);
}

.profile-name:hover {
    color: rgb(59 130 246 / 0.5);
    text-decoration: underline rgb(59 130 246 / 0.5);
}

.htmx-indicator {
    display: none; /* Скрываем полностью */
}

/* Когда идет запрос, HTMX добавляет этот класс к body или элементу */
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: block; /* Показываем полоску */
}

.avatar-form {
    cursor: pointer;
}

.upload-avatar {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;

}

.avatar-svg {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.y-wrapper {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    vertical-align: bottom;
}

.dash {
    display: block;
    width: 0.5em;
    height: 0.07em;
    background: #3b82f6;
    border-radius: 99px;
    margin-bottom: 0.05em;
    -webkit-text-fill-color: initial;
}

.text-message {
    max-width: 520px;
}

.policy-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 3rem;
    padding: 4rem;
}

.accent-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.glass-card--modify {
    padding: 2.5rem;
    border-radius: 2rem;
}

.privacy-title {
    color: #3b82f6;
    margin-top: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    font-size: 1rem;
}

.privacy-content {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 2;
    margin-bottom: 0.2rem;
}

* Nexus Pulse Button Logic *

/
.pulse-btn .crystal-body {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Chain Hover */
.pulse-btn.hover .crystal-body {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Target Point */
.pulse-btn.target-hover .crystal-body {
    background-color: rgb(59 130 246 / 0.3);
    border-color: rgba(96, 165, 250, 0.4);
    color: white;
    transform: translate3d(0, -10px, 5px) rotate(8deg) scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Fixed Selection */
.pulse-btn.active .crystal-body {
    background: rgba(59, 130, 246, 0.6);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.accent-glow-success {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-pulse {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.animate-check {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}




