/* AuroraNetworks - Community Portal Stylesheet
   Modern Dark Theme with Blue Accent — inspired by TDM design */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');
:root {
    --bg: #060608;
    --surface: #0e1015;
    --card: rgba(18, 18, 24, 0.7);
    --card-hover: rgba(24, 28, 36, 0.85);
    --accent: #5A96FF;
    --accent-rgb: 90, 150, 255;
    --accent-dim: rgba(90, 150, 255, 0.1);
    --accent-glow: rgba(90, 150, 255, 0.2);
    --text-primary: #EBEBF0;
    --text-dim: #8C9BAF;
    --divider: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gold: #FCD34D;
    --font: 'Inter', 'Outfit', 'Roboto', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-lg: 0 16px 48px 0 rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Legacy variable mappings for compatibility */
    --primary-color: #121218;
    --secondary-color: #161820;
    --accent-color: #5A96FF;
    --highlight-color: #5A96FF;
    --text-color: #EBEBF0;
    --bg-color: #060608;
    --card-bg: #121218;
    --border-color: #252830;
    --white: #EBEBF0;
    --cyan: #5A96FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg);
    min-height: 100vh;
}

/* Subtle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, #0a0c12 0%, #060608 100%);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: rgba(6, 6, 8, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--divider);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.85;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-image {
    transform: scale(1.08);
}

.logo-text {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--text-primary);
    background: var(--accent-dim);
}

/* Nav Search */
.nav-search {
    flex: 1;
    max-width: 300px;
    margin: 0 2rem;
    position: relative;
}
.nav-search form {
    display: flex;
    align-items: center;
}
.nav-search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 2.5rem 0.4rem 1rem;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.nav-search-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 150, 255, 0.15);
}
.nav-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.nav-search-btn:hover {
    color: var(--accent);
}

/* Coin Balance in Nav */
.coin-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--accent-dim);
    border-radius: 20px;
    border: 1px solid rgba(90,150,255,0.25);
    transition: all 0.3s ease;
}

.coin-balance:hover {
    background: rgba(90,150,255,0.2);
    border-color: var(--accent);
}

.coin-balance .coin-amount {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    z-index: 1;
}

.coin-balance .coin-icon {
    font-size: 1.1rem;
    z-index: 1;
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--accent);
    padding: 0.45rem 1.2rem !important;
    color: var(--accent) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: var(--accent);
    color: #fff !important;
}

.btn-nav-primary {
    background: var(--accent);
    color: #fff !important;
    padding: 0.45rem 1.2rem !important;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

.btn-nav-primary:hover {
    background: #4A86EF;
    border-color: #4A86EF;
}

/* ========================================
   PROFILE DROPDOWN
======================================== */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.profile-toggle:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.profile-username {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    color: var(--text-dim);
}

.profile-toggle:hover .dropdown-arrow {
    color: var(--accent);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 260px;
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem;
    background: var(--accent-dim);
}

.profile-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.profile-menu-info {
    flex: 1;
}

.profile-menu-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.profile-menu-email {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.profile-menu-divider {
    height: 1px;
    background: var(--divider);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.profile-menu-item:hover {
    background: var(--accent-dim);
    color: var(--text-primary);
}

.profile-menu-item.logout {
    color: var(--error);
}

.profile-menu-item.logout:hover {
    background: rgba(248,113,113,0.1);
}

.menu-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(90,150,255,0.3));
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.08);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.hero .tagline {
    font-size: 1.15rem;
    color: var(--text-dim);
    font-weight: 400;
}

/* ========================================
   SECTION HEADERS
======================================== */
.latest-news h2,
.quick-links h2,
.categories-section h2,
.projects-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

/* ========================================
   LATEST NEWS
======================================== */
.latest-news {
    margin: 3rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-card {
    background: var(--card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.news-card:hover::after {
    opacity: 1;
}

.news-thumbnail {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.25rem;
}

.news-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.news-content h3 a:hover {
    color: var(--accent);
}

.news-description {
    color: var(--text-dim);
    margin: 0.75rem 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.news-stats {
    display: flex;
    gap: 0.75rem;
}

.view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.no-content {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
}

/* ========================================
   QUICK LINKS
======================================== */
.quick-links {
    margin: 3rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.quick-link-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.quick-link-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.quick-link-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========================================
   PROJECTS SECTION
======================================== */
.projects-section {
    margin: 3rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.project-banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--surface), var(--card));
}

.project-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-banner img {
    transform: scale(1.05);
}

.project-banner--logo {
    background: linear-gradient(145deg, rgba(20, 24, 32, 0.95), var(--surface));
}

.project-banner--logo img {
    object-fit: contain;
    padding: 1.25rem 1.5rem;
}

.project-card:hover .project-banner--logo img {
    transform: scale(1.04);
}

.project-banner .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,8,0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.project-overlay .project-tag {
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-banner-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--surface), var(--card-hover));
    color: var(--accent);
    position: relative;
}

.project-banner-placeholder .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,8,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.project-body {
    padding: 1.25rem;
}

.project-body h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   CATEGORIES
======================================== */
.categories-section {
    margin: 3rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.category-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========================================
   DASHBOARD
======================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.dashboard-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.user-role {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.stat-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.quick-actions-section,
.recent-activity-section,
.user-info-section {
    margin-bottom: 2.5rem;
}

.quick-actions-section h2,
.recent-activity-section h2,
.user-info-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    font-weight: 700;
}

/* TDM Stats */
.tdm-stats-section {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tdm-stats-section h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tdm-cta {
    padding: 1rem 0;
}

.tdm-link {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    color: #fff;
    background: #5A96FF; /* Aurora accent */
    text-decoration: none;
    font-weight: 600;
}

.tdm-empty {
    color: var(--text-dim);
    padding: 0.5rem 0;
}

.tdm-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
}

.tdm-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tdm-rank-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
}

.tdm-rank-name {
    color: #FFD700;
    font-weight: 800;
    font-size: 1.25rem;
}

.tdm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tdm-stat {
    background: rgba(0,0,0,0.03);
    padding: 0.6rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.tdm-stat .label {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.tdm-stat .value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.tdm-actions {
    margin-top: 0.5rem;
}

.tdm-actions .btn {
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.action-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.action-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.action-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.activity-list {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.activity-group {
    margin-bottom: 1.5rem;
}

.activity-group:last-child {
    margin-bottom: 0;
}

.activity-group h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    font-size: 1.25rem;
}

.activity-content {
    flex: 1;
}

.activity-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.activity-content a:hover {
    color: var(--accent);
}

.activity-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.35rem;
}

.activity-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.user-info-section {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.user-details {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.detail-item strong {
    color: var(--text-primary);
}

.detail-item span {
    color: var(--text-dim);
}

/* ========================================
   TICKETS
======================================== */
.tickets-list {
    display: grid;
    gap: 1.25rem;
}

.ticket-card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.ticket-header h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticket-header h3 a:hover {
    color: var(--accent);
}

.ticket-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.ticket-description {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.ticket-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.ticket-filters {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
}

.ticket-filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-filter-form label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.ticket-filter-form select {
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ticket-quick-status {
    padding: 0.4rem 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* ========================================
   FORMS
======================================== */
.ticket-form,
.ticket-create-container,
.ticket-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.ticket-create-container h1,
.ticket-detail-container h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.community-inline-form {
    display: inline-flex;
    align-items: end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: all 0.2s ease;
}

.btn:hover {
    background: #4A86EF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(90,150,255,0.3);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #2ABF8A;
}

.btn-warning {
    background: var(--warning);
    color: #111;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #E05555;
}

.btn-small,
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* ========================================
   BADGES
======================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-low {
    background: rgba(52,211,153,0.15);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.3);
}

.badge-medium {
    background: rgba(251,191,36,0.15);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.3);
}

.badge-high,
.badge-urgent {
    background: rgba(248,113,113,0.15);
    color: var(--error);
    border: 1px solid rgba(248,113,113,0.3);
}

.badge-normal {
    background: rgba(90,150,255,0.15);
    color: var(--accent);
    border: 1px solid rgba(90,150,255,0.3);
}

.badge-cautious {
    background: rgba(251,191,36,0.15);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.3);
}

.badge-meta {
    background: rgba(140,155,175,0.18);
    color: var(--text-primary);
    border: 1px solid rgba(140,155,175,0.35);
}

.badge-accepted,
.badge-status-accepted {
    background: rgba(52,211,153,0.15);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.3);
}

.badge-declined,
.badge-status-declined {
    background: rgba(248,113,113,0.15);
    color: var(--error);
    border: 1px solid rgba(248,113,113,0.3);
}

.badge-votes {
    background: rgba(90,150,255,0.15);
    color: var(--accent);
    border: 1px solid rgba(90,150,255,0.3);
}

.badge-voted {
    background: rgba(52,211,153,0.15);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.3);
}

.badge-open,
.badge-status-open {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(90,150,255,0.3);
}

.badge-in_progress,
.badge-status-in_progress {
    background: rgba(251,191,36,0.15);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.3);
}

.badge-resolved,
.badge-closed,
.badge-status-resolved,
.badge-status-closed {
    background: rgba(52,211,153,0.15);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.3);
}

.badge-admin {
    background: rgba(248,113,113,0.15);
    color: var(--error);
    border: 1px solid rgba(248,113,113,0.3);
}

.badge-moderator {
    background: rgba(251,191,36,0.15);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.3);
}

.badge-user {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(90,150,255,0.3);
}

/* ========================================
   TICKET DETAIL
======================================== */
.ticket-detail-container {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.ticket-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--divider);
}

.ticket-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ticket-staff-toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.ticket-staff-toolbar .status-change-controls,
.ticket-staff-toolbar .priority-change-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.staff-toolbar-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.ticket-staff-toolbar .status-select,
.ticket-staff-toolbar .priority-select {
    padding: 0.4rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ticket-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.info-item {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.info-item strong {
    color: var(--text-primary);
}

.ticket-original-message {
    margin-bottom: 1.5rem;
}

.ticket-original-message h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.message-content {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    line-height: 1.7;
    color: var(--text-dim);
}

.ticket-replies {
    margin-bottom: 1.5rem;
}

.ticket-replies h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.reply-item {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.85rem;
}

.user-reply {
    background: var(--surface);
    border-left: 3px solid var(--accent);
}

.staff-reply {
    background: rgba(52,211,153,0.06);
    border-left: 3px solid var(--success);
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.reply-main {
    flex: 1;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.reply-author {
    color: var(--text-primary);
    font-weight: 500;
}

.staff-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.reply-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.reply-content {
    color: var(--text-dim);
    line-height: 1.6;
}

.empty-copy {
    color: var(--text-dim);
}

.ticket-reply-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
}

.ticket-reply-form h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.attachment-display {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.attachment-thumb-link {
    display: block;
    line-height: 0;
}

.attachment-thumb {
    max-width: 160px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: contain;
}

.attachment-thumb-link:hover .attachment-thumb {
    border-color: var(--accent);
}

.attachment-display i {
    color: var(--accent);
}

.attachment-link {
    color: var(--accent);
    text-decoration: none;
}

.attachment-link:hover {
    text-decoration: underline;
}

.reply-form-staff-hint {
    color: var(--success);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.reply-form-staff-hint i {
    margin-right: 0.35rem;
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-dim);
    font-size: 0.75rem;
}

input[type="file"] {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--text-primary);
    width: 100%;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: 0.75rem;
    font-size: 0.8rem;
}

/* ========================================
   ALERTS
======================================== */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.3);
    color: var(--error);
}

.alert-success {
    background: rgba(52,211,153,0.12);
    border: 1px solid rgba(52,211,153,0.3);
    color: var(--success);
}

.alert ul {
    list-style: none;
}

.empty-state {
    text-align: center;
    padding: 2.5rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-state p {
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--card);
    border-top: 1px solid var(--divider);
    color: var(--text-dim);
    padding: 2.5rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--divider);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Fallback simple footer */
footer p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

footer .footer-links a:hover {
    opacity: 0.8;
}

/* ========================================
   AUTH PAGES
======================================== */
.auth-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-bg-animation {
    display: none;
}

.auth-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 430px;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: var(--radius) var(--radius) 0 0;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card-header h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    -webkit-text-fill-color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.auth-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
    margin: 0.75rem auto;
    width: 50%;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form .label-icon {
    font-size: 1.1rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-form .form-control::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    transform: none;
    background: var(--surface);
}

.auth-form .btn-block {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.auth-form .btn-block:hover {
    background: #4A86EF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(90,150,255,0.3);
}

.auth-form .btn-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: loaderSpin 0.7s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
}

.auth-links p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    opacity: 0.8;
}

.demo-credentials {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    max-width: 430px;
    width: 100%;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.demo-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.75rem;
    text-align: center;
}

.demo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--divider);
}

.demo-item:last-child {
    border-bottom: none;
}

.demo-label {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.demo-value {
    color: var(--text-dim);
    font-family: monospace;
    font-size: 0.85rem;
}

/* ========================================
   ARTICLES LIST
======================================== */
.articles-list {
    display: grid;
    gap: 1.5rem;
}

.article-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.75rem;
    overflow: hidden;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content h2 a:hover {
    color: var(--accent);
}

.content-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.content-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-description {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-thumbnail {
    width: 280px;
    height: 190px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-item:hover .article-thumbnail img {
    transform: scale(1.05);
}

.page-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.25);
}

.article-card-image {
    display: block;
    height: 180px;
    overflow: hidden;
    background: var(--surface);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.06);
}

.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.article-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: var(--accent);
}

.article-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.article-card-meta .author-info {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-card-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.articles-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.articles-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.articles-empty p {
    color: var(--text-dim);
}

/* ========================================
   CONTENT DETAIL
======================================== */
.content-detail {
    max-width: 900px;
    margin: 0 auto;
}

.content-header {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.content-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.content-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: none;
}

.content-meta-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.content-meta-bar span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.like-btn {
    background: var(--error);
    border: none;
    padding: 0.5rem 1.15rem;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.like-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(248,113,113,0.3);
}

.content-image {
    width: 100%;
    max-height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-text {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-text.quill-content h1, .content-text.quill-content h2, .content-text.quill-content h3, .content-text.quill-content h4 {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}
.content-text.quill-content h1 { font-size: 1.75rem; }
.content-text.quill-content h2 { font-size: 1.4rem; }
.content-text.quill-content h3 { font-size: 1.2rem; }
.content-text.quill-content ul, .content-text.quill-content ol {
    margin: 0.75em 0;
    padding-left: 1.5em;
}
.content-text.quill-content li { margin-bottom: 0.35em; }
.content-text.quill-content blockquote {
    border-left: 4px solid var(--highlight-color);
    margin: 1em 0;
    padding-left: 1em;
    color: var(--text-dim);
}
.content-text.quill-content pre, .content-text.quill-content code {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}
.content-text.quill-content pre { padding: 1rem; overflow-x: auto; }
.content-text.quill-content pre code { padding: 0; }
.content-text.quill-content a { color: var(--highlight-color); }
.content-text.quill-content img { max-width: 100%; height: auto; border-radius: 8px; }
.content-text.quill-content p { margin-bottom: 0.75em; }
.content-text.quill-content p:last-child { margin-bottom: 0; }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   COMMENTS
======================================== */
.comments-section {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comments-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.85rem;
    font-weight: 700;
}

.comment-form {
    margin-bottom: 1.5rem;
    padding: 1.15rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.comment-form h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.comment-form textarea {
    width: 100%;
    padding: 0.85rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    resize: vertical;
    margin-bottom: 0.75rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.comments-list {
    display: grid;
    gap: 0.75rem;
}

.comment {
    background: var(--surface);
    padding: 1.15rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    transition: background 0.2s ease;
}

.comment:hover {
    background: var(--card-hover);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-weight: 500;
}

.comment-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.comment-body {
    color: var(--text-dim);
    line-height: 1.6;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

/* ========================================
   PAGE HEADER (About, Contact, etc.)
======================================== */
.page-header {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    text-shadow: none;
}

/* About */
.about-content {
    max-width: 900px;
    margin: 1.5rem auto;
}

.about-content section {
    background: var(--card);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.about-content section:hover {
    border-color: rgba(90,150,255,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.about-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.about-content p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.about-content ul li {
    padding: 0.65rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

.about-content ul li strong {
    color: var(--accent);
    font-weight: 600;
}

.about-content .btn {
    margin-top: 0.75rem;
}

/* Contact */
.contact-form {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.contact-info {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info p strong {
    color: var(--text-primary);
}

/* ========================================
   ADMIN
======================================== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.admin-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 0.6rem 1.15rem;
    background: var(--surface);
    color: var(--text-dim);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.admin-content {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.data-table thead {
    background: var(--accent-dim);
}

.data-table th,
.data-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--divider);
}

.data-table th {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--text-dim);
}

.data-table tr:hover {
    background: var(--surface);
}

.action-buttons {
    display: flex;
    gap: 0.35rem;
}

.btn-edit {
    background: rgba(251,191,36,0.12);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.3);
}

.btn-delete {
    background: rgba(248,113,113,0.12);
    color: var(--error);
    border: 1px solid rgba(248,113,113,0.3);
}

.btn-edit:hover {
    background: var(--warning);
    color: #111;
}

.btn-delete:hover {
    background: var(--error);
    color: #fff;
}

/* ========================================
   SERVERS
======================================== */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.server-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.server-name {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.server-status {
    padding: 0.3rem 0.85rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.server-status.online {
    background: rgba(52,211,153,0.15);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.3);
}

.server-status.offline {
    background: rgba(248,113,113,0.15);
    color: var(--error);
    border: 1px solid rgba(248,113,113,0.3);
}

.server-info {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    background: var(--surface);
    border-radius: 6px;
}

.server-info-label {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.server-info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.server-connect {
    background: var(--accent);
    color: #fff;
    padding: 0.65rem;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.server-connect:hover {
    background: #4A86EF;
}

/* ========================================
   COINS / CURRENCY
======================================== */
.coins-display {
    background: var(--accent-dim);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(90,150,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.coins-icon {
    font-size: 1.25rem;
}

.coins-amount {
    color: var(--gold);
}

/* ========================================
   PROFILE PAGES
======================================== */
.profile-container,
.settings-container {
    padding: 1.5rem 0;
}

.profile-header {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar-large {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(90,150,255,0.2);
    transition: transform 0.3s ease;
}

.profile-avatar-large:hover {
    transform: scale(1.04);
}

.profile-info-section {
    flex: 1;
}

.profile-info-section h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    -webkit-text-fill-color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.profile-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.profile-role,
.profile-joined {
    padding: 0.35rem 0.85rem;
    background: var(--accent-dim);
    border: 1px solid rgba(90,150,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.profile-stats {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.stat-item {
    text-align: center;
    padding: 0.85rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.profile-card h2 {
    color: var(--accent);
    margin-bottom: 1.15rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.profile-bio {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.15rem;
}

.profile-location {
    color: var(--text-dim);
    margin-bottom: 1.15rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    transition: background 0.2s ease;
}

.transaction-item:hover {
    background: var(--card-hover);
}

.transaction-item.positive {
    border-left-color: var(--success);
}

.transaction-item.negative {
    border-left-color: var(--error);
}

.transaction-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 50%;
}

.transaction-info {
    flex: 1;
}

.transaction-reason {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--error);
}

/* ========================================
   SETTINGS
======================================== */
.settings-container h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    -webkit-text-fill-color: var(--text-primary);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.settings-card h2 {
    color: var(--accent);
    margin-bottom: 1.15rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--divider);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-dim);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   AUTHOR & MEMBERS
======================================== */
.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.member-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(90,150,255,0.3);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.85rem;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.member-info h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.member-email {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.member-role {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.35rem 0;
    text-transform: uppercase;
}

.member-joined {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin: 0.35rem 0 0.75rem;
}

/* Ticket Avatars */
.ticket-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.ticket-author {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.ticket-card .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ticket-card .ticket-header h3 {
    margin: 0;
}

/* Status controls */
.status-change-controls {
    margin-left: 0.75rem;
}

.status-select {
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font);
}

.status-select:hover {
    background: var(--accent-dim);
}

.badge-status-open { background: var(--accent-dim); color: var(--accent); }
.badge-status-in_progress { background: rgba(251,191,36,0.15); color: var(--warning); }
.badge-status-resolved { background: rgba(52,211,153,0.15); color: var(--success); }
.badge-status-closed { background: rgba(140,155,175,0.15); color: var(--text-dim); }

.ticket-original-message,
.ticket-replies,
.ticket-reply-form {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.message-content {
    color: var(--text-dim);
    line-height: 1.8;
    margin-top: 0.75rem;
}

.ticket-title-section h1 {
    margin: 0.35rem 0;
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .news-grid,
    .links-grid,
    .categories-grid,
    .stats-grid,
    .actions-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .ticket-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ticket-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-item {
        grid-template-columns: 1fr;
    }

    .article-thumbnail {
        width: 100%;
        height: 200px;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   MOBILE MENU TOGGLE
======================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ========================================
   SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ========================================
   SELECTION
======================================== */
::selection {
    background: var(--accent);
    color: #fff;
}

