:root {
    --bg-dark: #0f0c20;
    --card-bg: rgba(23, 20, 48, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-purple: #7000ff;
    --primary-pink: #ff007f;
    --accent-brainrot: #9b51e0;
    --accent-fc: #00e676;
    --text-main: #ffffff;
    --text-muted: #a0a0c0;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 50px;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 127, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}
h1, h2, h3, .brand h2 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 12, 32, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav {
    display: flex;
    gap: 10px;
}
.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-btn:hover, .nav-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 12px;
}
.tag-brainrot, .badge-brainrot { background: rgba(155, 81, 224, 0.2); color: #d69e2e; border: 1px solid var(--accent-brainrot); }
.tag-fc, .badge-fc { background: rgba(0, 230, 118, 0.2); color: var(--accent-fc); border: 1px solid var(--accent-fc); }
.preview-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}
.preview-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.post-card {
    display: flex;
    flex-direction: column;
}
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.post-uploader {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.post-media-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.post-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-content {
    margin-top: 15px;
}
.post-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.post-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.post-date {
    font-size: 0.8rem;
    color: #666;
}
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 280px;
    background: rgba(15, 12, 32, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
input[type="text"], textarea, select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}
input[type="text"]:focus, textarea:focus, select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.3);
}
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-primary { background: var(--primary-purple); color: #fff; }
.btn-primary:hover { background: #821aff; box-shadow: 0 0 15px rgba(112, 0, 255, 0.5); }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-danger:hover { background: #c53030; }
.btn-success { background: #38a169; color: #fff; }
.btn-purple { background: #805ad5; color: #fff; }
.table-responsive {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
}
.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.table-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}
.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.clickable-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}
.modal-content {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    animation: zoomIn 0.25s ease;
}
.modal-caption {
    margin-top: 15px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--primary-pink);
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}