.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(10, 14, 20, 0.86);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.main-nav a {
    white-space: nowrap;
    color: #f3f4f8;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--primary);
}

.main-nav .nav-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-arrow span {
    color: var(--primary);
    font-size: 1.15rem;
    line-height: 0.6;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.language-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.language-btn {
    padding: 4px 7px;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
}

.language-btn.active,
.language-btn:hover { color: #fff; background: var(--primary); }

#google_translate_element { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.mobile-menu-toggle { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-image {
    display: block !important;
    width: 64px !important;
    height: 48px !important;
    max-width: 64px !important;
    min-width: 64px !important;
    max-height: 48px !important;
    min-height: 48px !important;
    flex: 0 0 64px;
    border: 1px solid rgba(168, 88, 255, 0.7);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 16px rgba(110, 32, 255, 0.35);
}

.logo-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-copy strong {
    font-size: 1.05rem;
}

.logo-copy small {
    position: relative;
}

.notification-dropdown {
    position: relative;
}

.notifications-clear-form {
    padding: 4px 8px 8px;
    border-bottom: 1px solid var(--border);
}

.notifications-clear {
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.8rem;
}

.notifications-clear:hover {
    background: rgba(108, 92, 231, 0.12);
    color: var(--text);
}

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    background: rgba(14, 20, 28, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
}

.dropdown-menu.open {
    display: block;
}

.notif-item,
.empty {
    display: block;
    color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.notif-item small {
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.notif-item:hover {
    background: rgba(108, 92, 231, 0.12);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(8, 10, 14, 0.96);
    padding: 28px 0 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.footer-grid h4,
.footer-grid h5 {
    margin-bottom: 10px;
    color: var(--text);
}

.footer-grid a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: var(--text);
}
.footer-credit { margin-top: 8px; color: var(--text-muted); font-size: 0.82rem; }
.footer-credit strong { color: var(--primary); }
.footer-muted { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.85rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(108,92,231,0.18), transparent 60%), linear-gradient(180deg, rgba(17, 21, 29, 0.9), rgba(11, 14, 20, 0.8));
    border-bottom: 1px solid var(--border);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: center;
    gap: 42px;
    text-align: left;
}

.hero-content {
    min-width: 0;
}

.hero-content .hero-actions {
    justify-content: flex-start;
}

.hero-content .hero-search {
    margin-left: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(108, 92, 231, 0.45);
    background: rgba(108, 92, 231, 0.12);
    color: #d9d1ff;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }
.hero-search { display: flex; max-width: 600px; margin: 0 auto; gap: 8px; }
.hero-search input { flex: 1; padding: 14px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); }

.section { padding: 40px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 1.4rem; }
.discord-section {
    border-top: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(88, 101, 242, 0.1), rgba(11, 14, 20, 0.2));
}

.discord-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: center;
    gap: 42px;
}

.discord-copy h2 {
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.discord-copy > p:not(.eyebrow) {
    max-width: 520px;
    margin-bottom: 22px;
    color: var(--text-muted);
}

.discord-widget {
    width: 350px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(88, 101, 242, 0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #202225;
}

.discord-widget iframe {
    display: block;
    width: 350px;
    max-width: 100%;
    border: 0;
}

.hero-discord-widget {
    margin: 0;
    justify-self: end;
}
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.category-card span { display: block; font-weight: 600; }
.category-card small { color: var(--text-muted); font-size: 0.8rem; }

.auth-form { max-width: 420px; margin: 60px auto; background: var(--surface); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-form label { display: block; margin: 12px 0 4px; font-size: 0.85rem; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] { width: 100%; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.auth-form .checkbox { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.error { color: var(--danger); font-size: 0.9rem; }
.success { color: var(--success); font-size: 0.9rem; }

.page-header {
    margin-bottom: 28px;
}

.page-shell { padding-top: 18px; }
.page-intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.notification-list { display: grid; gap: 8px; max-width: 820px; }
.notification-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.notification-row:hover { border-color: var(--primary); }
.notification-row.is-read { opacity: 0.68; }
.notification-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--primary); }
.notification-row.is-read .notification-dot { background: var(--text-muted); }
.notification-copy { display: grid; gap: 4px; }
.notification-copy small { color: var(--text-muted); font-size: 0.75rem; }
.notifications-all { display: block; padding: 10px 12px; border-top: 1px solid var(--border); color: var(--primary); font-size: 0.8rem; text-align: center; }
.creator-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.creator-stat, .dashboard-panel { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.creator-stat span, .creator-stat strong { display: block; }
.creator-stat span { color: var(--text-muted); font-size: 0.8rem; }
.creator-stat strong { margin-top: 6px; font-size: 1.6rem; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.status-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.status-list div { padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.status-list span, .status-list strong { display: block; }
.status-list span { color: var(--text-muted); font-size: 0.78rem; }
.status-list strong { margin-top: 4px; font-size: 1.4rem; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-mods { margin-bottom: 30px; }
.creator-mod-list { display: grid; gap: 8px; }
.creator-mod-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 14px; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.creator-mod-row:hover { border-color: var(--primary); }
.creator-mod-row span { display: grid; gap: 3px; }
.creator-mod-row small { color: var(--text-muted); font-size: 0.75rem; }
.creator-mod-metrics { min-width: 90px; text-align: right; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-badge { padding: 3px 8px; color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.35); border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.follow-form { margin-top: 12px; }
.user-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; color: var(--tag-color); border: 1px solid color-mix(in srgb, var(--tag-color) 55%, transparent); border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.user-tag form { display: inline; }
.user-tag button { padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; font-size: 0.9rem; line-height: 1; }
.profile-tag-remove { padding: 0 1px; color: inherit; background: transparent; border: 0; cursor: pointer; font-size: 0.9rem; font-weight: 700; line-height: 1; }
.tag-admin-section { margin-top: 32px; }
.tag-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tag-admin-list { display: grid; gap: 8px; margin-top: 12px; }
.tag-user-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.tag-user-row > span { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-user-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.admin-user-actions form { display: flex; flex: 1 1 220px; gap: 8px; }
.admin-user-actions input[type="text"] { min-width: 0; flex: 1; padding: 6px 8px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.partner-admin-section { margin-top: 32px; }
.partner-form input[type="url"] { flex: 1 1 260px; }
.partner-admin-list { display: grid; gap: 8px; }
.partner-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.cookie-notice { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { color: var(--text-muted); font-size: 0.8rem; }

.home-stats {
    position: relative;
    z-index: 1;
    margin-top: -18px;
    margin-bottom: 18px;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-stat {
    padding: 18px 20px;
    background: rgba(21, 26, 35, 0.94);
}

.home-stat strong,
.home-stat span { display: block; }
.home-stat strong { color: var(--text); font-size: 1.35rem; }
.home-stat span { color: var(--text-muted); font-size: 0.78rem; }

.page-intro {
    margin-bottom: 28px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-intro h1 {
    margin-bottom: 10px;
}

.page-intro p {
    color: var(--text-muted);
    max-width: 760px;
}

.upload-page {
    padding-top: 12px;
}

.upload-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.28);
    color: #d9d1ff;
    font-size: 0.76rem;
    font-weight: 600;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.upload-card {
    background: linear-gradient(180deg, rgba(21, 26, 35, 0.96), rgba(14, 18, 25, 0.94));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-step {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.upload-card h2 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.upload-card-full {
    padding-top: 22px;
}

.field-group {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
    width: 100%;
    background: rgba(8, 12, 18, 0.9);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    transition: 0.2s ease;
}

.upload-form textarea {
    resize: vertical;
    min-height: 120px;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
    outline: none;
    border-color: rgba(108, 92, 231, 0.8);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.file-input {
    padding: 13px 14px !important;
    background: rgba(14, 19, 27, 0.9) !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-drop {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 18px;
    border: 1px dashed rgba(0, 210, 255, 0.45);
    border-radius: 14px;
    background: rgba(0, 210, 255, 0.05);
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.file-drop:hover,
.file-drop:focus-within {
    border-color: var(--accent);
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-1px);
}

.file-drop strong {
    color: #dffaff;
    margin-bottom: 5px;
}

.file-drop span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.image-preview {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    min-height: 0;
}

.image-preview:empty {
    display: none;
}

.image-preview img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-preview-grid img {
    height: 82px;
}

.upload-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.upload-rules span {
    display: inline-flex;
    align-items: center;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #baf4d4;
    border-radius: 999px;
    padding: 8px 12px;
}

.submit-btn {
    min-width: 220px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.filters input,
.filters select {
    padding: 12px 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.profile-page {
    padding-top: 10px;
}

.mod-edit-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.mod-edit-link:hover {
    color: var(--text);
}

.empty-page {
    padding: 64px 20px;
    text-align: center;
}

.empty-page p {
    color: var(--text-muted);
    margin: 12px 0 24px;
}

.status-banner {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(243, 156, 18, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(243, 156, 18, 0.1);
    color: #ffd995;
}

.rating-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.rating-box small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

.star-rating {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    color: #586174;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked + label,
.star-rating input:checked ~ input + label {
    color: #ffd166;
}

.star-rating label:hover {
    transform: translateY(-2px);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.comment-reply {
    margin-top: 14px;
    margin-left: 42px;
    border-left: 2px solid rgba(108, 92, 231, 0.45);
    background: rgba(108, 92, 231, 0.06);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-topline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-topline small {
    color: var(--text-muted);
}

.comment-content {
    margin-top: 8px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.comment-actions form {
    margin: 0;
}

.comment-reply-toggle,
.comment-delete {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
}

.comment-reply-toggle:hover {
    color: var(--accent);
}

.comment-delete:hover {
    color: var(--danger);
}

.reply-form {
    display: none;
    gap: 8px;
    margin-top: 12px;
}

.reply-form.open {
    display: flex;
    flex-wrap: wrap;
}

.reply-form textarea {
    flex: 1 1 260px;
    min-height: 58px;
    padding: 10px 12px;
    resize: vertical;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.profile-header {
    background: linear-gradient(135deg, rgba(108,92,231,0.14), rgba(23,31,42,0.8));
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    margin-bottom: 26px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.avatar-placeholder.large {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

.profile-avatar {
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    aspect-ratio: 1;
    flex: 0 0 96px;
    max-width: 96px !important;
    min-width: 96px !important;
    max-height: 96px !important;
    min-height: 96px !important;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.profile-header > .profile-avatar {
    width: 96px !important;
    height: 96px !important;
    flex: 0 0 96px;
}

.avatar-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.avatar-form label {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.avatar-form input[type="file"] {
    max-width: 240px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.avatar-crop-modal[hidden] { display: none; }

.avatar-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 8, 12, 0.82);
}

.avatar-crop-dialog {
    width: min(100%, 380px);
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.avatar-crop-dialog h2 { margin-bottom: 16px; font-size: 1.15rem; }

.avatar-crop-preview {
    width: 256px;
    height: 256px;
    max-width: 100%;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--bg);
}

.avatar-crop-preview canvas { display: block; width: 100%; height: 100%; }
.avatar-crop-dialog label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.8rem; }
.avatar-crop-dialog input[type="range"] { width: 100%; }

.avatar-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.role-founder { color: #ffd166; }
.role-administrator { color: #7ae582; }
.role-moderator { color: #7cc7ff; }
.role-user { color: #c4b5fd; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 12px;
    min-width: 330px;
}

.profile-stats div {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
}

.profile-stats strong {
    display: block;
    font-size: 1.2rem;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-layout .admin-content h1 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { width: 100%; justify-content: center; }
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-stats {
        width: 100%;
        min-width: 0;
    }
}

