:root {
    --bg-color: #080808;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent-primary: #4f46e5;
    --accent-secondary: #ec4899;
    --font-main: 'Outfit', sans-serif;
    --glow: rgba(79, 70, 229, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

::selection {
    background: rgba(79, 70, 229, 0.35);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(79, 70, 229, 0.35);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(10, 10, 10, 0.85);
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(10px);
    z-index: 5;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 2rem;
}

nav>* {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

nav.scrolled {
    height: 80px;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    background: linear-gradient(90deg, #f8f8f8 0%, #ffffff 42%, #7d7dff 50%, #ffffff 58%, #a8a8a8 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    text-decoration: none;
    animation: logoChromeShimmer 6s linear infinite;
    transition: filter 0.4s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 10px rgba(125, 125, 255, 0.4));
}

@keyframes logoChromeShimmer {
    0% {
        background-position: -100% center;
    }

    100% {
        background-position: 100% center;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 2rem;
}

.nav-dropdown-btn,
.nav-links .nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-left: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-dropdown-btn::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
    color: var(--text-primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(8, 8, 8, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-top: 0.75rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    width: 100%;
    height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-btn::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    margin-left: 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.nav-dropdown-menu a:first-child {
    border-radius: 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
}

header {
    padding: 8rem 0 4rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    animation: fadeInUp 1.2s ease-out;
}

.crafts-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.gaming-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:link,
.card:visited,
.card:active {
    color: var(--text-primary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.card:hover .card-frame {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.card:hover .card-thumb {
    transform: scale(1.05);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    top: 50px;
    right: 1.5rem;
    z-index: 5;
}

.status-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
    pointer-events: none;
}

.status--online {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status--online .status-pulse {
    opacity: 1;
    color: #10b981;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status--offline {
    background: #ef4444;
}


@keyframes ping {

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-arrow {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    gap: 0.5rem;
}

.btn-arrow svg {
    transition: transform 0.3s ease;
}

.card:hover .btn-arrow svg {
    transform: translateX(5px);
}

.card.lightbox-trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--card-border);
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 1.75rem;
    align-items: center;
}

.card.lightbox-trigger:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.35);
    outline-offset: 4px;
}

.card.lightbox-trigger .card-content {
    display: grid;
    gap: 1rem;
}

.card.lightbox-trigger .card-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card.lightbox-trigger .card-icon {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 280px;
    margin-bottom: 0;
}

.card.lightbox-trigger h3,
.card.lightbox-trigger .btn-arrow {
    color: var(--text-primary);
}

.card.lightbox-trigger p {
    color: var(--text-secondary);
}

.card.media-trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--card-border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

.card.media-trigger:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.35);
    outline-offset: 4px;
}

.card.media-trigger h3,
.card.media-trigger .btn-arrow {
    color: var(--text-primary);
}

.card.media-trigger p {
    color: var(--text-secondary);
}

.card.media-trigger>div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card.media-trigger .card-thumb {
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.card.lightbox-trigger .card-icon {
    max-height: 200px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.badge.active {
    background: rgba(79, 70, 229, 0.1);
    color: #818cf8;
    border-color: rgba(79, 70, 229, 0.3);
}

footer {
    margin-top: auto;
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin: 0 auto 3rem;
    background: var(--card-border);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

.admin-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.admin-input {
    flex: 1;
    min-width: 180px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.admin-input-craft {
    min-width: 450px;
}

.admin-input option {
    background: #111;
    color: #fff;
}

.admin-input:focus {
    border-color: rgba(79, 70, 229, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.admin-input[type="number"]::-webkit-outer-spin-button,
.admin-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.admin-input[type="number"] {
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: textfield;
}

select.admin-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #818cf8 50%), linear-gradient(135deg, #818cf8 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 6px 6px;
    padding-right: 2.5rem;
}

.admin-input[type="file"] {
    padding: 0.65rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-input[type="file"]::file-selector-button {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-input[type="file"]::file-selector-button:hover {
    background: rgba(79, 70, 229, 0.25);
}

.admin-btn {
    margin-top: 10px;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.35);
    background: rgba(79, 70, 229, 0.12);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    background: rgba(79, 70, 229, 0.18);
    border-color: rgba(79, 70, 229, 0.5);
}

.admin-output {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.contact-captcha-row {
    display: grid;
    grid-template-columns: 190px 50px minmax(180px, 1fr);
    gap: 0.65rem;
    align-items: center;
}

.contact-captcha-row img {
    width: 190px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.contact-submit {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.4px;
}

.contact-wrap {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.contact-card {
    padding: 2.2rem;
    border-radius: 22px;
    background:
        linear-gradient(110deg, rgba(79, 70, 229, 0.05), rgba(255, 255, 255, 0.01) 40%, rgba(236, 72, 153, 0.03)),
        var(--card-bg);
}

.contact-form {
    margin-top: 1.1rem;
    gap: 0.9rem;
}

.contact-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.contact-input {
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.contact-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, #818cf8 50%), linear-gradient(135deg, #818cf8 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 2px), calc(100% - 17px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: var(--text-primary);
}

.contact-select option {
    color: #1d1d1d;
    background: #f4f5f8;
}

.contact-select option:disabled {
    color: #7f7f87;
}

.contact-textarea {
    min-height: 140px;
}

.contact-captcha-row .admin-btn {
    width: 50px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

.brand-flicker {
    animation: flickerBrand 3.6s infinite;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.lightbox.is-open {
    display: block;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.lightbox__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1000px;
    height: 70vh;
    max-height: 600px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    z-index: 51;
    animation: lightboxFadeIn 0.35s ease-out;
}

.lightbox__media {
    position: relative;
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox__btn[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.lightbox__close {
    position: fixed;
    z-index: 52;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.lightbox.is-open .lightbox__close {
    top: calc(50% - 300px + 1rem);
    right: calc(50% + 500px - 60px);
}

.lightbox__close:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
    position: fixed;
    z-index: 52;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}

.lightbox__nav:hover {
    transform: translateY(-50%) translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
    left: calc(50% - 467px - 30px);
}

.lightbox__nav--next {
    right: calc(50% - 67px - 30px);
}

.lightbox__nav[aria-disabled="true"] {
    opacity: 0.35;
    pointer-events: none;
}

.lightbox__media {
    position: relative;
    min-height: 0;
    background: rgba(0, 0, 0, 0.25);
}

.lightbox__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox__meta {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.lightbox__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.lightbox__desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.lightbox__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lightbox__btn {
    justify-content: center;
    padding: 0.75rem 1rem;
}

.lightbox__btn[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.mediaLightbox__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.mediaLightbox__desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .lightbox__panel {
        grid-template-columns: 1fr;
        width: 95vw;
        max-width: 90vw;
        height: 80vh;
        max-height: 700px;
    }

    .lightbox.is-open .lightbox__close {
        right: calc(50% + (95vw / 2) - 60px);
    }

    .lightbox__actions {
        margin-top: 1.5rem;
    }

    .lightbox__meta {
        padding: 1.75rem;
    }

    .lightbox__nav--prev,
    .lightbox__nav--next {
        opacity: 0.6;
    }

    .card.lightbox-trigger {
        grid-template-columns: 1fr;
    }

    .crafts-grid {
        grid-template-columns: 1fr;
    }

    .gaming-grid {
        grid-template-columns: 1fr;
    }

    .card.lightbox-trigger .card-image {
        width: 100%;
    }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoTextShine {
    0% {
        background-position: 120% 50%;
    }

    40% {
        background-position: 120% 50%;
    }

    75% {
        background-position: -20% 50%;
    }

    100% {
        background-position: -20% 50%;
    }
}

@keyframes flickerBrand {

    0%,
    19%,
    21%,
    23%,
    80%,
    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 127, 26, 0.22);
    }

    20%,
    22%,
    81% {
        opacity: 0.65;
        text-shadow: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1.5rem 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links a,
    .nav-dropdown-btn {
        margin-left: 0;
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-dropdown {
        margin-left: 0;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0.5rem 0 0.5rem 1rem;
        min-width: auto;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-menu a {
        padding: 0.5rem 0;
        border-left: none;
        background: transparent !important;
    }

    .footer-links {
        gap: 1rem;
    }

    .contact-captcha-row {
        grid-template-columns: 1fr;
    }

    .contact-grid-2 {
        grid-template-columns: 1fr;
    }
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: fadeInDown 0.4s ease-out;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs .separator {
    opacity: 0.4;
    font-size: 0.7rem;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 600;
}

#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    min-width: 280px;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast.removing {
    opacity: 0;
    transform: translateX(20px);
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.4);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-success .toast-icon {
    color: #4ade80;
}

.toast-error .toast-icon {
    color: #f87171;
}

.admin-preview-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--card-border);
}

.admin-preview-box img,
.admin-preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-grid .card .admin-form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.projects-grid .card .admin-form+.admin-form {
    margin-top: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.feature-item:first-child {
    border-top: none;
    padding-top: 0;
}

.feature-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.feature-item-header h4 {
    margin: 0;
}

.feature-item-header p {
    margin: 0;
    color: var(--text-secondary);
}

.feature-item-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.feature-item-delete .admin-btn {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.35);
    width: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 28px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content i.modal-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.modal-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.m-btn {
    padding: 0.9rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.m-btn-confirm {
    background: #4f46e5;
    color: #fff;
}

.m-btn-confirm:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.m-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--card-border);
}

.m-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.4);
    color: var(--text-primary);
    transform: translateY(-5px);
}

.gaming-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 2rem 0;
}

.gaming-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gaming-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.gaming-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.gaming-tab-content {
    display: none;
}

.gaming-tab-content.active {
    display: block;
}

.content-section {
    padding: 4rem 0;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-block li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-block a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-block a:hover {
    text-decoration: underline;
}

.msg-card-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.msg-card-icons .card-icon {
    margin-bottom: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.msg-quick-view {
    color: #818cf8;
}

.msg-card-icons .card-icon:hover {
    background: rgba(129, 140, 248, 0.1) !important;
    border-color: rgba(129, 140, 248, 0.3) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

.msg-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.6);
}

.msg-filter-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
}

.msg-filter-field {
    position: relative;
}

.msg-filter-field .filter-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.msg-filter-field input {
    padding-left: 2.75rem !important;
    width: 100% !important;
}

.msg-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.msg-filter-row select {
    flex: 1;
    min-width: 140px;
}

.msg-position-info {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-family: inherit;
}

.pagination-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 2rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 42px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, #FF7F1A, #E66A00);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(230, 106, 0, 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-dots {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 0.5rem;
}

#msgDetailModal.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#msgDetailModal .lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-msg-scope {
    width: fit-content;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.lightbox.is-open~.scroll-top,
body.lightbox-active .scroll-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.lightbox.is-open~.scroll-top,
body.lightbox-active .scroll-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.nav-overlay {
    display: none;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    nav {
        padding: 0 1.25rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--card-border);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        display: flex;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        margin-left: 0;
        padding: 0.85rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown {
        margin-left: 0;
        width: 100%;
    }

    .nav-dropdown-btn,
    .nav-links .nav-dropdown-btn {
        padding: 0.85rem 0;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        min-width: unset;
        overflow: visible;
        padding-left: 1rem;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-menu a {
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 0.9rem;
    }

    .nav-dropdown-btn::after {
        display: none;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    header {
        padding: 5rem 1.5rem 3rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .crafts-grid,
    .gaming-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2rem;
    }

    .card.lightbox-trigger {
        grid-template-columns: 1fr;
    }

    .contact-grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-captcha-row {
        grid-template-columns: 1fr;
    }

    .contact-captcha-row img {
        width: 100%;
    }

    .gaming-tabs {
        flex-wrap: wrap;
    }

    .gaming-tab-btn {
        min-width: 120px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .lightbox__panel {
        grid-template-columns: 1fr;
        width: 95vw;
        height: 85vh;
        max-height: none;
    }

    footer {
        padding: 4rem 1.5rem 2rem;
    }

    .msg-filter-row select {
        min-width: 120px;
    }

    .pagination-container {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .page-btn {
        padding: 0.5rem 0.75rem;
        min-width: 36px;
        font-size: 0.85rem;
    }

    #msgDetailModal .lightbox__panel {
        padding: 1rem;
    }

    #msgDetailModal .lightbox__meta {
        padding: 1.5rem 1rem;
    }
}