:root {
    --bg: #0c111b;
    --bg-elev: #121826;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --primary-strong: #0ea5e9;
    --border: rgba(148, 163, 184, 0.2);
    --glass: rgba(12, 17, 27, 0.75);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.18), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
        linear-gradient(180deg, rgba(12, 17, 27, 0.95), rgba(12, 17, 27, 1));
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: "Russo One", "IBM Plex Sans", sans-serif;
    margin: 0 0 0.6rem;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: var(--glass);
    border-bottom: 1px solid var(--border);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a {
    opacity: 0.8;
}

.nav-links a.active,
.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.auth-actions {
    display: flex;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 999px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 15;
}

.nav-dropdown a {
    color: inherit;
    opacity: 0.85;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    opacity: 1;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
}

.nav-bar.nav-collapsed .nav-links {
    display: none;
}

.nav-bar.nav-collapsed .nav-toggle {
    display: inline-flex;
}

.nav-bar.nav-open .nav-dropdown {
    display: flex;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    color: inherit;
}

.btn.primary {
    background: var(--primary-strong);
    color: #001018;
    font-weight: 600;
}

.btn.ghost {
    border-color: rgba(148, 163, 184, 0.4);
}

.btn.danger {
    border-color: rgba(239, 68, 68, 0.7);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.btn.danger:hover,
.btn.danger:focus-visible {
    border-color: rgba(239, 68, 68, 0.9);
    background: rgba(239, 68, 68, 0.2);
}

.site-main {
    padding: 3rem 0 5rem;
}

.hero {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 2rem 0 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-subtitle {
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.meta-card {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(18, 24, 38, 0.9);
    border: 1px solid var(--border);
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-hero {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 1.5rem 0 2.5rem;
}

.launcher-copy .hero-subtitle {
    max-width: 560px;
}

.launcher-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.launcher-card {
    border-radius: 20px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    min-height: 220px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
}

.launcher-card h3 {
    margin: 0.4rem 0 0.6rem;
}

.launcher-actions {
    display: flex;
    justify-content: flex-start;
}

.floating-island {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.orb {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.5), rgba(14, 165, 233, 0.1));
    filter: blur(4px);
    right: 10%;
    top: 0;
}

.floating-island {
    width: min(420px, 90%);
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(7, 12, 24, 0.5));
    animation: floating 9s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(5px, -5px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.section-header.split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mode-card {
    border-radius: 24px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.mode-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(229, 231, 235, 0.7);
}

.stats {
    display: flex;
    gap: 2rem;
}

.stats strong {
    font-size: 1.4rem;
    display: block;
}

.stats span {
    font-size: 0.85rem;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 20, 0.7);
}

.modal-body {
    position: relative;
    background: var(--bg-elev);
    border-radius: 24px;
    padding: 2rem;
    width: min(680px, 92%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.chip {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    font-size: 0.8rem;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

@media (max-width: 860px) {
    .section-header.split {
        flex-direction: column;
    }
    .stats {
        flex-direction: column;
    }
    .hero-visual {
        min-height: 240px;
    }
}

.news-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0 1rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
}

.news-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-card {
    background: rgba(18, 24, 38, 0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.news-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 1.2rem;
}

.news-date {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .news-hero {
        flex-direction: column;
    }
    .news-meta {
        width: 100%;
    }
}

.vote-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.vote-status {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.vote-card {
    padding: 1.6rem;
    border-radius: 20px;
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid var(--border);
}

.vote-card ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.vote-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(18, 24, 38, 0.9);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.vote-item:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
}

.vote-item span {
    color: var(--primary);
    font-size: 0.9rem;
}

.auth-modal label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-modal input {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
}

.auth-modal form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-message {
    color: var(--primary);
    font-size: 0.9rem;
}

.profile-layout {
    display: grid;
    gap: 2rem;
}

.profile-card {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.profile-grid ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: var(--muted);
}

.profile-grid li {
    margin-bottom: 0.5rem;
}

.profile-skins {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1.4fr);
    gap: 1.5rem;
}

.skin-preview {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    width: 100%;
    max-width: 360px;
}

.skin-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--muted);
    margin-bottom: 1rem;
}

.skin-list {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.skin-grid-title {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cape-section {
    margin-top: 15px;
}

.muted {
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 860px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-skins {
        grid-template-columns: 1fr;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-good {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-warn {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.status-bad {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.skin-image {
    width: 100%;
    max-width: 220px;
    border-radius: 16px;
    display: block;
}

.skin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.skin-item {
    border: none;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    padding: 0.3rem;
    cursor: pointer;
}

.skin-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.cape-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

#skin-viewer {
    width: 100%;
    height: auto;
    display: block;
}

.viewer-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}

.viewer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.viewer-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.control-label {
    font-size: 0.9rem;
    color: var(--muted);
    min-width: 80px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #0c111b;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.switch input:checked + .slider {
    background: rgba(34, 197, 94, 0.5);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.switch-text {
    font-size: 0.85rem;
    color: var(--muted);
}

.segmented {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    overflow: hidden;
}

.segmented-item {
    position: relative;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.segmented-item input {
    position: absolute;
    opacity: 0;
}

.segmented-item span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.6);
}

.segmented-item input:checked + span {
    color: #e2e8f0;
}

.segmented-item input:checked + span::before {
    border-color: #38bdf8;
    background: #38bdf8;
}

.segmented-item input:disabled + span {
    color: rgba(148, 163, 184, 0.5);
}

.segmented-item input:disabled + span::before {
    border-color: rgba(148, 163, 184, 0.3);
    background: transparent;
}

.skin-card {
    border-radius: 16px;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1 1 160px;
    max-width: 240px;
}

.skin-card.anim-enter {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.skin-card.anim-enter.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.skin-card.anim-exit {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.skin-card.active {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
}

.skin-preview-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: rgba(12, 17, 27, 0.8);
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.copy-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.copy-button:hover {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

.copy-button.copied {
    border-color: rgba(34, 197, 94, 0.8);
    color: #86efac;
}

.skin-front,
.skin-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.skin-back {
    opacity: 0;
}

.skin-preview-tile:hover .skin-front {
    opacity: 0;
}

.skin-preview-tile:hover .skin-back {
    opacity: 1;
}

.skin-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-panel {
    display: grid;
    gap: 1.8rem;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.admin-tabs .btn.active {
    border-color: rgba(56, 189, 248, 0.7);
    color: var(--primary);
}

.admin-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 1.6rem;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-search {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.admin-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    color: inherit;
    min-width: 220px;
    height: 40px;
}

.admin-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.7);
}

.admin-info-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-info-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.admin-actions-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-action {
    display: grid;
    gap: 0.6rem;
}

.admin-action .btn {
    height: 40px;
}

.admin-upload {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.admin-whitelist {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-whitelist-actions {
    display: grid;
    gap: 0.8rem;
}

.admin-whitelist-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.admin-assets {
    display: grid;
    gap: 1rem;
}

.admin-asset-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
}

.admin-asset-card.active {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.admin-asset-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(12, 17, 27, 0.8);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-asset-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.admin-asset-info span {
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-asset-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-results {
    display: grid;
    gap: 1rem;
}

[data-admin-load-more] {
    margin-top: 1rem;
}

.admin-logs {
    display: grid;
    gap: 0.8rem;
}

.admin-log-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    font-size: 0.9rem;
}

.admin-log-item strong {
    font-weight: 600;
}

.admin-log-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-resources {
    display: grid;
    gap: 0.8rem;
}

.admin-cards {
    display: grid;
    gap: 1rem;
}

.admin-card-item {
    position: relative;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

.admin-card-frame {
    display: grid;
    gap: 0.8rem;
}

.admin-card-preview {
    display: block;
}

.admin-card-meta {
    display: grid;
    gap: 0.2rem;
}

.admin-card-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-card-hidden-icon {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-card-hidden-icon svg {
    width: 100%;
    height: 100%;
    fill: #f87171;
}

.admin-card-form {
    display: grid;
    gap: 0.8rem;
}

.admin-card-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
}

.admin-toggle input {
    accent-color: #38bdf8;
}

.admin-card-modal {
    max-width: 720px;
    width: min(92vw, 720px);
}

.preview-card,
.preview-modal {
    border-radius: 16px;
    padding: 1rem;
    min-height: 140px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.preview-card h4,
.preview-modal h4 {
    margin: 0 0 0.5rem;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.editor-toolbar .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}

.editor-area {
    min-height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.8);
}

.admin-rules-editor {
    min-height: 260px;
}

.rules-content {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 1.5rem;
}

.rules-content ul,
.rules-content ol {
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
}

.admin-resource-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

.admin-resource-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-resource-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-resource-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-top-color: rgba(56, 189, 248, 0.9);
    animation: spin 0.8s linear infinite;
    display: none;
}

.spinner.is-active {
    display: inline-block;
}

.btn.copied {
    border-color: rgba(34, 197, 94, 0.8);
    color: #86efac;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-results-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-user-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-user-card:hover {
    border-color: rgba(56, 189, 248, 0.7);
    transform: translateY(-1px);
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-user-meta strong {
    color: var(--text);
    font-size: 0.95rem;
}

.skin-face {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-size: 800% 800%;
    background-position: -100% -100%;
    image-rendering: pixelated;
    background-color: rgba(12, 17, 27, 0.8);
}

.admin-modal {
    width: min(980px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .admin-asset-card {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .admin-asset-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-tabs {
        width: 100%;
        justify-content: flex-start;
    }
}
