body {
    background: linear-gradient(45deg, #1A4D4D, #1A2D42, #6E5F50, #2E4156, #291C0E);
    background-size: 400% 400%;
    font-family: 'Verdana', 'Arial', sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    transition: background-position 8s ease-in-out;
    padding-bottom: 40px;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: 20px;
    max-width: 1200px;
}

.media-container {
    display: grid;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    max-width: 1200px;
    grid-template-columns: repeat(2, 1fr);
}

.media-container:has(.media-wrapper:nth-child(1):nth-last-child(1)) {
    grid-template-columns: 1fr;
}

.media-container:has(.media-wrapper:nth-child(1):nth-last-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

.media-container:has(.media-wrapper:nth-child(1):nth-last-child(3)),
.media-container:has(.media-wrapper:nth-child(4)) {
    grid-template-columns: repeat(3, 1fr);
}

.media-wrapper img,
.media-wrapper video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    display: block;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  width: 95%;
  height: 95%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: scale(0.9);
  transition: transform 0.3s ease-out;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal:not(.active) .modal-content {
  transform: scale(0.9);
}

.modal img,
.modal video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block; 
  margin: 0 auto;
}

.modal-content img.active,
.modal-content video.active {
  opacity: 1;
  transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.copy-link-btn {
    background-color: #0072ff;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.copy-link-btn:hover {
    background: linear-gradient(90deg, #005bb5, #003f8a);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.m-link {
    position: relative;
    text-decoration: none;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 18px;
    padding: 14px 28px;
    margin-top: 20px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    z-index: 12;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.4);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.m-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(25deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.m-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 114, 255, 0.6);
    animation: pulse 1.2s infinite alternate;
}

.m-link:hover::before {
    opacity: 1;
    animation: shine 1s forwards;
}

@keyframes pulse {
    0% { box-shadow: 0 10px 25px rgba(0, 114, 255, 0.6); }
    50% { box-shadow: 0 14px 30px rgba(0, 198, 255, 0.7); }
    100% { box-shadow: 0 10px 25px rgba(0, 114, 255, 0.6); }
}

@keyframes shine {
    0% { transform: rotate(25deg) translateX(-100%); }
    100% { transform: rotate(25deg) translateX(100%); }
}

.media-wrapper.video {
    grid-column: span 2;
    grid-row: span 1;
}

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

.report-btn,
.send-report-btn {
    background: linear-gradient(90deg, #ff5c5c, #ff8a5c);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.report-btn:hover,
.send-report-btn:hover {
    background: linear-gradient(90deg, #e04e4e, #ff6e4e);
    box-shadow: 0px 5px 15px rgba(255, 92, 92, 0.5);
}

.btn-green {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white; 
    transition: background-color 0.3s ease;
}

.btn-green:hover {
    background-color: #45a049;
}

.report-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    width: 420px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.report-modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
}

#report-text,
textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-top: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#report-text::placeholder,
textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#report-text:focus,
textarea:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    outline: none;
}

.report-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

button {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: linear-gradient(90deg, #005bb5, #0099ff);
}

.admin-action-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'YV Text', sans-serif;
}

.admin-action-btn:hover {
    background-color: #c9302c;
}

@media (max-width: 600px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .media-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .media-wrapper img,
    .media-wrapper video {
        width: 100%;
        max-width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 12px;
        cursor: pointer;
        display: block;
    }
}

@media (max-width: 600px) {
    .modal {
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .modal img,
    .modal video {
        max-width: 90%;
        max-height: 90%;
    }
}

body {
    background-size: 400% 400%; 
    animation: gradientShift 20s ease infinite alternate;
    position: relative; 
}

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

:root {
    --accent-blue-neon: #00F0FF; 
    --accent-purple-neon: #8A2BE2; 
    --accent-pink-neon: #FF00FF; 
    --transition-speed-neon: 0.5s;
    --ease-out-expo-neon: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
    scrollbar-width: none; 
}

::-webkit-scrollbar { 
    display: none;
}

#background-canvas {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh; 
    z-index: 0;
    pointer-events: none; 
}

.fog-layer {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; 
    opacity: 0.8; 
}

.fog-layer::before,
.fog-layer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); 
    opacity: 0.1;
    mix-blend-mode: screen; 
}

.fog-layer::before {
    width: 150%;
    height: 150%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, #6E5F50 0%, transparent 70%);
    animation: fogMovement1 30s infinite ease-in-out alternate;
}

.fog-layer::after {
    width: 130%;
    height: 130%;
    bottom: -30%;
    right: -30%;
    background: radial-gradient(circle, #2E4156 0%, transparent 70%);
    animation: fogMovement2 35s infinite ease-in-out alternate-reverse;
}

@keyframes fogMovement1 {
    0% { transform: translate(0%, 0%) scale(1); opacity: 0.1; }
    33% { transform: translate(15%, -10%) scale(1.1); opacity: 0.15; }
    66% { transform: translate(-10%, 20%) scale(1.05); opacity: 0.12; }
    100% { transform: translate(0%, 0%) scale(1); opacity: 0.1; }
}

@keyframes fogMovement2 {
    0% { transform: translate(0%, 0%) scale(1); opacity: 0.08; }
    40% { transform: translate(-20%, -15%) scale(1.15); opacity: 0.13; }
    80% { transform: translate(10%, 5%) scale(1.08); opacity: 0.1; }
    100% { transform: translate(0%, 0%) scale(1); opacity: 0.08; }
}

.animated-shape {
    position: fixed;
    background: linear-gradient(45deg, var(--accent-blue-neon), var(--accent-purple-neon));
    opacity: 0.08;
    filter: blur(25px);
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    mix-blend-mode: screen;
    z-index: 0; 
    pointer-events: none; 
    will-change: transform, border-radius, opacity;
}

.animated-shape:nth-child(1) { width: 120px; height: 120px; animation-name: floatAndMorph1; animation-delay: 0s; }
.animated-shape:nth-child(2) { width: 100px; height: 100px; animation-name: floatAndMorph2; animation-delay: 2.5s; background: linear-gradient(45deg, var(--accent-pink-neon), #FF6600); }
.animated-shape:nth-child(3) { width: 150px; height: 150px; animation-name: floatAndMorph3; animation-delay: 5s; background: linear-gradient(45deg, #00F0FF, #00A8A8); }
.animated-shape:nth-child(4) { width: 90px; height: 90px; animation-name: floatAndMorph1; animation-delay: 7.5s; background: linear-gradient(45deg, #8A2BE2, #6E5F50); }
.animated-shape:nth-child(5) { width: 110px; height: 110px; animation-name: floatAndMorph2; animation-delay: 10s; background: linear-gradient(45deg, #2E4156, #00F0FF); }
.animated-shape:nth-child(6) { width: 130px; height: 130px; animation-name: floatAndMorph3; animation-delay: 12.5s; background: linear-gradient(45deg, #FF6600, var(--accent-pink-neon)); }
.animated-shape:nth-child(7) { width: 80px; height: 80px; animation-name: floatAndMorph1; animation-delay: 15s; background: linear-gradient(45deg, #00A8A8, #8A2BE2); }
.animated-shape:nth-child(8) { width: 140px; height: 140px; animation-name: floatAndMorph2; animation-delay: 17.5s; background: linear-gradient(45deg, #6E5F50, #00F0FF); }

@keyframes floatAndMorph1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { transform: translate(20vw, 30vh) scale(1.2) rotate(45deg); border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%; }
    50% { transform: translate(50vw, -10vh) scale(0.9) rotate(90deg); border-radius: 70% 30% 40% 60% / 70% 40% 60% 30%; }
    75% { transform: translate(80vw, 40vh) scale(1.1) rotate(135deg); border-radius: 30% 70% 60% 40% / 40% 60% 30% 70%; }
    100% { transform: translate(100vw, 0) scale(1) rotate(180deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes floatAndMorph2 {
    0% { transform: translate(100vw, 50vh) scale(1) rotate(0deg); border-radius: 50% 50% 20% 80% / 50% 80% 20% 50%; }
    25% { transform: translate(70vw, 80vh) scale(1.1) rotate(-30deg); border-radius: 80% 20% 50% 50% / 20% 50% 50% 80%; }
    50% { transform: translate(30vw, 60vh) scale(0.8) rotate(-60deg); border-radius: 20% 80% 50% 50% / 50% 50% 80% 20%; }
    75% { transform: translate(0vw, 10vh) scale(1.2) rotate(-90deg); border-radius: 50% 50% 80% 20% / 80% 20% 50% 50%; }
    100% { transform: translate(-20vw, 50vh) scale(1) rotate(-120deg); border-radius: 50% 50% 20% 80% / 50% 80% 20% 50%; }
}

@keyframes floatAndMorph3 {
    0% { transform: translate(-10vw, -10vh) scale(1) rotate(0deg); border-radius: 70% 30% 70% 30% / 30% 70% 30% 70%; }
    20% { transform: translate(30vw, 15vh) scale(1.1) rotate(20deg); border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; }
    40% { transform: translate(60vw, -5vh) scale(0.9) rotate(40deg); border-radius: 80% 20% 80% 20% / 20% 80% 20% 80%; }
    60% { transform: translate(90vw, 25vh) scale(1.2) rotate(60deg); border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
    80% { transform: translate(70vw, 40vh) scale(0.95) rotate(80deg); border-radius: 10% 90% 10% 90% / 90% 10% 90% 10%; }
    100% { transform: translate(-10vw, -10vh) scale(1) rotate(100deg); border-radius: 70% 30% 70% 30% / 30% 70% 30% 70%; }
}

@media (max-width: 768px) {
    .animated-shape {
        filter: blur(15px);
    }
}

@media (max-width: 480px) {
    .animated-shape {
        display: none; 
    }
    .fog-layer::before, .fog-layer::after {
        filter: blur(50px);
        opacity: 0.15;
    }
}

label {
    position: relative; 
    z-index: 60;
}

button {
    position: relative; 
    z-index: 60; 
}

a[href="https://pixsafe.online/acc"] {
    position: fixed;
    z-index: 1000; 
}

a[href="/help"] {
    position: fixed;
    z-index: 1000; 
}

.modal {
    z-index: 2000; 
}

#auth-popup {
    z-index: 1500; 
}

.media-container {
    display: grid;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.media-wrapper img {
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.media-wrapper:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    filter: brightness(1.05);
}

.footer {
    width: 100%;
    background: none;
    text-align: center;
    padding: 10px 0;
    z-index: 99;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
    color: #fff;
}

.footer a {
    font-family: 'Verdana', 'Arial', sans-serif;
    font-weight: 700;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-size: 18px;
    transition: text-shadow 0.3s;
}

.footer a:hover {
    text-shadow: 0px 0px 10px rgba(0, 198, 255, 0.5);
}

.gradient-text {
    background: linear-gradient(45deg, #00c6ff, #0072ff); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold; 
}

.red-text {
    color: #FF6347; 
    font-weight: bold;
}

    a[href="https://pixsafe.online/acc"]:hover {
        background-color: rgba(255, 255, 255, 0.85); 
        transform: scale(1.07); 
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }

    a[href="https://pixsafe.online/acc"]:active {
        transform: scale(0.97);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    }

    a[href="https://pixsafe.online/acc"] img {
        transition: transform 0.3s ease-in-out;
    }

    a[href="https://pixsafe.online/acc"]:hover img {
        transform: scale(1.1); 
    }

    a[href="https://pixsafe.online/acc"] span {
        white-space: nowrap; 
    }
    
.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

#modal-img {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform-origin: center center; 
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    display: block; 
    margin: 0; 
    transition: transform 0.1s ease-out; 
    cursor: grab;
}

@media (max-width: 768px) {
    .zoom-controls-panel {
        display: none;
    }
}

    #chat-toggle-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: rgba(128, 128, 128, 0.3);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    #chat-toggle-button:hover {
        background-color: rgba(128, 128, 128, 0.6);
        transform: scale(1.05);
    }

    #chat-container {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 350px;
        height: 450px;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
        z-index: 999;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

        opacity: 0;
        transform: translateY(20px) scale(0.95);
        visibility: hidden;
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
    }

    #chat-container.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }

    @media (max-width: 600px) {
        #chat-container {
            width: 90%;
            height: 80%;
            bottom: 10px;
            right: 5%;
            left: 5%;
        }
        #chat-toggle-button {
            bottom: 10px;
            right: 10px;
        }
    }

    #chat-header {
        background-color: #007bff;
        color: white;
        padding: 15px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.1em;
        font-weight: bold;
    }

    #chat-header img {
        height: 30px;
        margin-right: 10px;
    }

    #chat-close-button {
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
    }

    #chat-messages {
        flex-grow: 1;
        padding: 15px;
        overflow-y: auto;
        background-color: #e9ecef;
        display: flex;
        flex-direction: column;
    }

    .chat-message {
        margin-bottom: 10px;
        max-width: 80%;
        padding: 8px 12px;
        border-radius: 15px;
        word-wrap: break-word;
        display: flex; 
        align-items: flex-start; 
        gap: 8px; 
    }

    .chat-message .sender-icon {
        width: 24px; 
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .chat-message-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .chat-message.user {
        align-self: flex-end;
        background-color: #d1e7dd; 
        color: #0f5132;
        border-bottom-right-radius: 2px;
    }

    .chat-message.admin {
        align-self: flex-start;
        background-color: #ffffff; 
        color: #212529;
        border: 1px solid #dee2e6;
        border-bottom-left-radius: 2px;
    }

    .chat-message .sender-name {
        font-weight: bold;
        margin-bottom: 3px;
        font-size: 0.9em;
        display: block; 
    }

    #chat-input-area {
        display: flex;
        border-top: 1px solid #dee2e6;
        padding: 10px;
        background-color: #f8f9fa;
    }

    #chat-input {
        flex-grow: 1;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 20px;
        margin-right: 10px;
        font-size: 1em;
        autocomplete: off; 
    }

    #chat-send-button {
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 20px;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.3s ease;
    }

    #chat-send-button:hover {
        background-color: #218838;
    }
    
    .album-title-edit-container {
        display: flex; 
        align-items: center; 
        gap: 10px;
        margin-top: 10px; 
        margin-bottom: 20px; 
        width: 100%; 
        max-width: 600px; 
        margin-left: auto;
        margin-right: auto; 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    
    .album-title-edit-container input[type="text"] {
        flex-grow: 1; 
        padding: 12px 15px; 
        border: 1px solid #444; 
        border-radius: 8px; 
        background-color: #333; 
        color: #eee; 
        font-size: 16px; 
        outline: none; 
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); 
        max-width: 400px; 
    }
    
    .album-title-edit-container input[type="text"]::placeholder {
        color: #888; 
    }
    
    .album-title-edit-container input[type="text"]:focus {
        border-color: #007bff;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 5px rgba(0, 123, 255, 0.5);
    }
    
    .album-title-edit-container .btn-green {
        padding: 12px 25px; 
        font-size: 16px; 
        border-radius: 8px; 
        background-color: #28a745; 
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
    .album-title-edit-container .btn-green:hover {
        background-color: #218838;
        transform: translateY(-1px); 
    }
    
    .album-save-message {
        text-align: center;
        margin-top: -10px; 
        margin-bottom: 10px; 
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: bold;
        font-size: 14px;
        opacity: 0; 
        max-height: 0; 
        overflow: hidden; 
        transition: opacity 0.5s ease-out, max-height 0.5s ease-out, padding 0.5s ease-out;
    }
    
    .album-save-message.success {
        background-color: rgba(40, 167, 69, 0.2); 
        color: #28a745;
        opacity: 1;
        max-height: 50px; 
        padding: 8px 15px;
    }
    
    .album-save-message.error {
        background-color: rgba(220, 53, 69, 0.2); 
        color: #dc3545;
        opacity: 1;
        max-height: 50px; 
        padding: 8px 15px;
    }
    
    .album-custom-title-display {
        font-size: 0.7em; 
        color: #aaa; 
        display: inline-block;
        margin-left: 10px; 
        vertical-align: middle; 
    }
    
    .album-header {
        display: flex; 
        align-items: baseline; 
        flex-wrap: wrap; 
        justify-content: center;
        margin-bottom: 0; 
    }
    
    .album-header .album-custom-title-display {
        display: block; 
        width: 100%; 
        text-align: center; 
        margin-top: 5px;
        font-size: 0.6em;
    }
    
    @media (max-width: 768px) {
        .album-title-edit-container {
            flex-direction: column; 
            align-items: stretch;
        }
        .album-title-edit-container input[type="text"],
        .album-title-edit-container .btn-green {
            width: 100%; 
            max-width: none;
        }
    }
    
    .album-custom-title { 
        font-size: 0.8em;
        color: #ddd;
        display: block;
        margin-top: 5px;
    }
    
    .btn-yellow { 
        background-color: #ffc107;
        color: #333;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }
    
    .btn-yellow:hover { 
        background-color: #e0a800;
    }
    
    .comment-owner-block {
        position: relative;
        background-color: #2D3748; 
        border: 2px solid #4A5568; 
        border-radius: 12px; 
        padding: 24px; 
        margin-top: 30px; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
        max-width: 600px; 
        margin-left: auto;
        margin-right: auto;
    }
    
    .comment-owner-title {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-50%); 
        background-color: #2D3748; 
        padding: 4px 16px;
        color: #A0AEC0; 
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        border-radius: 6px;
    }
    
    .comment-owner-text {
        color: #E2E8F0; 
        font-size: 16px;
        line-height: 1.6; 
        text-align: center; 
        font-family: 'Inter', sans-serif; 
    }
    
    nav .menu {
    	 width: 100%;
    	 height: 80px;
    	 position: fixed; 
    	 top: 0;
    	 left: 0;
    	 display: flex;
    	 align-items: center;
    	 justify-content: space-between; 
    	 padding: 0 20px; 
    	 box-sizing: border-box;
    	 z-index: 11;
    }
    
    nav .menu a {
        text-decoration: none;  
        user-select: none;      
        color: inherit;         
        transition: all 0.3s ease;
        display: inline-block; 
        padding: 10px 15px;   
    }
    
    nav .menu .website_name {
    	 color: #695681;
    	 font-weight: 600;
    	 font-size: 20px;
    	 letter-spacing: 1px;
    	 background: white;
    	 padding: 4px 8px;
    	 border-radius: 2px;
    	 opacity: 0.5;
    	 transition: all 0.4s ease;
    	 cursor: pointer;
    	 margin-left: 0; 
    }
    
     nav .menu .website_name:hover {
    	 opacity: 1;
    }
    nav .menu .menu_links {
    	 transition: all 0.4s ease;
    	 opacity: 0.5;
    	 margin-left: auto; 
    }
     nav .menu .menu_links:hover {
    	 opacity: 1;
    }
     @media screen and (max-width: 799px) {
    	 nav .menu .menu_links {
    		 display: none;
    	}
    }
     nav .menu .menu_links .link {
    	 color: white;
    	 text-transform: uppercase;
    	 font-weight: 500;
    	 margin-right: 50px;
    	 letter-spacing: 2px;
    	 position: relative;
    	 transition: all 0.3s 0.2s ease;
    }
     nav .menu .menu_links .link:last-child {
    	 margin-right: 0;
    }
     nav .menu .menu_links .link:before {
    	 content: '';
    	 position: absolute;
    	 width: 0px;
    	 height: 4px;
    	 background: linear-gradient(90deg, #ffedc0 0%, #ff9d87 100%);
    	 bottom: -10px;
    	 border-radius: 4px;
    	 transition: all 0.4s cubic-bezier(0.82, 0.02, 0.13, 1.26);
    	 left: 100%;
    }
     nav .menu .menu_links .link:hover {
    	 opacity: 1;
    	 color: #fb8a8a;
    }
     nav .menu .menu_links .link:hover:before {
    	 width: 40px;
    	 left: 0;
    }
     nav .menu .menu_icon {
    	 width: 40px;
    	 height: 40px;
    	 position: relative;
    	 display: none;
    	 justify-content: center;
    	 align-items: center;
    	 cursor: pointer;
    }
     @media screen and (max-width: 799px) {
    	 nav .menu .menu_icon {
    		 display: none !important;
    		 
    	}
    }
     nav .menu .menu_icon .icon {
    	 width: 24px;
    	 height: 2px;
    	 background: white;
    	 position: absolute;
    }
     nav .menu .menu_icon .icon:before, nav .menu .menu_icon .icon:after {
    	 content: '';
    	 width: 100%;
    	 height: 100%;
    	 background: inherit;
    	 position: absolute;
    	 transition: all 0.3s cubic-bezier(0.49, 0.04, 0, 1.55);
    }
     nav .menu .menu_icon .icon:before {
    	 transform: translateY(-8px);
    }
     nav .menu .menu_icon .icon:after {
    	 transform: translateY(8px);
    }
     nav .menu .menu_icon:hover .icon {
    	 background: #ffedc0;
    }
     nav .menu .menu_icon:hover .icon:before {
    	 transform: translateY(-10px);
    }
     nav .menu .menu_icon:hover .icon:after {
    	 transform: translateY(10px);
    }
    
    @media screen and (max-width: 799px) {
        nav .menu .menu_links {
            display: none !important;
        }
    
        nav .menu .menu_links.active {
            display: flex !important;
            opacity: 1;
        }
    }
    
    .mobile-auth-button {
        display: none; /* скрыто по умолчанию */
        position: absolute;
        top: 10px;
        right: 20px;
        width: 75px;
        height: 75px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease-in-out;
        text-decoration: none;
        color: white;
        font-family: 'Roboto', Arial, sans-serif;
        position: absolute;
        text-align: center;
    }
    
    .mobile-auth-button span {
        position: absolute;
        top: 75px;
        font-size: 16px;
        font-weight: bold;
        color: white;
        text-shadow: 0 0 5px rgba(0,0,0,0.5);
        width: 100px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    @media screen and (max-width: 799px) {
        .mobile-auth-button {
            display: flex; 
            flex-direction: column;
        }
    }
    
    #chat-toggle-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: rgba(128, 128, 128, 0.3);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    #chat-toggle-button:hover {
        background-color: rgba(128, 128, 128, 0.6);
        transform: scale(1.05);
    }

    #chat-container {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 350px;
        height: 450px;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
        z-index: 999;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

        opacity: 0;
        transform: translateY(20px) scale(0.95);
        visibility: hidden;
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
    }

    #chat-container.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }

    @media (max-width: 600px) {
        #chat-container {
            width: 90%;
            height: 80%;
            bottom: 10px;
            right: 5%;
            left: 5%;
        }
        #chat-toggle-button {
            bottom: 10px;
            right: 10px;
        }
    }

    #chat-header {
        background-color: #007bff;
        color: white;
        padding: 15px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.1em;
        font-weight: bold;
    }

    #chat-header img {
        height: 30px;
        margin-right: 10px;
    }

    #chat-close-button {
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
    }

    #chat-messages {
        flex-grow: 1;
        padding: 15px;
        overflow-y: auto;
        background-color: #e9ecef;
        display: flex;
        flex-direction: column;
    }

    .chat-message {
        margin-bottom: 10px;
        max-width: 80%;
        padding: 8px 12px;
        border-radius: 15px;
        word-wrap: break-word;
        display: flex; 
        align-items: flex-start;
        gap: 8px; 
    }

    .chat-message .sender-icon {
        width: 24px; 
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0; 
    }

    .chat-message-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .chat-message.user {
        align-self: flex-end;
        background-color: #d1e7dd; 
        color: #0f5132;
        border-bottom-right-radius: 2px;
    }

    .chat-message.admin {
        align-self: flex-start;
        background-color: #ffffff; 
        color: #212529;
        border: 1px solid #dee2e6;
        border-bottom-left-radius: 2px;
    }

    .chat-message .sender-name {
        font-weight: bold;
        margin-bottom: 3px;
        font-size: 0.9em;
        display: block; 
    }

    #chat-input-area {
        display: flex;
        border-top: 1px solid #dee2e6;
        padding: 10px;
        background-color: #f8f9fa;
    }

    #chat-input {
        flex-grow: 1;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 20px;
        margin-right: 10px;
        font-size: 1em;
        autocomplete: off;
    }

    #chat-send-button {
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 20px;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.3s ease;
    }

    #chat-send-button:hover {
        background-color: #218838;
    }
    
    .blinking-text {
        animation: blink 1s linear infinite;
    }
    
    @keyframes blink {
        0% {
            opacity: 0;
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    
  #scroll-to-top {
    display: none;
    position: fixed;
    bottom: 80px; 
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #007bff; 
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease; 
  }

  #scroll-to-top:hover {
    background-color: #0056b3;
  }