:root {
    --bg: #202020;
    --muted: #989898;
    --primary-500: #1a4fff;
    --primary-400: #3fa6ff;
    --accent: #789d2a;
    --card-bg: #262626;
}

:root {

    font-size: clamp(14px, 1.2vw + 12px, 18px);
}

body {
    background: var(--bg);
    color: var(--muted);
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
html {
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
}


.icon-accent {
    color: var(--accent) !important;
}

button,
.custom-file-label {
    background-position: 50% 50%;
    background-size: 120% 120%;
    background: linear-gradient(120deg, var(--primary-500) 0%, var(--primary-400) 40%, #0d1b2a 100%);
    border-radius: 6px;

    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 1.2em;
    outline: none;
    overflow: hidden;
    padding: 0.7em 2em;
    position: relative;
    text-align: center;
    transition: background-position 0.3s cubic-bezier(.4, 0, .2, 1);

}

input[type=file] {
    background: none;
    border: none;
    color: #e0e6ed;
    font-size: 1em;
    height: 0.1px;
    margin-bottom: 1.2em;

    opacity: 0;
    outline: none;

    position: absolute;
    width: 0.1px;
    z-index: -1;
}

#feed-block {
    margin-top: 48px;
}

#feed-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    min-height: 120px;
    width: 100%;
}

#file-chosen {
    color: var(--primary-400);
    font-size: 0.98em;
    margin-left: 1em;
    vertical-align: middle;
}

#modal-cancel-btn {
    background: #222;
    border: 1.5px solid #3fa6ff33;
    color: #7ecbff;
}

#modal-cancel-btn,
#modal-upload-btn {
    background-position: 50% 50%;
    background-size: 120% 120%;
    background: linear-gradient(120deg, #1a4fff 0%, #3fa6ff 40%, #0d1b2a 100%);
    border-radius: 6px;
    border: none;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 0;
    outline: none;
    overflow: hidden;
    padding: 0.7em 2em;
    position: relative;
    text-align: center;
    transition: background-position 0.3s cubic-bezier(.4, 0, .2, 1);
}

#modal-cancel-btn:hover {
    background: #333;
    color: #fff;
}

#modal-cancel-btn:hover,
#modal-upload-btn:hover {
    box-shadow: none;
}

#modal-preview-block img,
#modal-preview-block video {
    background: #000;
    border-radius: 12px;
    box-shadow: none;
    height: auto !important;
    max-height: 60vh !important;
    max-width: 100% !important;
    object-fit: contain !important;
    overflow: hidden !important;
    width: auto !important;
}

#modal-preview-block video,
.admin-file-card video,
.alb-slide video,

.profile-file-card video,
.profile-grid-container video {
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    overflow: hidden !important;
    width: auto !important;
}

.admin-file-card img,
.profile-file-card img,
.profile-grid-container img {
    display: block !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    overflow: hidden !important;
    width: auto !important;
}

.admin-file-card video,
.profile-file-card video,
.profile-grid-container video {
    display: block !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    overflow: hidden !important;
    width: auto !important;
}

.adv-card {
    align-items: center;
    background: rgba(10, 20, 40, 0.95);
    border-radius: 18px;
    border: 1.5px solid #22293a;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    max-width: 340px;
    min-width: 260px;
    padding: 32px 32px 28px 32px;
    transition: border 0.2s;
}

.adv-card:hover {
    border: 1.5px solid #3fa6ff;
    box-shadow: none;
}

.adv-desc {
    color: #b6c6e3;
    font-size: 1em;
    line-height: 1.5;
    text-align: center;
}

.adv-icon {
    color: #3fa6ff;
    font-size: 2.2em;
    margin-bottom: 0.5em;
}

.adv-title {
    color: #e0e6ed;
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 0.4em;
    text-align: center;
}

.advantages-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin: 18px 0 0 0;
}

.advantages-title {
    color: #3fa6ff;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 32px 0 0 0;
    text-align: center;
}

.centered-form {
    align-items: center;
    animation: slide-fadein 1.1s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.centered-form h2 {
    color: #e0e6ed;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5em;
}

.centered-form::after {
    display: none !important;
}

.centered-form::after {
    background: radial-gradient(circle at 50% 60%, #3fa6ff77 0%, #1a4fff33 60%, transparent 100%);
    bottom: 32px;
    content: '';
    filter: blur(32px);
    height: 120px;
    left: 50%;
    opacity: 0.95;
    pointer-events: none;
    position: absolute;
    top: auto;
    transform: translateX(-50%);
    width: 380px;
    z-index: -1;
}

.close {
    color: #3fa6ff;
    cursor: pointer;
    font-size: 2em;
    font-weight: 700;
    position: absolute;
    right: 22px;
    top: 18px;
    transition: color 0.2s;
    z-index: 10;
}

.close:hover {
    color: #fff;
}

.drop-icon {
    display: block;
    font-size: 2.5em;
    margin-bottom: 18px;
    user-select: none;
}

.drop-text {
    color: #fff;
    font-size: 1.08em;
    text-align: center;
    user-select: none;
}

.drop-zone {
    align-items: center;
    animation: drop-fadein 1.2s cubic-bezier(.4, 0, .2, 1);
    background: rgba(10, 20, 40, 0.25);
    border-radius: 16px;
    border: 2px dashed #3fa6ff55;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto 18px auto;
    max-width: 630px;
    min-height: 210px;
    min-width: 510px;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card {
    align-items: center;
    animation: card-fadein 1.3s cubic-bezier(.4, 0, .2, 1);
    background: rgba(10, 20, 40, 0.95);
    border-radius: 18px;
    border: 1.5px solid #22293a;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 32px 44px 28px 44px;
    position: relative;
    transition: border 0.2s;
    z-index: 1;
}

.feature-card::after {
    background: radial-gradient(circle at 50% 30%, #3fa6ff44 0%, #1a4fff22 60%, transparent 100%);
    content: '';
    filter: blur(48px);
    height: 400px;
    left: 50%;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
    top: -180px;
    transform: translateX(-50%);
    width: 800px;
    z-index: -1;
}

.feature-card:hover {
    border: 1.5px solid #3fa6ff;
    box-shadow: none;
}

.feature-label {
    color: #7ecbff;
    font-size: 1.1em;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 0.2em;
    text-align: center;
}

.feature-value {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background: linear-gradient(90deg, #1a4fff 0%, #3fa6ff 100%);
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2em;
}

.feature-value span {
    font-size: 0.6em;
    font-weight: 500;
    letter-spacing: 0;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin: 48px 0 0 0;
}



.feed-header-flex {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    left: 0;
    padding-left: 300px;
    position: fixed;
    top: 24px;
    width: 100vw;
    z-index: 20;
}

.feed-link-btn {
    align-items: center;
    background: #232a36;
    border-radius: 6px;
    box-shadow: none;
    color: #fff;
    display: flex;
    font-size: 1.1em;
    font-weight: 500;
    height: 38px;
    margin-left: 18px;
    padding: 0.7em 2em;
    text-decoration: none;

}

.feed-sort-btn,
.feed-type-btn {
    background: #232a36;
    border-radius: 6px;
    border: none;

}

.feed-sort-btn.active,
.feed-type-btn.active {
    background: #1a4fff;
    color: #fff;
}



.header-flex-logo {
    align-items: center;
    display: flex;
    gap: 16px;
    text-decoration: none;
}

.header-line {
    background: #111;
    border: none;
    height: 2px;
    margin: 100px 0 0 0;
    opacity: 0.7;
    width: 100%;
}

.header-logo-img {
    display: inline-block;
    height: 38px;
    max-width: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.header-title {
    color: #3fa6ff;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 2px;
    user-select: none;
}

.history-copy-icon {
    cursor: pointer;
    height: 24px;
    transition: transform 0.2s ease;
    width: 24px;
}

.history-copy-icon:hover {
    transform: none;
}

.history-copy-overlay {
    align-items: center;
    background: none;
    border-radius: 50%;
    display: flex;
    height: 48px;
    justify-content: center;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, background 0.2s ease;
    width: 48px;
}

.history-copy-overlay:hover {
    background: none;
}

.history-item {
    cursor: pointer;
    position: relative;

}

.history-item:hover {
    transform: none;
}

.history-item:hover .history-copy-overlay {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    animation: modal-fadein 0.3s cubic-bezier(.4, 0, .2, 1);
    background: rgba(10, 15, 26, 0.88);
    display: none;
    height: 100vh;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1000;
}

.modal-content {
    align-items: center;
    animation: modal-content-fadein 0.4s cubic-bezier(.4, 0, .2, 1);
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1b2a 100%);
    border-radius: 18px;
    box-shadow: none;
    border: 1px solid #FFFFFF33;
    display: flex;
    flex-direction: column;
    margin: 7vh auto;
    max-width: 700px;
    min-width: 320px;
    padding: 48px 48px 36px 48px;
    position: relative;
}

.no-bg-anim {
    animation: none !important;
    background: #111 !important;
    transition: none !important;
}

.page-line {
    background: #111;
    height: 7px;
    margin: 0 0 32px 0;
    opacity: 0.7;
    width: 100%;
}

.result {
    margin-top: 1.2em;
    word-break: break-all;
}

.result a {
    color: #3fa6ff;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

.result a:hover {
    color: #1a4fff;
    text-decoration: underline;
}

@keyframes bgfade {
    0% {
        background: #102347;
    }

    100% {
        background: #050914;
    }
}

@keyframes body-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes card-fadein {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes drop-fadein {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes modal-content-fadein {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes modal-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-fadein {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {}

@media (max-width: 600px) {
    .feature-card::after {
        height: 220px;
        top: -80px;
        width: 180vw;
    }
}

@media (max-width: 600px) {
    .drop-zone {
        max-width: 98vw;
        min-height: 120px;
        min-width: 0;
        width: 95vw;
    }
}

@media (max-width: 600px) {
    .centered-form {
        padding: 1.2em 0.5em;
        width: 95vw;
    }

    .centered-form::after {
        bottom: 12px;
        height: 80px;
        width: 95vw;
    }

    .header {
        font-size: 1em;
        padding: 12px 10px;
    }
}

@media (max-width: 600px) {

    #modal-preview-block img,
    #modal-preview-block video {
        height: auto !important;
        max-height: 40vh !important;
        max-width: 90vw !important;
        object-fit: contain !important;
        overflow: hidden !important;
        width: auto !important;
    }

    .modal-content {
        max-width: 98vw;
        min-width: 0;
        padding: 18px 4vw 18px 4vw;
    }
}

@media (max-width: 600px) {}

@media (max-width: 600px) {
    .feed-header-flex {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-left: 8px;
        top: 10px;
    }

    .feed-link-btn {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .feature-card {
        min-width: 0;
        padding: 24px 0 20px 0;
        width: 90vw;
    }

    .features-row {
        align-items: center;
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 800px) {}

@media (max-width: 900px) {
    .adv-card {
        max-width: 98vw;
        min-width: 0;
        padding: 24px 0 20px 0;
        width: 90vw;
    }

    .advantages-row {
        align-items: center;
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .feed-header-flex {
        gap: 12px;
        padding-left: 16px;
    }

    .feed-link-btn {
        font-size: 1em;
        padding: 0.6em 1.2em;
    }

    .header-title {
        font-size: 1.1em;
    }
}


.support-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #1A1D1266;
    border: 1.4px solid #FFFFFF33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.support-btn:hover {
    background: #1A1D12AA;
    border-color: #FFFFFF55;
    transform: translateY(-2px);
}

.support-btn img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
}


.support-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.support-modal.show {
    display: flex;
}

.support-modal-content {
    background: var(--card-bg);
    border: 1px solid #FFFFFF33;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.support-modal-title {
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #EBEBEB;
    margin-bottom: 16px;
    line-height: 1.2;
}

.support-modal-text {
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #828282;
    margin-bottom: 32px;
    line-height: 1.4;
}

.support-modal-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 32px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.support-modal-btn:hover {
    background: #6a8a25;
    transform: translateY(-1px);
}

.support-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #989898;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.support-modal-close:hover {
    color: #fff;
}


.mobile-menu-btn.support-mobile {
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "ELGR" 1, "ELSH" 2;
    scrollbar-width: none !important;
    scrollbar-color: unset !important;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    word-wrap: break-word;
    text-align: center;
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
    background: transparent;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.mobile-menu-btn.support-mobile:hover {
    background: rgba(120, 157, 42, 0.1);
}


@media (max-width: 768px) {
    .support-btn {
        display: none !important;
    }
}