:root {
    --nu-bg: #11110f;
    --nu-panel: #1a1916;
    --nu-panel-2: #222019;
    --nu-line: #39342a;
    --nu-text: #f2eee2;
    --nu-muted: #bcb4a4;
    --nu-gold: #d7ad55;
    --nu-gold-2: #f0cf7a;
    --nu-moss: #6f8f58;
    --nu-crimson: #9c3d32;
    --nu-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

html {
    background: var(--nu-bg);
    width: 100%;
}

body {
    background:
        linear-gradient(180deg, rgba(111, 143, 88, 0.07), transparent 320px),
        radial-gradient(900px 420px at 75% 0%, rgba(215, 173, 85, 0.10), transparent 60%),
        var(--nu-bg);
    color: var(--nu-text);
    width: 100%;
    min-width: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image:
        linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
    background-size: 38px 38px;
    z-index: -1;
}

.main-content {
    padding: 26px 30px 40px;
}

.container {
    width: 100%;
    max-width: none;
}

body .main-content {
    width: calc(100vw - 250px);
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar {
    background:
        linear-gradient(180deg, #181714 0%, #11110f 100%);
    border-right: 1px solid rgba(215, 173, 85, 0.18);
    box-shadow: 10px 0 28px rgba(0, 0, 0, 0.28);
}

.logo {
    border-bottom-color: rgba(215, 173, 85, 0.22);
}

.nightuo-logo img {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.user-panel-box {
    background: linear-gradient(180deg, rgba(42, 39, 31, 0.96), rgba(22, 21, 18, 0.98));
    border-color: rgba(215, 173, 85, 0.24);
    border-radius: 8px;
}

.user-panel-title {
    color: var(--nu-gold-2);
    letter-spacing: .08em;
}

.user-panel-text,
.user-panel-name {
    color: var(--nu-text);
}

.user-btn {
    border-radius: 6px;
    min-height: 42px;
}

.user-btn-primary {
    background: linear-gradient(180deg, var(--nu-gold-2), var(--nu-gold));
    color: #1a1206;
}

.user-btn-primary:hover {
    background: linear-gradient(180deg, #ffe08b, #d9aa4a);
}

.user-btn-secondary {
    background: #242119;
    border-color: rgba(215, 173, 85, 0.22);
}

.menu li {
    margin: 3px 10px;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    color: #ddd5c3;
    padding: 12px 14px;
}

.menu li a i {
    margin-right: 0;
    color: var(--nu-gold);
}

.menu li a::before {
    background: linear-gradient(90deg, rgba(215, 173, 85, 0.20), rgba(111, 143, 88, 0.12));
    border-left: 3px solid var(--nu-gold);
    border-radius: 6px;
}

.menu li a:hover {
    color: #fff7e3;
}

.top-right-discord {
    position: fixed;
    top: 18px;
    right: 24px;
}

.top-discord-btn {
    border-radius: 8px;
    background: linear-gradient(180deg, #5865f2, #414bb4);
    box-shadow: 0 10px 28px rgba(65, 75, 180, 0.28);
}

.slider-container {
    height: clamp(300px, 38vw, 470px);
    border-radius: 8px;
    border: 1px solid rgba(215, 173, 85, 0.22);
    box-shadow: var(--nu-shadow);
    margin-top: 0;
}

.slide img {
    border-radius: 8px;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.62));
    pointer-events: none;
}

.slide-info {
    background: linear-gradient(180deg, transparent, rgba(10, 9, 7, 0.92));
    padding: 28px 30px;
    z-index: 2;
}

.slide-info h3 {
    color: var(--nu-gold-2);
    font-size: 38px;
    line-height: 1.08;
    max-width: 840px;
}

.slide-info p {
    color: #eee4d2;
    max-width: 760px;
}

.slider-nav {
    right: 24px;
    left: auto;
    bottom: 24px;
    transform: none;
}

.slider-nav .dot,
.dot {
    width: 10px;
    height: 10px;
    background: rgba(242, 238, 226, 0.36);
    border: 1px solid rgba(242, 238, 226, 0.42);
}

.slider-nav .dot.active,
.dot.active {
    background: var(--nu-gold-2);
    border-color: var(--nu-gold-2);
}

.shard-action-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 28px;
}

.shard-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px;
    color: var(--nu-text);
    text-decoration: none;
    background: linear-gradient(180deg, rgba(34, 32, 25, 0.98), rgba(21, 20, 17, 0.98));
    border: 1px solid rgba(215, 173, 85, 0.20);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.shard-action:hover {
    border-color: rgba(215, 173, 85, 0.48);
    transform: translateY(-1px);
}

.shard-action i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 8px;
    background: rgba(215, 173, 85, 0.12);
    color: var(--nu-gold-2);
}

.shard-action b,
.shard-action small {
    display: block;
}

.shard-action b {
    color: #fff6df;
    line-height: 1.2;
}

.shard-action small {
    color: var(--nu-muted);
    margin-top: 3px;
    line-height: 1.35;
}

.shard-action-primary {
    border-color: rgba(240, 207, 122, 0.48);
}

.news-container {
    max-width: none;
    width: 100%;
}

.news-header-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-kicker {
    margin: 0 0 2px;
    color: var(--nu-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-title {
    color: var(--nu-gold-2);
    margin: 0;
    font-size: 32px;
}

.page-hero {
    margin: 0 0 20px;
    padding: 20px 22px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(35, 32, 24, .96), rgba(18, 17, 14, .98));
    border: 1px solid rgba(215, 173, 85, .22);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.page-hero.compact {
    min-height: 0;
}

.page-hero h1 {
    margin: 0;
    color: var(--nu-gold-2);
    font-size: 32px;
    line-height: 1.15;
}

.page-hero p {
    margin: 8px 0 0;
    color: var(--nu-muted);
    line-height: 1.6;
}

.shard-status-widget {
    min-width: 360px;
    padding: 12px;
    background: rgba(26, 25, 22, 0.92);
    border: 1px solid rgba(215, 173, 85, 0.22);
    border-radius: 8px;
}

.shard-status-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nu-gold-2);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--nu-crimson);
}

.status-dot.is-online {
    background: #67c56a;
    box-shadow: 0 0 12px rgba(103, 197, 106, .7);
}

.shard-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.shard-status-grid div {
    padding: 8px 10px;
    background: rgba(255,255,255,0.035);
    border-radius: 6px;
}

.shard-status-grid b,
.shard-status-grid span {
    display: block;
}

.shard-status-grid b {
    color: #fff8e9;
    line-height: 1.1;
}

.shard-status-grid span {
    color: var(--nu-muted);
    font-size: 12px;
    margin-top: 3px;
}

.news-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    background: linear-gradient(180deg, rgba(34, 32, 25, 0.98), rgba(18, 17, 15, 0.98));
    border: 1px solid rgba(215, 173, 85, 0.18);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.news-card:hover {
    border-color: rgba(215, 173, 85, 0.40);
}

.news-card .news-image {
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: none;
}

.news-card .news-image img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.category-label {
    background: rgba(17, 17, 15, 0.84);
    border: 1px solid rgba(215, 173, 85, 0.48);
    color: var(--nu-gold-2);
    border-radius: 6px;
}

.news-content {
    padding: 16px;
}

.news-title {
    line-height: 1.25;
}

.news-title a {
    color: #fff3d3;
}

.news-excerpt {
    color: #d1c8b6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--nu-muted);
    font-size: 13px;
}

.content-stats-mini span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.content-stats-mini i {
    color: var(--nu-gold);
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a {
    border: 1px solid rgba(215, 173, 85, 0.18);
    background: #201e18;
    border-radius: 6px;
}

.pagination a:hover,
.pagination a.active {
    background: var(--nu-gold);
    color: #1a1206;
}

body.sistemler-page-body .sistemler-layout {
    max-width: none;
    width: 100%;
    margin: 0;
}

body.sistemler-page-body .sistemler-header {
    text-align: left;
}

body.sistemler-page-body .sistemler-header h1 {
    color: var(--nu-gold-2);
}

body.sistemler-page-body .sistemler-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

body.sistemler-page-body .sistemler-filter {
    min-height: 40px;
    border-radius: 6px;
    padding: 9px 13px;
    color: var(--nu-text);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(215, 173, 85, .18);
    cursor: pointer;
}

body.sistemler-page-body .sistemler-filter.active,
body.sistemler-page-body .sistemler-filter:hover {
    background: linear-gradient(180deg, var(--nu-gold-2), var(--nu-gold));
    color: #1a1206;
}

body.sistemler-page-body .sistemler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
}

body.sistemler-page-body .sistemler-card {
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(35, 32, 24, .96), rgba(18, 17, 14, .98));
    border: 1px solid rgba(215, 173, 85, .20);
    box-shadow: 0 14px 34px rgba(0,0,0,.25);
}

body.sistemler-page-body .sistemler-card.is-hidden {
    display: none;
}

body.sistemler-page-body .sistemler-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0e0c;
}

body.sistemler-page-body .sistemler-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.sistemler-page-body .sistemler-image span {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(17,17,15,.86);
    border: 1px solid rgba(215, 173, 85, .42);
    color: var(--nu-gold-2);
    font-size: 12px;
    font-weight: 800;
}

body.sistemler-page-body .sistemler-card-body {
    padding: 16px;
}

body.sistemler-page-body .sistemler-card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

body.sistemler-page-body .sistemler-card-body h2 a {
    color: #fff6df;
    text-decoration: none;
}

body.sistemler-page-body .sistemler-card-body p {
    color: var(--nu-muted);
    line-height: 1.6;
    margin: 0;
}

body.sistemler-page-body .sistemler-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 14px;
    border-radius: 6px;
    color: #1a1206;
    background: linear-gradient(180deg, var(--nu-gold-2), var(--nu-gold));
    text-decoration: none;
    font-weight: 800;
}

.stats-page .stats-hero,
.stats-page .stats-card,
.stats-page .stats-stat {
    border-radius: 8px;
    border-color: rgba(215, 173, 85, .22);
    background: linear-gradient(180deg, rgba(35, 32, 24, .96), rgba(18, 17, 14, .98));
}

.stats-page .stats-hero h1,
.stats-page .stats-card h2,
.stats-page .stats-stat b,
.stats-page .stats-table th {
    color: var(--nu-gold-2);
}

.stats-page .stats-search input {
    border-radius: 6px;
    border-color: rgba(215, 173, 85, .20);
    background: rgba(255,255,255,.045);
}

.stats-page .stats-search button {
    border-radius: 6px;
    background: linear-gradient(180deg, var(--nu-gold-2), var(--nu-gold));
}

body.sistem-detay-body .sistem-detail-card {
    background: linear-gradient(180deg, rgba(35, 32, 24, .96), rgba(18, 17, 14, .98)) !important;
    border: 1px solid rgba(215, 173, 85, .22) !important;
    border-radius: 8px !important;
    color: var(--nu-text) !important;
}

body.sistem-detay-body .sistem-detail-card h1,
body.sistem-detay-body .interaction-header h2 {
    color: var(--nu-gold-2) !important;
    text-shadow: none !important;
}

body.sistem-detay-body .sistem-category-pill,
body.sistem-detay-body .btn-return,
body.sistem-detay-body .comment-form button,
body.sistem-detay-body .comment-admin-form button {
    background: linear-gradient(180deg, var(--nu-gold-2), var(--nu-gold)) !important;
    color: #1a1206 !important;
    border: 0 !important;
    border-radius: 6px !important;
}

body.sistem-detay-body .sistem-meta span,
body.sistem-detay-body .interaction-stats span,
body.sistem-detay-body .logged-user-note,
body.sistem-detay-body .login-required,
body.sistem-detay-body .comment-card,
body.sistem-detay-body .no-comments,
body.sistem-detay-body .interaction-alert {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(215, 173, 85, .16) !important;
    border-radius: 6px !important;
    color: var(--nu-muted) !important;
}

body.sistem-detay-body .interaction-panel {
    background: linear-gradient(180deg, rgba(35, 32, 24, .96), rgba(18, 17, 14, .98)) !important;
    border: 1px solid rgba(215, 173, 85, .22) !important;
    border-radius: 8px !important;
    color: var(--nu-text) !important;
}

body.sistem-detay-body .login-required a,
body.sistem-detay-body .comment-admin-tools summary {
    color: var(--nu-gold-2) !important;
}

body.sistem-detay-body .comment-form textarea,
body.sistem-detay-body .comment-admin-form textarea {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(215, 173, 85, .20) !important;
    border-radius: 6px !important;
    color: var(--nu-text) !important;
}

body.sistem-detay-body .comment-form textarea:focus,
body.sistem-detay-body .comment-admin-form textarea:focus {
    border-color: rgba(240, 207, 122, .68) !important;
    box-shadow: 0 0 0 3px rgba(215, 173, 85, .10) !important;
}

body.sistem-detay-body .interaction-alert.success {
    background: rgba(103, 197, 106, .12) !important;
    border-color: rgba(103, 197, 106, .32) !important;
    color: #d8f7d5 !important;
}

.floating-btn.dosyalar,
.user-btn-primary,
.comment-form button,
.comment-admin-form button,
.sistem-detay-btn,
.news-category,
.pagination a.active {
    background: linear-gradient(180deg, var(--nu-gold-2), var(--nu-gold)) !important;
    color: #1a1206 !important;
    border-color: rgba(240, 207, 122, .58) !important;
}

.section-title,
.back-link,
.login-required a,
.interaction-header h2,
.comment-admin-tools summary,
.sistem-detail-card h1 {
    color: var(--nu-gold-2) !important;
    text-shadow: none !important;
}

.interaction-panel {
    background: linear-gradient(180deg, rgba(35, 32, 24, .96), rgba(18, 17, 14, .98)) !important;
    border-color: rgba(215, 173, 85, .22) !important;
    border-radius: 8px !important;
}

.interaction-stats span,
.logged-user-note,
.login-required,
.comment-card,
.no-comments {
    border-color: rgba(215, 173, 85, .16) !important;
}

.mobile-nav-toggle {
    border-color: rgba(215, 173, 85, .45) !important;
}

.mobile-nav-toggle i {
    color: var(--nu-gold-2) !important;
}

@media (max-width: 1180px) {
    .shard-action-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-header-row {
        align-items: stretch;
        flex-direction: column;
    }

    .shard-status-widget {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 800px) {
    body .main-content {
        width: 100%;
    }

    .main-content {
        padding: 14px 12px 28px;
    }

    .top-right-discord {
        position: static;
        padding: 10px 12px 0;
    }

    .slider-container {
        height: 280px;
    }

    .slide-info {
        padding: 20px 18px;
    }

    .slide-info h3 {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .shard-action-strip {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .shard-action {
        min-height: 68px;
    }
}

@media (max-width: 560px) {
    .slider-container {
        height: 230px;
    }

    .slider-nav {
        right: 16px;
        bottom: 14px;
    }

    .slide-info h3 {
        font-size: 24px;
    }

    .shard-status-grid {
        grid-template-columns: 1fr;
    }
}
