/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --primary-dark: #00cc33;
    --secondary-color: #0d0d0d;
    --accent-color: #00d4ff;
    --text-color: #e0e0e0;
    --text-muted: #888;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --shadow-color: rgba(0, 255, 65, 0.3);
    --shadow-strong: rgba(0, 255, 65, 0.5);
    --gradient-1: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== MATRIX BACKGROUND ===== */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.25;
}

.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(10, 10, 10, 0.65) 50%, 
        rgba(0, 0, 0, 0.75) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.98) 0%, 
        rgba(15, 15, 15, 0.95) 100%);
    box-shadow: 0 4px 30px var(--shadow-color),
                0 1px 0 rgba(0, 255, 65, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--shadow-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.15);
}

/* ===== SEARCH BOX ===== */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 25px;
    padding: 0.6rem 1rem;
    padding-right: 2.5rem;
    color: var(--text-color);
    width: 200px;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
    width: 250px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
}

.search-box button:hover {
    transform: scale(1.1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.05) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* Increased from 800px to allow wider posts */
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-muted);
    animation: border-pulse 2s infinite;
}

.btn-outline:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.share-buttons .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

/* Button Pulse Animation */
@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 65, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
        transform: scale(1);
    }
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 77, 77, 0.5);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    animation: titleFadeIn 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    animation: underlineExpand 0.8s ease-out 0.3s forwards;
}

/* ===== NEWS SLIDER ===== */
.news-slider-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

/* Social Wall Slider Adaptations */
.news-slider-container .post-card {
    flex: 0 0 calc(33.333% - 1rem); /* Default: 3 items per row */
    background: var(--bg-card); /* Ensure background matches */
    margin-top: 0 !important; /* Override inline styles for alignment */
    margin-bottom: 0 !important;
    height: auto;
    display: flex;
    flex-direction: column;
}

.news-slider-container .post-card .post-content {
    flex: 1; /* Push footer to bottom */
}

@media (max-width: 1024px) {
    .news-slider-container .post-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .news-slider-container .post-card {
        flex: 0 0 100%;
    }
}

.news-slider {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
}

.news-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 255, 65, 0.1);
    transition: var(--transition-normal);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 30px var(--shadow-color);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-image-container {
    overflow: hidden;
    position: relative;
}

.news-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    font-size: 1.2rem;
    position: relative;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

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

/* ===== DOWNLOADS SECTION ===== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 255, 65, 0.1);
    transition: var(--transition-normal);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4),
                0 0 20px var(--shadow-color);
}

.download-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-info h3 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.download-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.download-versions {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.version-info {
    display: flex;
    flex-direction: column;
}

.version-number {
    color: var(--primary-color);
    font-weight: 600;
}

.version-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(0deg, 
        rgba(5, 5, 5, 1) 0%, 
        rgba(10, 10, 10, 0.95) 100%);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 30px var(--shadow-color),
                0 -1px 0 rgba(0, 255, 65, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== ARTICLE PAGE ===== */
.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite, titleFadeIn 0.8s ease-out;
}

/* ===== TITLE ANIMATIONS ===== */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.3),
                     0 0 20px rgba(0, 255, 65, 0.2),
                     0 0 30px rgba(0, 255, 65, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 65, 0.5),
                     0 0 40px rgba(0, 255, 65, 0.3),
                     0 0 60px rgba(0, 255, 65, 0.2);
    }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated underline for titles */
.article-title::after,
.program-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    animation: underlineExpand 1s ease-out 0.5s forwards;
    margin-top: 0.5rem;
    border-radius: 2px;
}

@keyframes underlineExpand {
    0% { width: 0; }
    100% { width: 100px; }
}

/* Program detail title */
.program-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite, titleFadeIn 0.8s ease-out;
}

/* Program description formatting */
.program-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.program-description p {
    margin-bottom: 0.75rem;
}

.program-description h4.description-heading {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.program-description h4.description-heading:first-child {
    margin-top: 0;
}

.program-description ul.description-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1rem 0;
}

.program-description ul.description-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.program-description ul.description-list li::before {
    content: 'Ä‚ËĂ˘â‚¬â€śĂ‚Â¸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-featured-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.article-content h3 {
    margin: 1.5rem 0 0.8rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* ===== CODE BLOCKS ===== */
.article-content code {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.article-content pre code {
    background: none;
    padding: 0;
    display: block;
    line-height: 1.6;
}

.code-block {
    position: relative;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-bottom: none;
}

.code-block-language {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.code-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.code-copy-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary-color);
}

.code-block pre {
    margin-top: 0;
    border-radius: 0 0 12px 12px;
}

/* ===== VIDEO EMBED ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.contact-info {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(0, 255, 65, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
}

.contact-form-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== ALL NEWS PAGE ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 65, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-error {
    background: rgba(255, 65, 65, 0.1);
    border: 1px solid #ff4141;
    color: #ff4141;
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* ===== RAFFLE SYSTEM ===== */
.raffle-bubble {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 0 15px var(--shadow-color);
    z-index: 1000;
    overflow: hidden;
    animation: slideInRight 0.5s ease-out;
    max-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
}

.raffle-bubble-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    flex-shrink: 0;
}

/* ===== SITE SIDEBAR ===== */
.site-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 255, 65, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.site-sidebar.active {
    right: 0;
}

.site-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.site-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: var(--primary-color);
}

.sidebar-user-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidebar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-username {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.sidebar-user-status {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.sidebar-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-btn {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* ===== SINGLE AD PAGE ===== */
.single-ad-container {
    padding: 2rem 0;
}

.ad-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.1);
}

.ad-images-section {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.ad-info-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.ad-info-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.ad-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.ad-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ad-description {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ad-detail-contact {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .ad-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
}
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-dark);
}

.raffle-bubble-image {
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.raffle-bubble-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raffle-bubble-content {
    flex: 1;
}

.raffle-bubble-title {
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #007bff;
}

.raffle-bubble-desc {
    font-size: 0.75rem;
    opacity: 0.9;
    color: black;
}

.raffle-bubble-close {
    background: none;
    border: none;
    color: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.raffle-bubble-close:hover {
    opacity: 1;
}

.raffle-bubble-body {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.raffle-bubble-label {
    color: var(--primary-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.raffle-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.raffle-user-rank {
    font-weight: bold;
    color: var(--accent-color);
    width: 20px;
    font-size: 0.8rem;
}

.raffle-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raffle-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raffle-user-info {
    flex: 1;
}

.raffle-user-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.raffle-user-points {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.raffle-countdown {
    text-align: center;
    font-family: monospace;
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 0.9rem;
    text-shadow: 0 0 10px var(--shadow-color);
}

.raffle-actions {
    display: flex;
    gap: 10px;
}

.raffle-gift-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--shadow-color);
    z-index: 1000;
    transition: var(--transition-normal);
    animation: bounce 2s infinite;
}

.raffle-gift-toggle:hover {
    transform: scale(1.1);
}

.raffle-gift-days {
    position: fixed;
    bottom: 60px;
    right: 10px;
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: none;
    z-index: 1000;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* ===== ANIMATIONS ===== */
@keyframes avatarFloat { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-3px)} }
.avatar-anim { animation: avatarFloat 3s ease-in-out infinite; box-shadow: 0 6px 14px rgba(34,197,94,.15); }
@keyframes namePulse { 0%,100%{ color:#fff } 50%{ color:#a7f3d0 } }
.name-anim { animation: namePulse 2.5s ease-in-out infinite; font-weight:700 }

/* ===== RAFFLE EXTRAS ===== */
.raffle-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* ===== POST CARDS ===== */
.post-card {
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 12px;
    margin-top: 0;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.post-user-name {
    text-align: center;
    color: #fff;
}

.post-avatar-img, .post-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.post-avatar-placeholder {
    background: rgba(0,255,65,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #22c55e;
}

.comment-avatar-img, .comment-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar-placeholder {
    background: rgba(0,255,65,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #22c55e;
}

.post-card-spacer {
    flex: 1;
}

.post-top-badge {
    margin-left: 8px;
    background: linear-gradient(135deg,#ffd700,#f59e0b);
    color: #111;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .7rem;
    font-weight: 800;
}

.btn-xs {
    padding: 4px 8px;
    font-size: .75rem;
}

.post-video-frame {
    width: 100%;
    height: 260px;
    border-radius: 8px;
}

.post-img-wrapper {
    margin-top: 8px;
}

.post-img-wrapper img {
    max-width: 100%;
    border-radius: 8px;
}

.post-link-wrapper {
    margin-top: 6px;
}

.post-link-wrapper a {
    color: #60a5fa;
    word-break: break-all;
}

.post-btn-show-comments {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.comment-user-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.comment-user-name {
    color: #fff;
    font-size: .9rem;
    text-align: center;
}

.comment-body-col {
    flex: 1;
    text-align: left;
}

.comment-bubble {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.comment-content-text {
    flex: 1;
}

.comment-date {
    color: #9ca3af;
    font-size: .8rem;
    margin-top: 6px;
    text-align: right;
}

/* ===== POST EDITOR ===== */
.post-editor-wrapper {
    display: none;
    margin-top: 12px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(0,255,65,.2);
    border-radius: 12px;
    padding: 12px;
}

.post-editor-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.post-editor-area {
    min-height: 100px;
    padding: 10px;
    background: rgba(255,255,255,.04);
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 8px;
    color: #fff;
}

.post-editor-attachments {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.post-editor-input {
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
}

.post-editor-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.news-empty-msg {
    text-align: center;
    padding: 1rem;
}

.htv-no-videos {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ===== POST CARDS REMAINING ===== */
.post-meta-top {
    margin-left: 8px;
    background: linear-gradient(135deg,#ffd700,#f59e0b);
    color: #111;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .7rem;
    font-weight: 800;
}

.post-actions {
    display: flex;
    gap: 6px;
}

.post-date {
    margin-top: 6px;
    text-align: right;
    color: #9ca3af;
    font-size: .8rem;
}

.post-content {
    margin-top: 8px;
    color: #fff;
    text-align: left;
}

.post-content img {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 8px;
}

.post-content iframe {
    width: 100%;
    height: 260px;
    border-radius: 8px;
}

.post-link {
    margin-top: 6px;
}

.post-link a {
    color: #60a5fa;
    word-break: break-all;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.post-comment-box {
    display: none;
    margin-top: 8px;
}

.post-comment-input {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
}

.post-comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.post-comments-list {
    display: none;
    margin-top: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.8rem 1rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: var(--transition-normal);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .news-card {
        flex: 0 0 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }

/* ===== ADS PAGE ===== */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ad-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ad-image {
    height: 200px;
    background: #222;
    overflow: hidden;
    position: relative;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    padding: 15px;
}

.ad-price {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.ad-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ad-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: border-pulse 2s infinite;
}

.back-link:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
    transform: translateX(-5px);
}

@keyframes border-pulse {
    0% { border-color: rgba(0, 255, 65, 0.2); box-shadow: 0 0 5px rgba(0, 255, 65, 0.1); }
    50% { border-color: rgba(0, 255, 65, 0.5); box-shadow: 0 0 10px rgba(0, 255, 65, 0.3); }
    100% { border-color: rgba(0, 255, 65, 0.2); box-shadow: 0 0 5px rgba(0, 255, 65, 0.1); }
}


.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

.file-upload {
    border: 2px dashed #444;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.ad-detail-modal {
    max-width: 800px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

.main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #000;
}
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== HEADER ACTIONS & SOCIAL ICONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}
.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    animation: pulse-icon 2s infinite;
}
.social-icon.youtube { color: #ff4141; }
.social-icon.facebook { color: #3b5998; }
.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===== AD DETAIL CONTACT ===== */
.ad-detail-contact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.ad-detail-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.ad-detail-contact p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.ad-detail-contact p:last-child {
    margin-bottom: 0;
}

.ad-detail-contact i {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.ad-detail-contact p:hover i {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--bg-dark);
}

.ad-detail-contact a:not(.btn) {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2px;
}

.ad-detail-contact a:not(.btn):hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Contact Message Button */
.contact-msg-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-msg-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.contact-msg-btn i {
    background: none;
    width: auto;
    height: auto;
    color: inherit;
    font-size: inherit;
}

.contact-msg-btn:hover i {
    transform: none;
    background: none;
    color: inherit;
}

/* Alert Styling */
.contact-alert {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-alert p {
    justify-content: center;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-alert i {
    background: none;
    color: var(--accent-color);
    width: auto;
    height: auto;
}

.seller-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    color: var(--text-muted) !important;
}

/* Donation Section Styles */
.donate-section h4 { color: #22d3ee; margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.donate-text { color: #94a3b8; font-size: 0.85rem; margin-bottom: 15px; line-height: 1.4; }
.donate-container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 15px; }
/* Gears */
.qr-context { position: relative; display: inline-block; }
.gears-container { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.gear { color: #22d3ee; position: absolute; z-index: 0; opacity: 0.3; }
.gear-big { font-size: 60px; top: -25px; left: -25px; animation: spin 10s linear infinite; }
.gear-small { font-size: 35px; top: auto; bottom: -20px; left: auto; right: -20px; animation: spin 5s linear infinite reverse; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* QR */
.qr-wrapper { position: relative; z-index: 1; width: 120px; height: 120px; border: 2px solid #22d3ee; border-radius: 8px; padding: 4px; background: rgba(15, 23, 42, 0.9); overflow: hidden; box-shadow: 0 0 15px rgba(34,211,238,0.1); }
.donate-qr { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.qr-scan-line { position: absolute; width: 100%; height: 2px; background: #22d3ee; box-shadow: 0 0 4px #22d3ee; top: 0; left: 0; animation: scan 2s ease-in-out infinite; opacity: 0.7; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
/* Button */
.btn-donate { background: #ffc439; color: #0f172a; padding: 8px 20px; border-radius: 20px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; transition: transform 0.2s, box-shadow 0.2s; border: none; }
.btn-donate:hover { transform: translateY(-2px); background: #ffcf5c; box-shadow: 0 4px 12px rgba(255,196,57,0.3); }

/* Donation Section Fix */
#footer-donation-section { display: block !important; z-index: 10; position: relative; }
#footer-donation-section h4 { color: #22d3ee; margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
#footer-donation-section .donate-text { color: #94a3b8; font-size: 0.85rem; margin-bottom: 15px; line-height: 1.4; display: block; text-wrap: balance; }
#footer-donation-section .donate-container { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 1; left: 40px; }
#footer-donation-section .btn-donate { background: #ffc439; color: #0f172a; padding: 8px 20px; border-radius: 20px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; transition: transform 0.2s, box-shadow 0.2s; border: none; margin-bottom: 0; }
#footer-donation-section .btn-donate:hover { transform: translateY(-2px); background: #ffcf5c; box-shadow: 0 4px 12px rgba(255,196,57,0.3); color: #0f172a; }

/* Sidebar Donate Button */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure spacing */
}

.sidebar-title {
    margin-right: auto; /* Push everything else to right if title doesn't expand */
}

.sidebar-donate-container {
    margin-right: 10px; /* Space between donate and close button */
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-donate-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ef4444;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: pulse-heart 2s infinite;
}

.sidebar-donate-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.3);
}

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.sidebar-qr-popup {
    display: none;
    position: absolute;
    top: 120%;
    right: -10px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    width: 160px;
    transform-origin: top right;
    border: 2px solid var(--primary-color);
}

.sidebar-qr-popup.active {
    display: block;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sidebar-qr-popup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.sidebar-qr-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 2px solid var(--primary-color);
    border-top: 2px solid var(--primary-color);
}


.sidebar-qr-title {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HACKERS TV --- */
#hackersTvToggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #000;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#hackersTvToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
    background: rgba(0, 255, 65, 0.1);
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #0a0a0a;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fira Code', monospace;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hackers TV Specifics */
.tv-video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tv-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.tv-video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tv-video-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tv-video-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 255, 65, 0.05);
}

.tv-video-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 8px;
}

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

.tv-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.tv-video-item:hover .tv-video-play-icon {
    opacity: 1;
}

.tv-video-title {
    display: block;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== INDEX UTILITIES (Inline Style Replacements) ===== */
.social-slider-margin {
    margin-top: 20px;
}

.post-editor-toggle-wrapper {
    text-align: center;
    margin-top: 12px;
}

.btn-all-posts {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ===== ADS PAGE ===== */
.ads-page-container {
    padding-bottom: 50px;
    padding-top: 100px;
}

.ads-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .ads-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ads-page-header button,
    .ads-page-header a {
        width: 100%;
        justify-content: center;
    }
}

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

.ad-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.15);
}

.ad-image {
    height: 200px;
    background: #222;
    overflow: hidden;
    position: relative;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    padding: 15px;
}

.ad-price {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.ad-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ad-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Ads Search */
.ads-search-bar {
    margin-bottom: 30px;
}

.ads-search-form {
    display: flex;
    gap: 10px;
}

.ads-search-input {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
}

/* Ads Empty State */
.ads-empty-state {
    text-align: center;
    padding: 50px;
    color: #888;
}

.ads-empty-icon {
    margin-bottom: 20px;
}

/* Ads Forms */
.ads-form-group {
    margin-bottom: 15px;
}

.ads-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.ads-form-group input, 
.ads-form-group textarea, 
.ads-form-group select {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.ads-form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.ads-file-upload {
    border: 2px dashed #444;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.ads-file-help {
    color: #888;
}

.ads-detail-modal {
    max-width: 800px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

.main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #000;
}

.ads-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ads-divider {
    border-color: #444;
    margin: 20px 0;
}

.ads-submit-btn {
    width: 100%;
}

/* JS Dynamic Content Styles */
.ad-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ad-detail-contact {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.ad-detail-location {
    color: #888;
    margin-top: 10px;
}

.ad-detail-description {
    margin: 20px 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.ad-detail-meta {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .ad-detail-layout {
        grid-template-columns: 1fr;
    }
}

.btn-sm-action {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-full-width {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.news-card-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-placeholder-text {
    color: var(--primary-color);
    font-size: 2rem;
}


/* ===== RE-ADDED STYLES FOR OGLASI & OVERLAY ===== */

/* Oglasi Page Fixes */
.ads-submit-btn {
    width: 100%;
}

.ad-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ad-detail-contact {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.ad-detail-location {
    color: #888;
    margin-top: 10px;
}

.ad-detail-description {
    margin: 20px 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.ad-detail-meta {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .ad-detail-layout {
        grid-template-columns: 1fr;
    }
}

.btn-sm-action {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-full-width {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.news-card-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-placeholder-text {
    color: var(--primary-color);
    font-size: 2rem;
}

/* ===== TERMS OVERLAY ===== */
.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.terms-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-modal {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.2);
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terms-overlay.active .terms-modal {
    transform: translateY(0) scale(1);
}

.terms-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.terms-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.terms-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.terms-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
