@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card2: #1c1c1c;
    --accent: #5567FA;

    --accent-hover: #5567FA;
    --accent-purple: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #2a2a2a;
    --border-light: #333333;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #5567FA;
    --info: #3b82f6;
    --online: #10b981;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    text-decoration: none;
}

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

ul,
ol {
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
}

/* =====================
   SCROLLBAR
===================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =====================
   ANIMATIONS
===================== */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =====================
   NAVBAR
===================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-logo {
    font-size: 22px;
    font-weight: 900;
    color: #e8d5a3;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 0 #1a1008;
    -webkit-text-stroke: 1px #1a1008;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    white-space: nowrap;
}

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

.navbar-nav a.active {
    color: var(--text-primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* =====================
   BUTTONS
===================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--accent);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    color: #000000;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669;
    color: #ffffff;
}

.btn-purple {
    background-color: var(--accent-purple);
    color: #ffffff;
}

.btn-purple:hover {
    background-color: #6d28d9;
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* =====================
   DROPDOWN
===================== */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 180px;
    display: none;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.15s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

.dropdown-item:hover {
    background-color: var(--bg-card2);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border);
    margin: 6px 0;
}

/* =====================
   USER MINI
===================== */

.user-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.user-mini-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================
   HERO SECTION
===================== */

.hero {
    min-height: 100vh;
    padding-top: 64px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(85, 103, 250, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.hero-title1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
    display: block;
}

.hero-title2 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--accent);
    display: block;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    flex-shrink: 0;
    width: 360px;
    height: 360px;
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}


.hero-logo-big {
    font-size: 48px;
    font-weight: 900;
    color: #e8d5a3;

    text-shadow: 3px 3px 0 #1a1008;
    -webkit-text-stroke: 1.5px #1a1008;
    text-align: center;
}

/* =====================
   SECTION
===================== */

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

.section-title span {
    color: var(--accent);
}

/* =====================
   SHOUTBOX
===================== */

.shoutbox-wrap {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.shoutbox-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.shoutbox-messages {
    padding: 16px 24px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shoutbox-msg {
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.shoutbox-msg:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shoutbox-msg strong {
    color: var(--accent);
}

.shoutbox-form {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.shoutbox-form input {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.shoutbox-form input:focus {
    border-color: var(--accent);
}

.shoutbox-form input::placeholder {
    color: var(--text-muted);
}

/* =====================
   NEWS CARDS
===================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
    display: block;
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.news-card-img {
    width: 100%;
    height: 180px;
    background-color: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.4;
    user-select: none;
}

.news-card-body {
    padding: 18px;
}

.news-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    display: block;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.news-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================
   TOPIC ITEM
===================== */

.topic-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    transition: border-color var(--transition);
    cursor: pointer;
}

.topic-item:hover {
    border-color: var(--accent);
}

.topic-item.pinned {
    border-left: 3px solid var(--accent);
}

.topic-item.locked {
    opacity: 0.7;
}

.topic-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.topic-pin {
    color: var(--accent);
    font-size: 12px;
}

.topic-lock {
    color: var(--text-muted);
    font-size: 12px;
}

.topic-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition);
}

.topic-item:hover .topic-title {
    color: var(--accent);
}

.topic-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.topic-meta span {
    color: var(--accent);
}

.topic-stats {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* =====================
   FORUM LAYOUT
===================== */

.forum-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.forum-page-header {
    margin-bottom: 32px;
}

.forum-group {
    margin-bottom: 24px;
}

.forum-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-group-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.forum-group-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.forum-group-body {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.forum-category {
    display: grid;
    grid-template-columns: 44px 1fr 80px 80px 180px;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition);
    text-decoration: none;
    color: inherit;
}

.forum-category:last-child {
    border-bottom: none;
}

.forum-category:hover {
    background-color: var(--bg-card2);
}

.forum-cat-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-card2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.forum-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color var(--transition);
}

.forum-category:hover .forum-cat-name {
    color: var(--accent);
}

.forum-cat-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.forum-cat-mod {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.forum-cat-mod a {
    color: var(--accent);
}

.forum-stat {
    text-align: center;
}

.forum-stat-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.forum-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.forum-last {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.5;
}

.forum-last a {
    color: var(--accent);
}

/* =====================
   FORUM SIDEBAR
===================== */

.forum-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
}

.sidebar-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-card-body {
    padding: 16px 18px;
}

.server-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--online);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.status-dot.offline {
    background-color: var(--danger);
    animation: none;
}

.status-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--online);
}

.status-text.offline {
    color: var(--danger);
}

.status-ip {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 14px;
}

/* =====================
   POST / TOPIC VIEW
===================== */

.topic-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.post-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 180px 1fr;
}

.post-author {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    background-color: var(--bg-card2);
    text-align: center;
}

.post-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid var(--border);
}

.post-username {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    word-break: break-word;
}

.post-rank {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.post-count {
    font-size: 11px;
    color: var(--text-muted);
}

.post-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
    gap: 12px;
}

.post-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    word-break: break-word;
}

.reply-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-top: 20px;
}

/* =====================
   FORMS
===================== */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--accent);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.forum-editor {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.forum-editor .ql-toolbar.ql-snow {
    background: var(--bg-card);
    border: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.forum-editor .ql-container.ql-snow {
    min-height: 260px;
    border: 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.forum-editor .ql-editor {
    min-height: 260px;
    line-height: 1.6;
}

.forum-editor .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
}

.forum-editor .ql-snow .ql-stroke {
    stroke: var(--text-muted);
}

.forum-editor .ql-snow .ql-fill,
.forum-editor .ql-snow .ql-stroke.ql-fill {
    fill: var(--text-muted);
}

.forum-editor .ql-snow .ql-picker {
    color: var(--text-muted);
}

.forum-editor .ql-snow .ql-picker-options {
    background: var(--bg-card);
    border-color: var(--border);
}

.forum-editor .ql-snow .ql-picker.ql-expanded .ql-picker-label,
.forum-editor .ql-snow .ql-picker.ql-expanded .ql-picker-options {
    border-color: var(--border);
}

.forum-editor .ql-snow button:hover .ql-stroke,
.forum-editor .ql-snow button.ql-active .ql-stroke,
.forum-editor .ql-snow .ql-picker-label:hover .ql-stroke,
.forum-editor .ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: var(--accent);
}

.forum-editor .ql-snow button:hover .ql-fill,
.forum-editor .ql-snow button.ql-active .ql-fill {
    fill: var(--accent);
}

.forum-editor .ql-snow .ql-picker-label:hover,
.forum-editor .ql-snow .ql-picker-label.ql-active,
.forum-editor .ql-snow .ql-picker-item:hover,
.forum-editor .ql-snow .ql-picker-item.ql-selected {
    color: var(--accent);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

input[type="color"].form-control {
    padding: 4px;
    cursor: pointer;
    height: 42px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* =====================
   ALERTS
===================== */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* =====================
   BADGES
===================== */

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #5567FA;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-purple {
    background-color: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

.badge-gray {
    background-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

/* =====================
   AUTH PAGES
===================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    background-image: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(13, 21, 40, 0.8) 0%, transparent 70%);
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.auth-logo {
    font-size: 38px;
    font-weight: 900;
    color: #e8d5a3;
    text-shadow: 3px 3px 0 #1a1008;
    -webkit-text-stroke: 1.5px #1a1008;
    margin-bottom: 6px;
    display: block;
}

.auth-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3b82f6;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-subtitle::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-card .form-group {
    text-align: left;
}

.btn-login {
    width: 100%;
    background-color: #4f46e5;
    color: #ffffff;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color var(--transition);
    font-family: inherit;
    line-height: 1;
}

.btn-login:hover {
    background-color: #4338ca;
}

.btn-register-link {
    width: 100%;
    background-color: transparent;
    color: var(--text-secondary);
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
    display: block;
    text-align: center;
    font-family: inherit;
    line-height: 1;
}

.btn-register-link:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* =====================
   BREADCRUMB
===================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent);
    transition: opacity var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* =====================
   PAGINATION
===================== */

.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    background-color: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

.page-btn.active {
    background-color: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

/* =====================
   ADMIN LAYOUT
===================== */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
}

.admin-sidebar {
    width: 240px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 16px 0;
    z-index: 100;
}

.admin-sidebar-logo {
    padding: 0 18px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.admin-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0 18px;
    margin-bottom: 4px;
    margin-top: 14px;
    display: block;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
    text-decoration: none;
    width: 100%;
}

.admin-nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background-color: rgba(245, 158, 11, 0.08);
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    min-height: calc(100vh - 64px);
}

.admin-page-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

/* =====================
   ADMIN STATS
===================== */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card.accent {
    border-top: 3px solid var(--accent);
}

.stat-card.danger {
    border-top: 3px solid var(--danger);
}

.stat-card.success {
    border-top: 3px solid var(--success);
}

.stat-card.info {
    border-top: 3px solid var(--info);
}

.stat-card-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================
   ADMIN TABLE
===================== */

.admin-table-wrap {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-table-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-table-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--bg-card2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 13px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background-color var(--transition);
}

.table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* =====================
   SETTINGS
===================== */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.settings-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.settings-section-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    background-color: var(--bg-card2);
}

.settings-section-body {
    padding: 18px;
}

/* =====================
   MODAL
===================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/* =====================
   FOOTER
===================== */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: #e8d5a3;
    text-shadow: 2px 2px 0 #1a1008;
    -webkit-text-stroke: 1px #1a1008;
    margin-bottom: 6px;
    display: block;
}

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

.footer-links {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

/* =====================
   UTILITY CLASSES
===================== */

.text-accent {
    color: var(--accent);
}

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

.text-secondary {
    color: var(--text-secondary);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.fw-bold {
    font-weight: 700;
}

.fw-black {
    font-weight: 900;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.w-100 {
    width: 100%;
}

.code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background-color: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 1024px) {
    .forum-wrap {
        grid-template-columns: 1fr;
    }

    .forum-sidebar {
        position: static;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badge {
        justify-content: center;
    }

    .forum-category {
        grid-template-columns: 44px 1fr;
    }

    .forum-stat {
        display: none;
    }

    .forum-last {
        display: none;
    }

    .post-item {
        grid-template-columns: 1fr;
    }

    .post-author {
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 14px 16px;
    }

    .post-avatar {
        margin: 0;
        flex-shrink: 0;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .section {
        padding: 40px 16px;
    }

    .topic-wrap {
        padding: 80px 16px 40px;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title1,
    .hero-title2 {
        font-size: 32px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .modal {
        padding: 20px 16px;
    }

    .forum-wrap {
        padding: 80px 12px 40px;
    }
}
/* =====================
   NAVBAR USER DROPDOWN
===================== */

.nav-user-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #ffffff;
    font-family: inherit;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3a3a3a;
}

.nav-user-btn.open {
    background: rgba(85, 103, 250, 0.1);
    border-color: #5567FA;
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5567FA, #4654d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #000000;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-chevron {
    color: #6b7280;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-user-btn.open .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background-color: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 9999;
    animation: dropdownFadeIn 0.15s ease;
}

.nav-dropdown-menu.open {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.nav-drop-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(85, 103, 250, 0.08), rgba(85, 103, 250, 0.02));
}

.nav-drop-avatar-big {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5567FA, #4654d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #000000;
    flex-shrink: 0;
}

.nav-drop-username {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.nav-role-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.nav-role-badge.admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.nav-role-badge.mod {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-role-badge.user {
    background: rgba(85, 103, 250, 0.15);
    color: #5567FA;
    border: 1px solid rgba(85, 103, 250, 0.25);
}

/* Divider */
.nav-drop-divider {
    height: 1px;
    background-color: #2a2a2a;
    margin: 0;
}

/* Section */
.nav-drop-section {
    padding: 6px;
}

/* Item */
.nav-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    transition: background-color 0.15s;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.nav-drop-item:hover {
    background-color: #1c1c1c;
}

.nav-drop-icon {
    width: 34px;
    height: 34px;
    background-color: #1c1c1c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid #2a2a2a;
    transition: all 0.15s;
}

.nav-drop-item:hover .nav-drop-icon {
    background-color: #242424;
    border-color: #3a3a3a;
}

.nav-drop-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1px;
}

.nav-drop-sub {
    font-size: 11px;
    color: #6b7280;
}

/* Admin items */
.admin-item .nav-drop-label {
    color: #5567FA;
}

.admin-item .nav-drop-icon {
    background-color: rgba(85, 103, 250, 0.08);
    border-color: rgba(85, 103, 250, 0.2);
}

.admin-item:hover .nav-drop-icon {
    background-color: rgba(85, 103, 250, 0.15);
    border-color: rgba(85, 103, 250, 0.3);
}

/* Logout */
.logout-item .nav-drop-label {
    color: #ef4444;
}

.logout-item .nav-drop-icon {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.logout-item:hover {
    background-color: rgba(239, 68, 68, 0.05);
}

.logout-item:hover .nav-drop-icon {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Click outside overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}

.nav-overlay.open {
    display: block;
}
