:root {
    --background-color-dark: #181818;
    --background-color-light: #191A1F;
    --border-color: #2b2b2b;
    --color-theme-light: #b571c8;
    --color-theme-dark: #532560;
    --color-link: #c2c2c2;
    --color-primary: var(--color-theme-light);
    --color-primary-dark: var(--color-theme-dark);
    --color-secondary: #797779;
    --color-secondary-dark: #333;
    --color-success: #449d52;
    --color-success-dark: #27622a;
    --color-danger: #b95757;
    --color-danger-dark: #802020;
    --color-warning: #b3a955;
    --color-warning-dark: #775f19;
    --color-info: #6889aa;
    --color-info-dark: #19476f;
    --border-style: 1px solid var(--border-color);
    --border-radius: 2px;
    --bs-breadcrumb-divider: '>';
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background: #131111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    pointer-events: none;
    background: radial-gradient( circle at top, rgba(158, 104, 238, 0.19), transparent );
    filter: blur(120px);
    z-index: -1;
}

/* Basic components */
a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

a:active, a.active {
    color: var(--color-theme-light);
}

p a {
    font-weight: 700;
    color: #ddd;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}

h1, h2 {
    font-weight: 600;
    color: #ffffff;
}

h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--color-theme-light);
}

p {
    color: #bbb;
}

button, .btn {
    padding: 3px 10px;
    font-size: 13px;
    border-radius: 3px;
    color: #dfdfdf;
}

.btn.btn-primary {
    background: var(--color-theme-dark);
    border-color: var(--color-theme-light);
}

.btn.btn-secondary {
    background: #333;
    border-color: #797779;
}

.btn.btn-success {
    background: #27622a;
    border-color: #449d52;
}

.btn.btn-danger {
    background: #802020;
    border-color: #b95757;
}

.btn.btn-warning {
    background: #775f19;
    border-color: #b3a955;
}

.btn.btn-info {
    background: #19476f;
    border-color: #6889aa;
}

.btn.btn-light {
    background: #dfdfdf;
    border-color: #f2f2f2;
    color: #3c3c3c;
}

.btn.btn-dark {
    background: #2b2b2b;
    border-color: #4f4f4f;
}

.btn.btn-round {
    border-radius: 8px;
    padding: .62rem 1.6rem;
    white-space: nowrap;
    transition: opacity .2s cubic-bezier(.4,0,.2,1), box-shadow .2s cubic-bezier(.4,0,.2,1);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.filter-card .btn-filter-reset:hover {
    border-color: #532560;
    color: #f0edf7 !important;
}

.form-control:focus {
    border-color: var(--color-theme-light);
    box-shadow: 0 0 5px 1px var(--color-theme-dark);
}

/* Firefox */
 * {
  scrollbar-width: auto;
  scrollbar-color: #673376 #191A1F;
}

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

*::-webkit-scrollbar-track {
    border-radius: 0px;
    background-color: #191A1F;
}

*::-webkit-scrollbar-track:hover {
    background-color: #191A1F;
}

*::-webkit-scrollbar-track:active {
    background-color: #191A1F;
}

*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #673376;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #A14FB7;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #A14FB7;
}

/* Advanced UX components */
/* - radio group, checkbox group (+pills) */
:is(.radio-group, .checkbox-group) {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

:is(.radio-group, .checkbox-group) input {
    display: none;
}

:is(.radio-group, .checkbox-group) label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .85rem;
    border-radius: 8px;
    border: 1px solid #2b2b2b;
    background: #191A1F;
    color: #797779;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    user-select: none;
}

:is(.radio-group, .checkbox-group) input:checked + label {
    background: rgba(181,113,200,.15);
    border-color: #b571c8;
    color: #b571c8;
}

:is(.radio-group, .checkbox-group) label:hover {
    border-color: #532560;
    color: #f0edf7;
}

.radio-group.pill label, .checkbox-group.pill label {
    border-radius: 99px;
}

/* Page main blocks */
#page-header {
    min-height: 76px;
    background: radial-gradient(circle at top, rgba(159, 122, 234, 0.16), transparent 60%), rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: #00000096 0 3px 15px;
    border-bottom: var(--border-style);
    z-index: 100;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

#page-content {
    display: flex;
    flex: 1 0 auto;
    place-items: start center;
    justify-content: center;
}

#page-footer footer {
    background: var(--background-color-dark);
    padding: 10px 15px;
}

/* Page header with top menu */
#page-header header {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

#page-header .logo {
    position: relative;
}

#page-header .logo img {
    max-height: 55px;
}

#page-header .logo h3 {
    padding-top: 6px;
}

#page-header .logo h3 span {
    color: #cacaca;
}

#main-menu {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#user-menu {
    display: flex;
    align-items: center;
    justify-content: right;
    padding: 0;
}

#user-menu i {
    position: relative;
    display: block;
    width: 40px;
    height: 35px;
    padding: 3px;
    margin: 0 5px;
    border: var(--border-style);
    border-radius: 30px;
    background: #151515;
    align-content: center;
    color: #949395;
}

#user-menu i span {
    display: none;
    position: absolute;
    top: -5px;
    left: 20px;
    min-width: 22px;
    height: 22px;
    padding: 5px;
    color: #fff;
    background: #64137b;
    font-size: 12px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    border-radius: 25px;
}

.message-counter.show {
    display: inline-block !important;
}

#page-header a {
    font-size: 15px;
}

.user-block i {
    padding: 0 25px 0 0;
}

.user-block i:last-child {
    padding: 0;
}

#loading-progress {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0;
    background: var(--color-theme-light);
    transition: width 0.3s ease;
    z-index: 99999;
}

/* Dropdown menus */
div.dropdown-container {
    position: relative;
    display: inline-block;
}

div.dropdown-menu {
    display: none;
    position: absolute;
    top: 190%;
    right: 0;
    background-color: #1e1824;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #cccccc;
    font-size: 13px !important;
}

.dropdown-menu a:hover {
    background-color: var(--color-theme-dark);
    color: #eeeeee;
}

.dropdown-menu .dropdown-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 5px 0 5px;
    padding: 0;
}

.dropdown-toggle {
    cursor: pointer;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 11px;
}

.breadcrumb .breadcrumb-item {

}

/* Galleries */
.gallery {
    gap: 10px;
}

.gallery.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-flow: dense;
}

@media (max-width: 800px) {
    .gallery.grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery.grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery.grid .item.landscape {
    grid-column: span 2;
}

.gallery.grid.portrait-layout .item.portrait {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery.grid .item.landscape.large {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery.grid .item.portrait.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery.grid .item.landscape.promoted {
    grid-column: span 6;
    grid-row: span 3;
    order: -1;
}

.gallery.grid .item.portrait.promoted {
    grid-column: span 3;
    grid-row: span 3;
    order: -1;
}

.gallery.grid.featured > :nth-child(-n + 10).landscape {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery.grid.featured > :nth-child(-n + 10).portrait {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery.grid.featured > :first-child.portrait {
    grid-column: span 3;
    grid-row: span 3;
}

.gallery.grid.featured > :first-child.landscape {
    grid-column: span 4;
    grid-row: span 2;
    /* grid-area: 1 / 1 / auto / 3; */
}

/* User profile */
.profile {
    place-self: start;
}

.profile .profile-header {
    position: relative;
    margin-bottom: 20px;
}

.profile .cover {
    width: 100%;
    height: 210px;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    background: url("/img/patterns/gplay.png");
}

.profile .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.profile .avatar {
    padding: 6px;
    margin: 20px 0 0 20px;
    background: #f0f0f0;
    box-shadow: #000000bd 0 0 10px 2px;
    min-width: 145px;
}

.profile .avatar img {
    width: 100%;
}

.profile .avatar .ribbon img {
    position: absolute;
    top: -6px;
    left: -9px;
    width: 150px;
}

.profile .avatar .ribbon span {
    position: absolute;
    display: inline-block;
    width: 150px;
    top: 36px;
    left: -22px;
    transform: rotate(-45deg);
    font-size: 20px;
    font-variant: small-caps;
    font-weight: 700;
    text-align: center;
}

.profile .envelope h2, .profile .envelope h5 {
    display: inline-block;
    padding-right: 20px;
}

.envelope p {
    font-size: 13px;
}

.envelope p.profile-stats {
    font-size: 16px;
}

.envelope .profile-stats span {
    margin: 0 15px 0 0;
}

.profile .envelope .btn {
    padding: 4px 10px;
    margin-top: 15px;
}

.profile .envelope .btn span {
    display: block;
    width: 80px;
}

.profile .votes {
    margin-top: 10px;
    width: 180px;
}

.profile .votes .score {
    font-size: 15px;
    color: #bfbfbf;
}

.profile .votes .score:last-child {
    float: right;
}

.profile .profile-menu {
    width: 100%;
    min-height: 45px;
    padding: 0;
    border: var(--border-style);
    border-bottom: none;
}

.profile .profile-menu ul {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.profile .profile-menu li {
    list-style: none;
    display: inline-block;
    padding: 5px 0;
    min-width: 120px;
    height: 100%;
}

.profile .profile-menu li.active {
    background: var(--color-theme-dark);
}

.profile .profile-menu li.active a {
    color: #fff;
}

@media (max-width: 600px) {
    .profile .profile-menu li {
        display: block;
        height: 45px;
        width: 100%;
    }
}

.profile .profile-menu li a {
    display: inline-block;
    height: 100%;
    width: 100%;
    text-align: center;
    align-content: center;
    border-right: 1px solid #242424;
    font-size: 13px;
    padding: 0 10px 0 5px;
}

.profile ul.location,
.profile ul.links {
    display: flex;
    padding-left: 0;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
}

.profile ul li {
    padding: 0;
    background: none;
    border: none;
    width: fit-content;
}

.profile ul.location li a,
.profile ul.links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 99px;
    background: #282835;
    border: 1px solid #4b3d53;
    font-size: 12px;
    color: #ccc4e1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}

.profile ul.location li i {
    color: #C40101;
    font-size: 14px;
    transition: color .15s ease;
}

.profile ul.links a i {
    font-size: 16px;
    color: #c1abd5;
    transition: color .15s ease;
}

.profile ul.links a:hover {
    border-color: #b571c8;
    color: #e0d8f0;
}

.profile ul.links a:hover i {
    color: #b571c8;
}

.profile .albums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
    max-width: 100%;
    gap: 15px;
}

.profile .albums {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile .album {
    position: relative;
    display: block;
    width: 200px;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile .album::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.5);
    z-index: 0;
}

.profile .album img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.4s ease;
}

.profile .album .album-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 13px;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
    z-index: 2;
}

.profile .album .album-info span {
    display: block;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Hover */
.profile .album:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.profile .album:hover img {
    transform: scale(1.05);
}

/* Album visibility select */
.visibility i.fa-solid {
    margin-right: 5px;
}

.visibility i.fa-lock-open, .visibility i.fa-user {
    color: #00A000;
}

.visibility i.fa-user-shield {
    color: #0074AC;
}

.visibility i.fa-user-tag, .visibility i.fa-key {
    color: #BD9700;
}

.visibility i.fa-lock {
    color: #D0430B;
}

.profile-content .tab-content {
    background: var(--background-color-dark);
    border: var(--border-style);
}

.profile-content .tab-content > div {
    padding: 20px 5px;
}

.tab-pane { display: none; position: relative }
.tab-pane.active { display: block; }
.tab-item.active a { font-weight: bold; }

table.metrics {
    margin-bottom: 30px;
}

table.metrics td {
    font-size: 13px;
}

table.metrics tr td:first-child {
    padding-right: 15px;
    width: 170px;
}

table.metrics tr td:last-child {

}

table.metrics .yes {
    color: #30D530;
    font-size: 15px;
}

table.metrics .no {
    color: #ce2b2b;
    font-size: 15px;
}

.tabs {
    position: relative;
}

.tabs li i {
    position: absolute;
    left: 8px;
    padding-top: 4px;
}

/* Filters card */
.filter-card {
    background: #141119;
    border: 1px solid #2a2535;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    position: relative;
}

.filter-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(181,113,200,.07) 0%, transparent 70%);
    pointer-events: none;
}

.filter-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filter-row + .filter-row {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid #2b2b2b;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.filter-group > label {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #797779;
}

.filter-divider {
    width: 1px;
    background: #2b2b2b;
    align-self: stretch;
}

/* -- szerokości kolumn ----------------- */
.fg-keyword  { flex: 1 1 200px; min-width: 160px; }
.fg-location { flex: 1 1 200px; min-width: 160px; }
.fg-account  { flex: 2 1 340px; }
.fg-collab   { flex: 1.2 1 220px; }
.fg-nudity   { flex: 2 1 400px; }
.fg-sort     { flex: 1 1 180px; min-width: 160px; }
.fg-actions  { display: flex; align-items: flex-end; gap: .5rem; flex-shrink: 0; align-self: flex-end;}

/* -- text input / select --------------- */
.tf-input {
    background: #191A1F;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    color: #f0edf7;
    font-size: .88rem;
    padding: .62rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color .2s cubic-bezier(.4,0,.2,1), box-shadow .2s cubic-bezier(.4,0,.2,1);
    -webkit-appearance: none;
}

.tf-input::placeholder {
    color: #797779;
}

.tf-input:focus {
    border-color: #b571c8;
    box-shadow: 0 0 0 3px rgba(181,113,200,.15);
}

/* -- select z custom strzałką ---------- */
.tf-select-wrap {
    position: relative;
}

.tf-select-wrap::after {
    content: '\f884';
    font-family: 'Font Awesome 7 Free', serif;
    font-weight: 900;
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    color: #797779;
    pointer-events: none;
    font-size: .8rem;
}

select.tf-input {
    cursor: pointer; padding-right: 2.4rem;
}

select.tf-input option {
    background: #191A1F;
}

/* -- input + checkbox pod spodem ------- */
.input-with-check {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

/* -- custom checkbox (dokładna lok.) --- */
.tf-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    user-select: none;
    font-size: .8rem;
    color: #797779;
    transition: color .2s cubic-bezier(.4,0,.2,1);
}

.tf-check input[type="checkbox"] {
    display: none;
}

.tf-check-box {
    width: 16px; height: 16px;
    border-radius: 4px;
    border: 1px solid #2b2b2b;
    background: #191A1F;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .2s cubic-bezier(.4,0,.2,1);
}

.tf-check-box i { font-size: .65rem; color: #b571c8; opacity: 0; transition: opacity .2s cubic-bezier(.4,0,.2,1); }
.tf-check input[type="checkbox"]:checked ~ .tf-check-box {
    background: rgba(181,113,200,.15);
    border-color: #b571c8;
}
.tf-check input[type="checkbox"]:checked ~ .tf-check-box i { opacity: 1; }
.tf-check:hover { color: #f0edf7; }

/* -- responsywność --------------------- */
@media (max-width: 768px) {
    .filter-card    { padding: 1.25rem; }
    .filter-divider { display: none; }
    .fg-actions     { width: 100%; justify-content: flex-end; }
}

/* Profiles list */
.profiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.profiles.small {
    grid-template-columns: repeat(10, 1fr);
    max-width: 100%;
}

.homepage .profiles .profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 10px -10px #000000de;
}

@media (max-width: 1200px) {
    .profiles.small {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 1000px) {
    .profiles {
        grid-template-columns: repeat(4, 1fr);
    }
    .profiles.small {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 900px) {
    .profiles.small {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 770px) {
    .profiles {
        grid-template-columns: repeat(3, 1fr);
    }
    .profiles.small {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 680px) {
    .profiles.small {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 600px) {
    .profiles.small {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 500px) {
    .profiles.small {
        grid-template-columns: repeat(3, 1fr);
    }
    .profiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .profiles.small {
        grid-template-columns: repeat(2, 1fr);
    }
}

div.profile-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 265px;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    transition: transform 0.2s;
}

div.profile-card img {
    width: 100%;
    height: 265px;
    object-fit: cover;
}

div.profile-card .details {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #0d0d0da3;
    backdrop-filter: blur(4px);
}

div.profile-card .username {
    display: inline-block;
    width: 100%;
    padding: 3px 5px 0;
    font-size: 14px;
    text-align: center;
}

div.profile-card .profession {
    display: inline-block;
    width: 100%;
    padding: 3px 5px 0;
    font-size: 16px;
    text-align: center;
    color: var(--color-theme-light);
}

.profiles.small div.profile-card {
    height: 220px;
    max-width: 100px;
}

.profiles.small div.profile-card img {
    width: 100%;
    max-height: 170px;
}

.profiles.small div.profile-card span {
    font-size: 14px;
}

.profiles.small div.profile-card small {
    font-size: 12px;
    padding-top: 2px;
}

/* User card and avatar */
.user-card {
    display: flex;
    margin: 0 0 10px;
}

.avatar-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 40px;
}

.user-card .avatar-small {
    margin-right: 1rem;
}

/* Photo gallery and albums */
.gallery {
    column-gap: 10px;
}

.item {
}

.item img {
    width: 100%;
    height: 100%;
    display: block;
    margin-bottom: 10px;
    object-fit: cover;
}

#gallery-sort {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
}

#gallery-sort .sortable-ghost {
    opacity: 0.5;
    transform: scale(0.95);
}

#gallery-sort .sortable-drag {
    z-index: 1000;
}

.gallery-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border: 2px #575757 dashed;
    padding: 5px;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.has-actions {
    position: relative;
}

.has-actions .actions {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
}

.has-actions:hover .actions {
    display: block;
}

.profile-photo #user-photo {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s linear, box-shadow 0.3s linear;
}

.profile-photo #user-photo:not(.fullscreen):hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px 2px #000000d6;
}

.profile-photo .navigation {
    display: inline-block;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translate(0%, -50%);
    border: 1px solid #3c3c3c3d;
    background: #f2f2f245;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    z-index: 100;
}

.profile-photo .navigation svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: #09090975;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-photo .previous {
    left: 5px;
}

.profile-photo .next {
    right: 5px;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    object-fit: contain;
    background: #000000b2;
    align-content: center;
    text-align: center;
    box-shadow: none;
    transition: none !important;
    z-index: 500;
}

.photo-block {
    border: var(--border-style);
    background: var(--background-color-dark);
    border-radius: 6px;
    width: 100%;
    margin: 15px 0;
    padding: 15px 15px;
}

.photo-block label {
    color: var(--color-primary);
    font-size: 18px;
}

.photo-block .photo-description {
    white-space: break-spaces;
    color: #979797;
    font-size: 15px;
}

.photo-block .votes .score {
    width: 60px;
    display: inline-block;
}

.votes .score.positive {
    color: #0AB50A;
}

.votes .score.negative {
    color: #ce2b2b;
}

.votes i {
    cursor: pointer;
}

.votes.upvote i.fa-thumbs-up, i.fa-thumbs-up:hover {
    color: #30D530;
}

.votes.downvote i.fa-thumbs-down, i.fa-thumbs-down:hover {
    color: #ce2b2b;
}

.rating-bar {
    display: flex;
    height: 5px;
    background: #2d2d2d;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bar-positive {
    background: #4caf50;
    width: 0;
    transition: width 0.3s ease;
}

.bar-negative {
    background: #f44336;
    width: 0;
    transition: width 0.3s ease;
}

.exif {
    display: inline-block;
    width: 100%;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    height: 40px;
    margin: 30px auto 20px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

@media (max-width: 500px) {
    .pagination {
        justify-content: space-between;
        width: 100%;
    }

    .pagination a.page {
        display: none;
    }
}

.pagination a {
    margin: 0;
    border: 1px solid #333;
    display: inline-block;
    height: 100%;
    padding: 5px 5px;
    min-width: 45px;
    font-size: 13px;
    text-align: center;
    align-content: center;
    color: #c6c6c6;
    background: rgba(255, 255, 255, 0.05);
}

.pagination a:first-child {
    padding-right: 10px;
}

.pagination a:last-child {
    padding-left: 10px;
}

.pagination a:hover, .pagination a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Settings */
.layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
}

.settings .settings-menu {
    padding: 0;
    border: var(--border-style);
    background: var(--background-color-dark);
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .settings .settings-menu {
        border-radius: 10px 10px 0 0;
    }
}

.settings .settings-menu ul {
    margin: 0;
    padding: 0;
    width: 100%;
}

.settings .settings-menu li {
    list-style: none;
    position: relative;
    display: inline-block;
    padding: 0;
    width: 100%;
    height: auto;
    min-height: 44px;
    border-bottom: 1px solid #1e1e1e;
}

.settings .settings-menu li:last-child {
    border-bottom: none;
}

.settings .settings-menu li a {
    height: 100%;
    width: 100%;
    align-content: center;
    border-right: 1px solid #242424;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    font-size: .85rem;
    border-right: none;
    text-align: left;
    color: #797779;
    transition: color .2s ease, background .2s ease;
}

.settings .settings-menu li a:hover {
    color: #f0edf7;
    background: rgba(255, 255, 255, .03);
}

.settings .settings-menu li.active {
    background: rgba(181, 113, 200, .08);
}

.settings .settings-menu li.active a {
    color: var(--color-theme-light);
    font-weight: 500;
}

.settings .settings-menu li.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-theme-light);
    border-radius: 0 2px 2px 0;
}

.settings .settings-menu li a i {
    position: static;
    padding: 0;
    width: 16px;
    height: auto;
    border: none;
    background: none;
    border-radius: 0;
    align-content: unset;
    font-size: .85rem;
    color: inherit;
    display: inline;
    margin: 0;
    flex-shrink: 0;
}

.settings .tab-content {
    border: var(--border-style);
    background: var(--background-color-dark);
}

.settings h5:first-child {
    margin-top: 0;
}

.settings h5 {
    margin-top: 40px;
}

.settings table.files-list {
    width: 100%;
    font-size: 12px;
}

.settings table.files-list tr td:first-child {
    width: 250px;
    text-align: center;
}

.settings table.files-list tr td img {
    max-width: 240px;
    max-height: 160px;
}

.settings table.files-list tr td:last-child {
    text-align: right;
}

.settings output {
    font-size: 15px;
    font-weight: 700;
    float: right;
}

.settings table {
    width: 100%;
    font-size: 12px;
}

.settings table td:first-child {
    padding-left: 15px;
}

.settings table td:last-child {
    text-align: right;
    padding: 0 12px 15px 0;
}

/* User comments */
.user-comment .fa-thumbs-up.voted, .user-comment .fa-thumbs-up:hover {
    color: #0A0;
}

.user-comment .fa-thumbs-down.voted, .user-comment .fa-thumbs-down:hover {
    color: #B00;
}

.user-comment .fa-flag {
    color: #880000;
}

.user-comment .fa-flag:hover {
    color: #B00;
}

/* Tag selector */
.tags-input {
    padding: 8px;
    background-color: #1e1e1e;
    min-height: 46px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    cursor: text;
    position: relative;
}

.tags-input > input {
    flex: 1;
    border: none;
    outline: none;
    min-width: 100px;
    padding: 5px;
    font-size: 14px;
    background: transparent;
}

.tags-input > .tag, .tags > .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background-color: var(--color-theme-light);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    gap: 5px;
    animation: fadeIn 0.2s;
    white-space: nowrap;
}

.tags-input > .tag > .tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tags-input > .tag > .tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#suggestedTags .btn {
    margin: 0;
    padding: 0 5px 0 0;
}

/* Image selector */
.drop-zone {
    border: 2px dashed #7e7e7e;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--background-color-dark);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: #cacaca;
}

.drop-zone.dragover {
    border-color: var(--color-theme-light);
    background-color: #222;
}

.drop-zone-content {
    transition: opacity 0.3s;
}

.drop-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    padding: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all .3s linear;
    pointer-events: none;
}

.modal-content {
    border: 1px solid #515151 !important
}

.modal.show {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.modal label {
    font-size: 13px;
 }

.modal select, .modal input {
    font-size: 13px;
}

.modal .form-text {
    font-size: 12px;
    color: #919191;
}

/* Colors and main styles */
.dark {
    background: var(--background-color-dark);
    border: var(--border-style);
}


.box {
    width: 350px;
    background: #292929;
    padding: 20px 10px;
}

.col {
    padding: 15px;
}

.col-bg {
    background: var(--background-color-dark);
    border-radius: var(--border-radius);
    box-shadow: #00000080 0 0 10px 2px;
    border: var(--border-style);
}

.col-50 {

    height: 500px;
    flex: 2;
}

.col-25 {

    height: 500px;
    flex: 1;
}

/* Banners and alerts */
div.alert-primary {
    border: 1px solid #4392c2;
    background: #111f35;
}

div.alert-secondary {
    border: 1px solid #4b4b4b;
    background: #151515;
}

div.alert-success {
    border: 1px solid #83ae7f;
    background: #173319;
}

div.alert-warning {
    border: 1px solid #bbb47a;
    background: #3e390f;
}

div.alert-danger {
    border: 1px solid #b95252;
    background: #400909;
}

div.alert-info {
    border: 1px solid #79cac8;
    background: #0a343e;
}

.alert {
    position: relative;
    padding-bottom: 20px;
    overflow: hidden;
}

.alert .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0,0,0,0.1);
}

.alert .progress-bar {
    width: 100%;
    height: 100%;
    background: #a4a4a485;
    transition: width 0.1s linear;
}

/* Toast notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: sans-serif;
}

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

.toast .close-btn {
    margin-left: 12px;
    cursor: pointer;
    font-weight: bold;
}

/* Forms */
form div.captcha-challenge {
    margin: 0 0 10px 0;
}

.input-badge-wrapper {
    position: relative;
    width: 100%;
}

.input-badge-wrapper {
    position: relative;
    width: 100%;
}

.input-badge {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.input-badge.show {
    opacity: 1;
}

/* Messenger */
#chat-status {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 10px;
    margin: 0 10px;
    border: 4px solid #8F0000;
    vertical-align: middle;
}

#chat-status.online {
    border: 4px solid #006221;
    background-color: #006221;
}

.messenger .conversation-list, .messenger .messages {
    border: 1px solid #333;
}

#chats-list a {

}

#chats-list a div {
    display: flex;
    width: 100% !important;
    justify-content: space-between !important;
}

#chats-list a h6 {
    margin-bottom: .25rem !important;;
}

#chats-list a small {
    font-size: 11px;
}

#chats-list p {
    margin-bottom: .25rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messenger .conversation p {
    font-size: 12px;
}

.messenger .conversation.unread p {
    font-weight: 800;
    color: #fff;
}

.messenger .online-status {
    color: #ac0000;
    font-weight: 600;
}

.messenger .online-status.online {
    color: var(--color-success);
}

.messenger .chat {
    height: calc(100vh - 313px);
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

.messenger .chat .message {
    margin-bottom: 1rem !important;
    display: flex !important;
}

.messenger .chat .message.in {
}

.messenger .chat .message.out {
    justify-content: flex-end !important;
}

.messenger .chat .message .avatar {
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    width: 40px;
    height: 40px;
    color: #fff;
    flex-shrink: 0;
}

.messenger .chat .message.in .avatar {
    background-color: #2F2F2F;
    order: 1;
}

.messenger .chat .message.out .avatar {
    background-color: #0c3c66;
    order: 2;
}

.messenger .chat .message.in .content {
    margin-left: 1rem !important;
    order: 2;
}

.messenger .chat .message.out .content {
    margin-right: 1rem !important;
    text-align: right !important;
    order: 1;
}

.messenger .chat .message .text {
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: #040404 2px 2px 4px 0;
}

.messenger .chat .message.in .text {
    background-color: #2f2f2f;
}

.messenger .chat .message.out .text {
    background-color: #0c3c66;
}

.messenger .chat .message small {
    color: #8a8a8a;
    font-size: 10px;
}

.messenger .chat .message .tick:before {
    content: '○';
    font-size: 10px;
    color: #8c8c8c;
}

.messenger .chat .message .tick.delivered:before {
    content: '✓';
    font-size: 15px;
}

.messenger .chat .message .text p {
    color: #e1e1e1;
    margin-bottom: 0;
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
}

.messenger .messages .toolbar {
    padding: 1rem !important;
    flex-shrink: 0 !important;
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.messenger .scan-result {
    font-size: 17px;
    color: #b7b7b7;
    padding: 0 6px;
}

.messenger .scan-result.dangerous {
    color: #950000;
}

.messenger .scan-result.suspicious {
    color: #cea400;
}

.messenger .scan-result.safe {
    color: #2d9100;
}

/* Beta sign */
div.beta-sign {
    position: absolute;
    top: 7px;
    left: 70px;
    background: #532560;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    padding: 1px 6px;
    font-weight: 800;
    color: #debbe8;
    align-content: center;
    font-variant-caps: small-caps;
    white-space: nowrap;
}

a.violation-report {
    color: #c21616;
    font-size: 13px;
}

/* Autocomplete */
.autocomplete-list {
    z-index: 900;
    position: absolute;
    top: 46px;
    border: 1px solid #6b3a7d;
    background: #1e1e2e;
    color: #d0d0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.autocomplete-list a {
    display: block;
    padding: 9px 14px;
    font-size: 13.5px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s, color 0.15s;
}

.autocomplete-list a:last-child { border-bottom: none; }

.autocomplete-list a:nth-child(even) { background: rgba(255,255,255,0.03); }

.autocomplete-list a:hover {
    background: linear-gradient(90deg, #6b2d80, #4a1f5e);
    color: #fff;
}
