/* 
   NEXUS PRO - PREMIUM LIGHT THEME
   Design by ELEGANCE
*/

:root {
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --primary: #6366f1;
    /* Indigo 500 */
    --primary-dark: #4f46e5;
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */
    --container: 1140px;
    --radius: 12px;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Global Typography Discipline */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

/* Global Typography Discipline - JİLET & COMPACT */
h1 { font-size: 20px !important; letter-spacing: -0.03em; margin-bottom: 15px !important; }
h2 { font-size: 16px !important; letter-spacing: -0.02em; margin-bottom: 12px !important; }
h3 { font-size: 14px !important; letter-spacing: -0.01em; margin-bottom: 10px !important; }
h4 { font-size: 13px !important; }
h5 { font-size: 12px !important; }
h6 { font-size: 11px !important; }

/* DLE System Title Overrides (Force Compact) */
.title, .ntitle, .stitle, .btitle {
    font-size: 15px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    color: var(--text-main) !important;
    margin-bottom: 10px !important;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a i {
    font-size: 10px;
    transition: transform 0.3s;
    opacity: 0.6;
}

.has-submenu {
    position: relative;
}

.has-submenu:hover>a i {
    transform: rotate(180deg);
    color: var(--primary);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--bg-white);
    min-width: 180px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    /* Override main-nav ul display */
    flex-direction: column !important;
    gap: 0 !important;
}

.has-submenu:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    list-style: none;
    width: 100%;
}

.nav-submenu a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    width: 100%;
    transition: all 0.2s;
}

.nav-submenu a:hover {
    background: var(--bg-body);
    color: var(--primary);
    padding-left: 25px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 10px 20px;
    padding-right: 45px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg-body);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    width: 200px;
    transition: width 0.3s ease, border-color 0.2s;
}

.search-bar input:focus {
    width: 260px;
    border-color: var(--primary);
    background: #fff;
}

.search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

/* Layout Grid - COMPACT & SHARP */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    padding: 25px 0;
}

/* News Cards & Global Component Cards */
.news-card,
.nx-full-post,
.nx-widget-card,
.nx-com-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

/* Base Card Content Padding */
.nx-fs-content,
.nx-widget-body,
.nx-com-inner {
    padding: 25px;
}

/* Vurgu Hattı (Kalından İnceye) */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 120px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    z-index: 2;
}

.card-inner {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.card-media {
    flex: 0 0 220px;
    height: 150px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-body);
}

.card-thumb {
    width: 100%;
    height: 100%;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
    font-size: 40px;
    border: 1px dashed var(--border);
}

/* Badges (New/Updated) */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.badge-new,
.badge-updated {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    color: #fff;
}

.badge-new {
    background: #10b981;
}

.badge-updated {
    background: #f59e0b;
}

/* Favorite Button (Heart Version) */
.card-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.fav-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.fav-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
    background: #fff;
    border-color: #fee2e2;
}

.fav-btn.active {
    color: #ef4444;
}

.card-category {
    margin-bottom: 12px;
}

/* Category Badge (High Priority) */
.news-card .card-category a {
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    line-height: 1 !important;
    transition: all 0.2s;
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
}

.news-card .card-category a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.cat-icon-sm {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.card-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.nx-card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 1. Rating Group (Like/Dislike) */
.nx-rate-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
    transition: 0.2s;
}

.nx-rate-group:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rate-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    border-radius: 6px;
}

.rate-btn i { font-size: 14px; }
.rate-btn.up:hover { color: #10b981; background: #ecfdf5; }
.rate-btn.down:hover { color: #ef4444; background: #fef2f2; }

.rate-sep {
    width: 1px;
    height: 14px;
    background: var(--border);
}

/* 2. Share Dropdown */
.nx-share-dropdown {
    position: relative;
}

.nx-share-trigger {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}

.nx-share-trigger:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.nx-share-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 160px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nx-share-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #fff;
}

.nx-share-dropdown:hover .nx-share-content,
.nx-share-trigger:focus + .nx-share-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nx-share-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.nx-share-content a i { font-size: 16px; width: 20px; text-align: center; }

.share-fb:hover { background: #1877f2; color: #fff !important; }
.share-tw:hover { background: #000; color: #fff !important; }
.share-wa:hover { background: #25d366; color: #fff !important; }

/* 3. Star Rating (Standard) */
.nx-rate-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff9e6;
    color: #f59e0b;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid #fef3c7;
}

.nx-rate-stars i { font-size: 14px; }


.card-edit-notice {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-read-more {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    background: var(--primary);
    color: #fff;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Sidebar Widgets General - COMPACT VERSION */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.widget-header {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.widget-body {
    padding: 12px 14px;
}

/* 1. Social Modern Widget */
.nx-social-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.social-box {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.social-box.fb:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.social-box.tw:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-box.ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.3);
}

.social-box.yt:hover {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

/* 2. Premium Newsletter Widget */
.nx-premium-newsletter {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none !important;
    color: #fff;
}

.nx-premium-newsletter .nsl-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.nx-premium-newsletter .nsl-icon-ring {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nx-premium-newsletter .nsl-info h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}

.nx-premium-newsletter .nsl-info p {
    margin: 2px 0 0;
    font-size: 11px;
    opacity: 0.8;
}

.nsl-form-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nsl-input-minimal {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    flex: 1;
    min-width: 0;
    padding: 10px 15px !important;
    font-size: 14px !important;
}

.nsl-input-minimal::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nsl-btn-indigo {
    width: 44px;
    height: 44px;
    background: #fff !important;
    color: var(--primary) !important;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.nsl-btn-indigo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Categories Menu (.catmenu) - Refactored to use standard Nexus Pro styles in section 7 */
.catmenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-link:hover {
    background: #fff;
    color: var(--primary);
    border-color: var(--border);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.cat-link:hover .cat-count {
    background: var(--primary);
    color: #fff;
}

.cat-item.active>.cat-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cat-item.active>.cat-link .cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.submenu {
    margin: 4px 0 4px 18px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu li a {
    padding: 6px 10px;
    font-size: 12px;
    background: transparent;
    border: none;
}

.submenu li a:hover {
    background: var(--bg-body);
    color: var(--primary);
    transform: translateX(3px);
    box-shadow: none;
}


/* 3. Global List Styling (Archives, Categories etc) */
.widget-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-body ul li {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.widget-body ul li:hover {
    background: #f8fafc;
    border-color: var(--border);
    transform: translateX(5px);
}

.widget-body ul li a {
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-body ul li a::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

.widget-body ul li:hover a::before {
    color: var(--primary);
    opacity: 1;
}

/* 4. Modern Calendar Styling */
.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar thead th {
    padding: 10px 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
}

.calendar tbody td {
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar td a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-weight: 800;
    transition: 0.2s;
}

.calendar td a:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.calendar .weekday {
    color: var(--primary);
}

.calendar .monthselect {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    padding: 15px 0;
    color: var(--text-main);
}

.calendar .monthselect a {
    background: transparent;
    color: var(--text-muted);
    width: auto;
    font-size: 18px;
}



/* --- Full Story & Article View --- */
.nx-full-post {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
}

.nx-fs-header {
    margin-bottom: 30px;
}

.nx-fs-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nx-badge-new,
.nx-badge-updated {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    color: #fff;
}

.nx-badge-new {
    background: #10b981;
}

.nx-badge-updated {
    background: #f59e0b;
}

.nx-fs-cat-path a {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.nx-fs-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.nx-fs-meta-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.nx-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.nx-meta-item i {
    color: var(--primary);
    font-size: 13px;
}

.nx-fs-poster {
    margin: 0 -30px 30px -30px;
    height: 400px;
    overflow: hidden;
}

.nx-fs-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nx-fs-content {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.nx-fs-text p {
    margin-bottom: 20px;
}


.nx-fs-pagination {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.nx-pg-label {
    font-weight: 800;
    color: var(--text-main);
}

.nx-fs-footer {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.nx-fs-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nx-tags-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
}

.nx-tags-list a {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}

.nx-tags-list a:hover {
    background: var(--primary);
    color: #fff;
}

.nx-fs-edit-info {
    font-size: 13px;
    padding: 15px 20px;
    background: #fffcf0;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    color: #92400e;
    margin-bottom: 30px;
}

.nx-fs-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 20px 30px;
    border-radius: 12px;
}

/* Rating Styles */
.nx-rating-v2,
.nx-rating-v3,
.nx-rating-v4 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nx-rate-icon a {
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    background: #fff;
    text-decoration: none !important;
}

.nx-rate-icon.plus a {
    color: #10b981;
}

.nx-rate-icon.plus a:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.nx-rate-icon.minus a {
    color: #ef4444;
}

.nx-rate-icon.minus a:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.nx-rate-count,
.nx-rate-val {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-main);
}

.nx-fs-tools {
    display: flex;
    gap: 8px;
}

.nx-tool-item a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: 0.2s;
    text-decoration: none !important;
}

.nx-tool-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nx-tool-item.fav-add a:hover {
    color: #f59e0b;
    border-color: #f59e0b;
}

.nx-tool-item.fav-del a {
    color: #f59e0b;
    border-color: #f59e0b;
    background: #fffcf0;
}

.nx-tool-item.edit a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.nx-tool-item.delete a:hover {
    color: #ef4444;
    border-color: #ef4444;
}


.nx-badge-fixed {
    background: #6366f1;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.nx-cat-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.nx-vote-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 10px;
}

.nx-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.nx-nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nx-nav-item.next {
    text-align: right;
}

.nx-nav-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nx-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
    line-height: 1.4;
}

.nx-nav-title:hover {
    color: var(--primary);
}

.nx-comm-sub a {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}



/* Related Section */
.nx-fs-related {
    margin-top: 50px;
}

.nx-related-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nx-related-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.nx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nx-related-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.nx-related-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.nx-rel-link {
    text-decoration: none !important;
    color: inherit;
}

.nx-rel-media {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #e2e8f0;
}

.nx-rel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.nx-related-item:hover .nx-rel-img {
    transform: scale(1.1);
}

.nx-rel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.nx-rel-content {
    padding: 15px;
}

.nx-rel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nx-rel-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.nx-rel-meta i {
    color: var(--primary);
    font-size: 12px;
}


/* Comments Section Enhancement */
.nx-comments-section {
    margin-top: 40px;
}

.nx-comm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.nx-comm-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
}

.nx-comm-sub {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Helper Classes */
.title_hide { position: absolute; left: -9999px; top: -9999px; overflow: hidden; width: 0; height: 0; }

.pagetools {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 20px auto 10px;
    max-width: var(--container);
    width: 95%;
    position: relative;
    padding-left: 54px;
    height: 54px;
    overflow: hidden;
    font-size: 13px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

.pagetools_in { 
    color: var(--text-muted); 
    width: 100%; 
}

.speedbar { 
    display: block; 
    padding: 0 15px; 
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagetools_back {
    position: absolute;
    left: 0; top: 0;
    width: 54px; height: 54px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    transition: all 0.3s ease;
    background: #f8fafc;
}

.pagetools_back:hover {
    background: var(--primary);
    color: #fff;
}

.breadcrumb .over { vertical-align: middle; }

.speedbar a { 
    color: var(--text-main); 
    font-weight: 700; 
    text-decoration: none; 
    transition: color 0.2s;
}

.speedbar a:hover { color: var(--primary); }

.speedbar span, 
.speedbar b { 
    opacity: 0.3; 
    margin: 0 10px; 
    font-weight: 400;
}



.nx-social-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


.nx-social-item.tw {
    color: #000 !important;
}


.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fs-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Header must NOT clip dropdowns */
    .site-header {
        overflow: visible !important;
        z-index: 9990;
    }
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
        overflow: visible !important;
    }

    /* Logo left, tools right */
    .logo { order: 1; }
    .header-tools {
        order: 2;
        margin-left: auto;
        gap: 10px;
    }
    
    /* Nav full width below */
    .main-nav {
        order: 3;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 10px;
        overflow: visible !important;
    }
    .main-nav ul {
        gap: 6px 14px;
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible !important;
    }
    .main-nav a {
        font-size: 13px;
    }

    /* Submenu: Accordion style on mobile */
    .has-submenu {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nav-submenu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc !important;
        margin-top: 10px;
        width: 100%;
        border-radius: 12px;
        display: none !important;
        opacity: 1 !important;
        padding: 5px 0 !important;
    }
    .has-submenu.open .nav-submenu {
        display: flex !important;
        visibility: visible !important;
    }
    .nav-submenu a {
        text-align: center;
        padding: 12px 20px !important;
        border-bottom: 1px solid #e2e8f0;
        font-weight: 700 !important;
        color: var(--primary) !important;
    }
    .nav-submenu li:last-child a {
        border-bottom: none;
    }

    /* Search bar hidden */
    .search-bar {
        display: none;
    }

    /* Login pane compact */
    .nx-login-pane {
        position: relative;
    }
    .nx-user-trigger {
        padding: 3px 8px !important;
        gap: 6px !important;
    }
    .nx-user-trigger img {
        width: 24px !important;
        height: 24px !important;
    }
    .nx-user-trigger > div:nth-child(2) {
        display: none !important;
    }
    .nx-user-trigger > i {
        display: none !important;
    }
    .nx-guest-trigger {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }

    /* Login/User dropdown: bottom sheet on mobile */
    .nx-dropdown-card {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15) !important;
        margin-top: 0 !important;
        z-index: 9999 !important;
        padding: 20px !important;
    }

    .card-inner {
        flex-direction: column;
    }
    .card-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.nx-dropdown {
    position: relative;
    z-index: 1000;
}

.nx-drop-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.nx-user-meta {
    text-align: right;
}

.nx-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.nx-user-group {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
}

.nx-avatar-main {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid var(--border);
    object-fit: cover;
    background: var(--bg-body);
}

.nx-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.nx-dropdown:hover .nx-arrow {
    transform: rotate(180deg);
}

.nx-drop-content {
    position: absolute;
    right: 0;
    top: 100%;
    width: 260px;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-dropdown:hover .nx-drop-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nx-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.nx-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nx-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.nx-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.nx-badge {
    font-size: 11px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.nx-badge-blue {
    background: #3b82f6;
}

.nx-badge-red {
    background: #ef4444;
}

.nx-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-muted);
    transition: 0.2s;
}

.nx-link:hover {
    background: var(--bg-body);
    color: var(--primary);
}

.nx-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.nx-btn-login-trigger {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
}

.nx-input-icon input {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px 10px 36px;
}

.nx-btn-full {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    border: none;
}

.nx-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.nx-social-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.nsl-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.nsl-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
}

.banner-placeholder {
    width: 100%;
    min-height: 200px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
}

.text-orange-500 {
    color: #f97316;
}

/* --- 11. Modern Comment Form (addcomments.tpl) --- */
.nx-add-comm-container {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 40px;
}

.nx-add-comm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.nx-add-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.nx-social-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nx-auth-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nx-auth-grid {
    display: flex;
    gap: 8px;
}

.nx-auth-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: 0.2s;
}

.nx-auth-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nx-auth-item.google {
    background: #ea4335;
}

.nx-auth-item.facebook {
    background: #1877f2;
}

.nx-auth-item.vk {
    background: #0077ff;
}

.nx-auth-item.odnoklassniki {
    background: #ed812b;
}

.nx-auth-item.yandex {
    background: #ff0000;
}

.nx-auth-item.mailru {
    background: #005ff9;
}

.nx-form-row.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nx-form-group {
    margin-bottom: 20px;
}

.nx-input-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.nx-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nx-input-wrap i {
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-size: 14px;
    opacity: 0.6;
}

.nx-input-wrap input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: 0.2s;
}

.nx-input-wrap input:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.nx-editor-container {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.nx-image-uploader {
    position: relative;
    padding: 20px;
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    transition: 0.2s;
}

.nx-up-trigger {
    cursor: pointer;
    padding: 10px;
    transition: 0.2s;
    border-radius: 8px;
}

.nx-up-trigger:hover {
    background: rgba(99, 102, 241, 0.05);
}

.nx-up-trigger:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.nx-up-trigger i {
    display: block;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: 0.5;
    transition: 0.2s;
}

.nx-up-trigger span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}


/* DLE tarafından üretilen yükleme alanını kapsayıcıya yay */
.nx-image-uploader .qq-uploader {
    position: relative;
    z-index: 2;
}

.nx-image-uploader .qq-upload-button {
    background: none !important;
    border: none !important;
    width: 100% !important;
    height: 100% !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    padding: 0 !important;
}


.nx-security-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.nx-sec-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nx-sec-item input {
    border: none;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    width: 120px;
}

.nx-q-txt {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.nx-add-comm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.nx-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.nx-unsubscribe-link a {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ef4444;
    text-decoration: none;
}

.nx-btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}


/* --- 12. Post Navigation (Next/Prev) --- */
.nx-post-navigation {
    margin-top: 0;
}

.nx-post-nav {
    display: flex;
    align-items: stretch;
    min-height: 80px;
}

.nx-nav-item {
    flex: 1;
    display: flex;
    min-width: 0;
}

.nx-nav-sep {
    width: 1px;
    background: var(--border);
    margin: 10px 0;
}

.nx-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nx-nav-link:hover {
    background: #f8fafc;
}

.nx-nav-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
    transition: 0.2s;
}

.nx-nav-link:hover .nx-nav-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.nx-nav-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nx-nav-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nx-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-nav-item.next .nx-nav-link {
    text-align: right;
    justify-content: flex-end;
}

/* --- 13. Premium Comments System --- */

.nx-com-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.nx-com-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nx-com-card.is-reply {
    margin-left: 40px;
    border-left: 3px solid var(--primary);
}

.nx-com-inner {
    padding: 25px;
}

/* Header */
.nx-com-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.nx-com-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nx-com-avatar {
    position: relative;
    width: 54px;
    height: 54px;
}

.nx-com-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.nx-status-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.nx-status-dot.online { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.nx-status-dot.offline { background: #94a3b8; }

.nx-com-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.nx-com-author {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.nx-com-author a { color: inherit; text-decoration: none; }
.nx-com-author a:hover { color: var(--primary); }

.nx-com-group {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}

.nx-com-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.nx-com-meta i { margin-right: 4px; color: var(--primary); opacity: 0.6; }

/* Body */
.nx-com-text {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
}

.nx-com-news-ref {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.nx-com-news-ref a { color: var(--text-main); text-decoration: none; }
.nx-com-news-ref a:hover { color: var(--primary); }

.nx-com-gallery {
    margin-top: 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
}

.nx-gallery-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Footer & Tools */
.nx-com-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nx-com-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-tool-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.nx-tool-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.nx-tool-btn.edit:hover { background: #3b82f6; border-color: #3b82f6; }
.nx-tool-btn.del:hover { background: #ef4444; border-color: #ef4444; }

.nx-tool-sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }

/* Rating */
.nx-rate-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nx-rate-dual {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.nx-rate-plus { color: #10b981; font-size: 18px; cursor: pointer; transition: 0.2s; }
.nx-rate-minus { color: #ef4444; font-size: 18px; cursor: pointer; transition: 0.2s; }
.nx-rate-plus:hover, .nx-rate-minus:hover { transform: scale(1.2); }

/* Response Indent on Mobile */
@media (max-width: 768px) {
    .nx-com-card.is-reply { margin-left: 20px; }
    .nx-com-header { flex-direction: column; gap: 15px; }
    .nx-com-footer { flex-direction: column; gap: 15px; align-items: flex-start; }
}


.add-comment-box {
    margin-top: 40px;
    background: #f8fafc;
    padding: 30px;
    border-top: 1px solid var(--border);
}

.add-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.add-form-content input,
.add-form-content textarea {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.add-form-content input:focus,
.add-form-content textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

/* --- 13. Sidebar Recent Comments (Streamlined List) --- */
.nx-last-comm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.nx-last-comm-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nx-last-comm-item:last-child { border-bottom: none; }

.nx-last-comm-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nx-last-comm-link:hover {
    transform: translateX(5px);
}

.nx-last-comm-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.nx-last-comm-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.nx-last-comm-info {
    flex: 1;
    min-width: 0;
}

.nx-last-comm-user {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1px;
}

.nx-last-comm-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 14. Global Widget Card System (Fullstory Sections) --- */
.nx-widget-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nx-widget-header {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border);
    background: #fcfdfe;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nx-widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.nx-widget-title i {
    color: var(--primary);
    font-size: 18px;
}

.nx-widget-body {
    padding: 25px;
}


.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
    text-decoration: none;
}

.cat-main-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-meta-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    opacity: 0.5;
}

.cat-link:hover {
    background: #f8fafc;
    color: var(--text-main);
}

.cat-item.is-active>.cat-link {
    background: var(--primary-light);
    color: var(--primary);
}

.nx-cat-folder {
    font-size: 14px;
}

.cat-icon-xs {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.cat-active-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.cat-count-badge {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 800;
    border: 1px solid var(--border);
    min-width: 28px;
    text-align: center;
}

.cat-item.is-active .cat-count-badge {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cat-chevron {
    font-size: 10px;
    opacity: 0.3;
    transition: 0.3s;
}

.cat-item.is-active>.cat-link .cat-chevron {
    transform: rotate(90deg);
    opacity: 1;
}

.cat-subs {
    padding-left: 15px;
    margin-left: 26px;
    border-left: 2px solid #f1f5f9;
    margin-top: 2px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    transition: 0.2s;
    text-decoration: none;
}

.tag-cloud a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* --- 8. Widget Cleanup: TopNews, Vote, Tagscloud --- */
.topnews-item {
    margin-bottom: 2px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: 0.2s;
    text-decoration: none;
}

.top-link:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.top-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-content {
    flex: 1;
    min-width: 0;
}

.top-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0.6;
}

.top-cat {
    color: var(--primary);
}


.nx-tags-full-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.nx-tags-full-cloud a {
    display: inline-block;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.nx-tags-full-cloud a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* --- 9. Navigation (Pagination) --- */
.nx-pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.nx-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- 10. Modern User Profile (Right Sidebar + Tabs) - Compact --- */
/* --- 10. Modern User Profile (Right Sidebar + Tabs) --- */
.nx-profile-v2 {
    max-width: 1200px;
    margin: 40px auto;
}

.nx-profile-grid {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
}

.nx-profile-side {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
}

.nx-side-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 30px;
}

.nx-side-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
}

.nx-side-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

.nx-side-name { text-align: center; margin-bottom: 25px; }
.nx-side-name h1 { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.nx-side-fullname { font-size: 14px; color: var(--text-muted); font-weight: 700; }
.nx-side-uid { font-size: 11px; color: var(--text-muted); opacity: 0.6; margin-top: 5px; }

/* Profile Status Dot */
.nx-status-profile { position: absolute; bottom: 8px; right: 8px; width: 18px; height: 18px; background: #10b981; border: 3px solid #fff; border-radius: 50%; }

/* Profile Stats */
.nx-side-stats { margin-top: 25px; border-top: 1px solid #f1f5f9; padding-top: 20px; }
.nx-side-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-mini-box { background: #f8fafc; padding: 15px; border-radius: 12px; text-align: center; }
.nx-mini-val { display: block; font-size: 20px; font-weight: 800; color: var(--text-main); }
.nx-mini-label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

/* Profile Actions */
.nx-profile-actions-stack { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.nx-delete-account { background: #fee2e2; border-radius: 12px; padding: 12px; text-align: center; }
.nx-delete-account a { color: #ef4444; text-decoration: none; font-weight: 800; font-size: 13px; }

/* Profile Main Content */
.nx-profile-main-content { flex: 1; }

/* Tabs Navigation */
.nx-tabs-nav { display: flex; gap: 20px; border-bottom: 2px solid #f1f5f9; margin-bottom: 30px; }
.nx-tab-btn { padding: 15px 0; font-weight: 800; font-size: 14px; text-transform: uppercase; cursor: pointer; background: none; border: none; color: var(--text-muted); transition: 0.2s; }
.nx-tab-btn.active { border-bottom: 3px solid var(--primary); color: var(--primary); }
.nx-tab-btn:hover { color: var(--primary); }

/* Content Cards */
.nx-content-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 30px; }
.nx-section-title { font-size: 16px; font-weight: 800; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.nx-subsection-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }

/* Info List */
.nx-info-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nx-info-list li { border-bottom: 1px solid #f8fafc; padding-bottom: 10px; }
.nx-info-label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.nx-info-value { font-weight: 700; color: var(--text-main); }

/* Profile Sections */
.nx-profile-section { margin-top: 30px; padding-top: 25px; border-top: 1px solid #f1f5f9; }
.nx-profile-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.nx-profile-sig { font-size: 13px; font-style: italic; opacity: 0.8; }

/* Share Actions */
.nx-share-actions { display: flex; gap: 15px; }
.nx-act-btn { flex: 1; }
.nx-act-btn a { 
    display: flex; align-items: center; justify-content: center; padding: 15px; border-radius: 14px;
    background: #f8fafc; border: 1px solid var(--border); font-size: 14px; font-weight: 800; color: var(--text-main) !important;
    text-decoration: none;
}
.nx-act-btn a:hover { border-color: var(--primary); background: #f0f4ff; color: var(--primary) !important; }

/* XFields Wrapper */
.nx-xfields-wrapper { background: #f8fafc; padding: 15px; border-radius: 12px; border: 1px solid var(--border); }

/* Form Submit */
.nx-form-submit { margin-top: 40px; border-top: 1px solid #f1f5f9; padding-top: 30px; display: flex; justify-content: flex-end; }

/* Ban Alert */
.nx-alert-danger { margin-bottom: 25px; border-left: 5px solid #ef4444; }
.nx-ban-inner { display: flex; align-items: center; gap: 20px; }
.nx-ban-icon { font-size: 32px; color: #ef4444; }
.nx-ban-title { display: block; font-size: 18px; color: #b91c1c; }
.nx-ban-desc { margin: 4px 0; color: #b91c1c; opacity: 0.8; }
.nx-ban-date { font-size: 11px; font-weight: 800; text-transform: uppercase; }

/* DLE Checkbox Overrides */
.nx-check-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.nx-check-row span { margin-left: 8px; }

/* No transitions on profile */
.nx-profile-v2 * { transition: none !important; animation: none !important; }

.nx-form-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nx-form-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nx-form-item label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nx-form-item .nx-input-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.nx-form-item input[type="text"],
.nx-form-item input[type="password"],
.nx-form-item input[type="email"],
.nx-form-item input[type="file"],
.nx-form-item select,
.nx-form-item textarea {
    width: 100% !important;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 14px;
    color: var(--text-main);
    transition: 0.2s;
    outline: none;
}

.nx-form-item input:focus, .nx-form-item select:focus, .nx-form-item textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.nx-form-check-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
}

.nx-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.nx-form-sep {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.nx-save-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nx-save-btn:hover {
    background: var(--primary-hover, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Sidebar Actions (Compact & Sarı) */
.nx-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-btn-wrap {
    display: block;
    width: 100%;
}

.nx-btn-wrap a {
    background: #f1f5f9;
    color: var(--text-main) !important;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 12px;
}

.nx-btn-wrap a:hover {
    background: #e2e8f0;
}

.nx-btn-wrap a[href*="do=pm"] {
    background: #6366f1 !important;
    color: #fff !important;
}

.nx-btn-wrap a[href*="do=pm"]:hover {
    background: #4f46e5 !important;
}

.nx-btn-wrap-sec {
    background: #f8fafc;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 1px dashed var(--border);
}

.nx-btn-wrap-sec:hover {
    color: #ef4444;
    border-color: #fecaca;
}

/* Responsive Adjustments (Mobil Uyum) */
@media (max-width: 900px) {
    .nx-profile-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .nx-profile-side {
        width: 100%;
        position: static;
    }

    .nx-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nx-content-card {
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .nx-info-grid {
        grid-template-columns: 1fr;
    }

    .nx-form-row {
        grid-template-columns: 1fr;
    }

    .nx-profile-v2 {
        margin: 10px;
    }

    .nx-side-card {
        padding: 15px;
    }
}

.nx-profile-popup {
    padding: 5px;
    min-width: 300px;
}

.nx-popup-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.nx-popup-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
}

.nx-popup-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.nx-popup-status {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}

.nx-popup-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.nx-p-stat {
    flex: 1;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.nx-p-stat b {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.nx-p-stat span {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
}

.nx-pagination a,
.nx-pagination span,
.nx-pagination b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s;
    font-size: 14px;
    cursor: pointer;
}

.nx-pagination a:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nx-pagination span:not(.prev-next),
.nx-pagination b {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.nx-pagination .prev-next {
    background: #f8fafc;
    border-style: dashed;
}

.nx-pagination .prev-next:hover {
    border-style: solid;
}

/* --- 15. Search Results Modernization --- */
.nx-results-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.nx-results-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nx-results-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
}

.nx-results-header h2 i {
    color: var(--primary);
    margin-right: 12px;
}

/* Post Results Grid */
.nx-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Comment Results List */
.nx-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Global Image Responsiveness Rule */
img {
    max-width: 100%;
    height: auto;
}

/* Pagination for Search */
.nx-pagination-search {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

/* ========================================= */
/* COMPREHENSIVE MOBILE RESPONSIVENESS PATCH */
/* ========================================= */
@media (max-width: 768px) {
    /* Grids & Cards */
    .nx-posts-grid,
    .nx-related-grid,
    .nx-stats-grid-top,
    .nx-stats-main-grid,
    .nx-form-item-grid,
    .nx-side-mini-grid,
    .nx-info-list,
    .nx-popup-action-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Shortstory & Fullstory Layout Stacking */
    .card-inner {
        flex-direction: column !important;
        padding: 15px !important;
    }
    .card-media {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
    }

    .nx-fs-content, .nx-widget-body, .nx-full-post {
        padding: 15px !important;
    }

    /* Shortstory & Fullstory Flex Overflows */
    .card-meta,
    .nx-card-actions,
    .card-footer,
    .nx-fs-meta-bottom,
    .nx-fs-meta-top,
    .nx-fs-header {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .card-meta span, 
    .nx-meta-item {
        font-size: 11px !important;
    }

    .card-admin-tools {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    /* Layouts */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .main-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 15px !important; /* Restore horizontal padding so cards do not bleed edge-to-edge out of alignment with the header */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .container {
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .card-text, .nx-fs-text, .nx-com-text {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .nx-widget-card {
        border-radius: 12px !important;
    }

    /* Header handled in earlier media query block */

    /* PM Panel */
    .nx-pm-layout {
        flex-direction: column !important;
    }
    .nx-pm-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .nx-msg-item {
        max-width: 100% !important;
    }

    /* Forms & Inline Flex Overrides */
    .nx-addnews-head,
    .nx-feedback-head,
    .nx-reg-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    /* Recaptcha / Security Codes Wrapper */
    .nx-form-item > div[style*="display: flex"],
    .nx-comm-form-wrapper div[style*="display: flex"],
    .nx-security-bar,
    .nx-form-row.double,
    .nx-add-comm-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .nx-sec-item, .nx-sec-item input {
        width: 100% !important;
    }

    .nx-cap-render img {
        width: 100% !important;
        max-width: 250px !important;
        height: auto !important;
    }

    input#sec_code {
        width: 100% !important;
    }

    /* Fullstory */
    .nx-fs-actions-bar {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: flex-start !important;
    }

    .nx-post-nav {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    .nx-nav-item.next {
        text-align: center !important;
        border-top: 1px dashed var(--border);
        padding-top: 15px;
    }

    /* Buttons */
    .nx-save-btn, .btn-read-more {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .nx-soc-grid {
        grid-template-columns: 1fr !important;
    }
    .nx-fs-tags {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .card-thumb {
        height: 180px !important;
    }
    .nx-fs-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
}

/* ============================================== */
/* NUCLEAR MOBILE FIX - ENGINE.CSS OVERRIDES      */
/* engine.css forces width:302px on ALL inputs,   */
/* 300px on search, 450px on dialogs, etc.        */
/* These break mobile. Override them ALL here.    */
/* ============================================== */
@media (max-width: 768px) {
    /* Force ALL inputs to be fluid */
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* DLE Search Suggestions */
    #searchsuggestions {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* DLE Dialogs */
    .ui-dialog {
        min-width: auto !important;
        width: 95vw !important;
        max-width: 95vw !important;
        left: 2.5vw !important;
    }

    /* DLE Tables */
    table.pm,
    table.userstop,
    table.xfields,
    table {
        width: 100% !important;
        table-layout: fixed !important;
        word-break: break-word;
    }

    table td, table th {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* DLE Share popup */
    #share-popup {
        width: 90vw !important;
        left: 5vw !important;
    }

    /* Captcha system elements */
    .c-captcha,
    .dle-captcha {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .c-captcha > a,
    .dle-captcha > a,
    .c-captcha > input,
    .dle-captcha > input {
        float: none !important;
        width: 100% !important;
    }

    /* BB Editor */
    .bb-editor textarea {
        width: 100% !important;
    }

    /* DLE quick edit */
    .quick-edit-text {
        width: 100% !important;
    }

    /* Comments tree indent control */
    .comments-tree-list {
        padding-left: 10px !important;
    }

    #dle-comments-list > .comments-tree-list {
        padding-left: 0 !important;
    }

    /* XFields layout */
    .xfieldscolleft,
    .xfieldscolright {
        float: none !important;
        width: 100% !important;
    }

    /* File upload box */
    .file-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Emoji box */
    .emoji_box {
        max-width: 100% !important;
    }

    /* Search bar in header */
    .search-bar input {
        width: 100% !important;
    }
    .search-bar input:focus {
        width: 100% !important;
    }
    .search-bar {
        width: 100% !important;
    }

    /* Pagetools / Breadcrumb */
    .pagetools {
        width: 100% !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 44px !important;
    }

    /* Prevent ANY element from exceeding viewport */
    * {
        max-width: 100vw;
    }

    .container {
        max-width: 100% !important;
    }

    .main-wrapper, .content-col, .sidebar {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}