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

/* ═══════════════════════════════════════════════
   PREMIUM GAMING COLOR SYSTEM
   Palette: Deep Void · Electric Violet · Cyan Glow
═══════════════════════════════════════════════ */
:root {
    /* Backgrounds — layered depth */
    --bg-main: #07070f;
    --bg-surface: #0d0d1a;
    --bg-card: #10101e;
    --bg-card-hover: #14142a;
    --bg-elevated: #1a1a2e;

    /* Primary Accent — Electric Violet */
    --accent: #7c3aed;
    --accent-light: #a855f7;
    --accent-bright: #c084fc;
    --accent-glow: rgba(124, 58, 237, 0.25);
    --accent-glow-lg: rgba(124, 58, 237, 0.12);

    /* Secondary Accent — Cyan Electric */
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --cyan-glow: rgba(6, 182, 212, 0.2);

    /* Gradient — signature brand */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    --gradient-glow: linear-gradient(135deg, #7c3aed33, #06b6d433);
    --gradient-text: linear-gradient(90deg, #a855f7, #22d3ee);

    /* Borders */
    --border-light: rgba(124, 58, 237, 0.15);
    --border-medium: rgba(124, 58, 237, 0.3);
    --border-focus: rgba(168, 85, 247, 0.5);
    --border-glow: rgba(124, 58, 237, 0.6);

    /* Typography */
    --text-primary: #f1f0ff;
    --text-secondary: #9d9ab8;
    --text-tertiary: #6b688a;
    --text-muted: #3d3b5c;

    /* Utility */
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.95);
    --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.4);

    --shadow-heavy: 0 30px 60px -12px rgba(0, 0, 0, 0.95), 0 18px 36px -18px rgba(0, 0, 0, 0.9);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-bg: rgba(7, 7, 15, 0.75);
    --admin-sidebar-bg: linear-gradient(180deg, #0f0f20 0%, #0a0a1a 100%);
    --tag-text: var(--accent-bright);

    /* Legacy aliases for admin pages */
    --primary-color: #7c3aed;
    --secondary-color: #06b6d4;
    --background: #07070f;
    --surface: #10101e;
    --border-color: rgba(124, 58, 237, 0.2);
    --border-radius: 14px;
    --shadow-sm-val: 0 2px 12px rgba(0, 0, 0, 0.4);
    --text-light: #6b688a;
}

/* ═══════════════════════════════════════════════
   LIGHT THEME OVERRIDES
═══════════════════════════════════════════════ */
[data-theme="light"] {
    /* Premium Snow & Violet Palette */
    --bg-main: #fdfcffc4;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f7ff;
    --bg-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;

    --border-light: rgba(124, 58, 237, 0.08);
    --border-medium: rgba(124, 58, 237, 0.15);
    --border-focus: rgba(124, 58, 237, 0.4);
    --border-glow: rgba(124, 58, 237, 0.3);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.1);
    --shadow-heavy: 0 35px 70px -15px rgba(0, 0, 0, 0.1), 0 20px 40px -20px rgba(0, 0, 0, 0.08);

    --header-bg: rgba(255, 255, 255, 0.82);
    --admin-sidebar-bg: linear-gradient(180deg, #fdfcff 0%, #f9f8ff 100%);
    --tag-text: var(--accent);

    --background: #fdfcff;
    --surface: #ffffff;

    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(6, 182, 212, 0.01) 100%);
}

[data-theme="light"] .btn-view, 
[data-theme="light"] .btn,
[data-theme="light"] .btn-primary { 
    color: #000000 !important; 
    font-weight: 800 !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse 80% 40% at 20% 10%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 80% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
}

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

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

/* ═══════════ HEADER ═══════════ */
header {
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-light), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
}

.logo {
    font-size: 1.45rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.nav-search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}

.nav-search-form input {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    font-size: 0.85rem !important;
    width: 140px;
    color: var(--text-primary) !important;
    outline: none !important;
}

.nav-search-form button {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem !important;
    font-size: 1rem !important;
    min-width: unset !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    opacity: 0.6;
}

.theme-toggle,
.mobile-menu-btn {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
    background: var(--accent-glow) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.mobile-menu-btn {
    display: none;
}

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

.nav-links li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

/* ═══════════ LAYOUT ═══════════ */
.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr 280px;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

main {
    width: 100%;
}

/* ═══════════ BUTTONS ═══════════ */
.btn-primary,
.btn-view,
.btn-submit,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E50914;
    /* Specific Netflix Red */
    color: #fff !important;
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover,
.btn-view:hover,
.btn-submit:hover,
.btn:hover {
    background: #C11119;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-view:hover,
.btn:hover,
button:hover {
    background: #C11119;
    /* Netflix Hover Red */
}

.theme-toggle,
.mobile-menu-btn {
    background: transparent !important;
    padding: 0.5rem;
    color: var(--text-primary);
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
    background: rgba(124, 58, 237, 0.1) !important;
}

.btn-primary {
    background: #E50914 !important;
    color: white !important;
}

.btn-primary:hover {
    background: #C11119 !important;
    color: white !important;
}

/* ═══════════ CARDS ═══════════ */
.card,
.post-card,
.widget,
article {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
}

.card:hover,
.post-card:hover,
.widget:hover,
article:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-heavy), var(--shadow-glow);
    border-color: var(--border-glow);
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.post-card {
    display: flex;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    border-radius: var(--radius-md);
}

.post-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy), var(--shadow-glow);
    z-index: 5;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card img {
    width: 260px;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    border-right: 1px solid var(--border-light);
    transition: transform 0.4s ease;
}

.post-card:hover img {
    transform: scale(1.03);
}

.post-content {
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 0.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition);
}

.post-card:hover .post-content h3 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* ═══════════ SLIDER ═══════════ */
.slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-medium);
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 100%);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3.5rem;
    z-index: 5;
    text-align: left;
}

.featured-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

@media (max-width: 600px) {
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .slider-btn.prev {
        left: 0.75rem;
    }

    .slider-btn.next {
        right: 0.75rem;
    }
}

/* Featured Badge */
.featured-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.4);
}

/* ═══════════ SIDEBAR ═══════════ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.widget {
    padding: 1.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.7;
}

.widget h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

/* Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    background: var(--bg-surface);
}

.btn-youtube {
    color: #f87171;
}

.btn-youtube:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

.btn-facebook {
    color: #60a5fa;
}

.btn-facebook:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

/* ═══════════ TAGS ═══════════ */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tag-text);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all var(--transition);
    cursor: default;
    letter-spacing: 0.01em;
}

.tags span:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

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

.pagination a {
    padding: 0.6rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}

.pagination a:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent);
    color: var(--accent-bright);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ═══════════ FORMS ═══════════ */
input,
select,
textarea {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.8rem 1rem !important;
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    transition: border-color var(--transition), box-shadow var(--transition) !important;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    background: var(--bg-elevated) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary) !important;
}

/* ═══════════ TABLES ═══════════ */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-medium) !important;
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1rem !important;
    font-family: var(--font-body) !important;
}

td {
    border-bottom: 1px solid rgba(124, 58, 237, 0.08) !important;
    padding: 1rem !important;
    color: var(--text-secondary);
    vertical-align: middle;
}

td strong {
    color: var(--text-primary);
    font-weight: 600;
}

tr:hover td {
    background: rgba(124, 58, 237, 0.04);
}

/* ═══════════ ARTICLE DETAIL ═══════════ */
.post-detail-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.breadcrumb-nav {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.breadcrumb-nav a {
    color: var(--text-tertiary);
}

.breadcrumb-nav a:hover {
    color: var(--accent);
}

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

.meta-cloud {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.cover-image-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.cover-image-container img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

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

/* ═══════════ COMMENT SYSTEM ═══════════ */
.comment-form-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-bright);
    flex-shrink: 0;
}

/* ═══════════ DOWNLOAD FLOW ═══════════ */
.download-gateway {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    border: 2px dashed var(--border-medium);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

#flow-top-bar {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1)) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* ═══════════ FOOTER ═══════════ */
footer {
    border-top: 1px solid var(--border-light);
    padding: 5rem 2rem 2.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5rem;
    background: linear-gradient(to top, rgba(124, 58, 237, 0.06), var(--bg-main));
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-tertiary);
    transition: all var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--accent-bright);
    transform: translateX(5px);
}

.footer-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-labels a {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--text-tertiary);
    transition: all var(--transition);
}

.footer-labels a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.n-studio-credit {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.n-studio-credit span {
    color: var(--accent-bright);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.4);
    border-radius: 999px;
}

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

/* ═══════════ SELECTION ═══════════ */
::selection {
    background: rgba(124, 58, 237, 0.35);
    color: var(--text-primary);
}

/* ═══════════ ADMIN SIDEBAR OVERRIDES ═══════════ */
.admin-sidebar {
    background: var(--admin-sidebar-bg) !important;
    border-right: 1px solid var(--border-light) !important;
}

.admin-menu a:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    color: var(--accent-bright) !important;
}

.admin-menu a.active,
.admin-menu a[style*="secondary-color"] {
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3) !important;
}

/* Admin cards */
.admin-content .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative;
    overflow: hidden;
}

.admin-content .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

/* Success message */
.msg {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: var(--radius-sm) !important;
    padding: 1rem !important;
    font-weight: 500 !important;
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    }
}

.post-card,
.widget,
.card {
    animation: fadeInUp 0.4s ease both;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr !important;
        margin: 1rem auto !important;
        padding: 0 1rem !important;
        gap: 1.5rem !important;
    }

    .sidebar {
        order: 2;
    }

    main {
        order: 1;
    }

    .post-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .post-card {
        flex-direction: column;
        border-radius: 12px;
        background: var(--bg-surface);
        border: 1px solid var(--border-light);
    }

    .post-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .post-content {
        padding: 0.85rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .post-content h3 {
        font-size: 0.95rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    .post-content p {
        display: none;
    }

    .post-content .btn-view {
        margin-top: auto;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        width: 100%;
    }

    .navbar {
        height: auto;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.75rem;
        border-top: 1px solid var(--border-light);
        padding-top: 0.75rem;
    }

    .nav-search-form {
        flex: 1;
        margin-right: 0.5rem;
    }

    .nav-search-form input {
        width: 100%;
    }

    .slider-container {
        height: 300px !important;
    }

    /* Mobile Menu Logic */
    .mobile-menu-btn { 
        display: flex !important; 
        align-items: center; 
        justify-content: center; 
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 1rem 0;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 999;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(124, 58, 237, 0.05);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-secondary);
    }

    .nav-links li a:hover {
        background: var(--accent-glow);
        color: var(--accent-bright);
        padding-left: 2.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .post-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .post-card {
        border-radius: 8px;
        border: 1px solid var(--border-light);
        width: 100% !important;
        overflow: hidden;
    }

    .post-card img {
        aspect-ratio: 1/1;
        height: auto !important;
        width: 100% !important;
        border-bottom: 1px solid var(--border-light);
    }

    .post-content {
        padding: 0.75rem;
    }

    .post-content h3 {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-content .btn-view {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .slider-container {
        height: 240px !important;
        border-radius: 10px !important;
        margin-bottom: 1.5rem;
    }

    .featured-content {
        padding: 1.25rem !important;
    }

    .featured-content h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-content p {
        display: none;
    }

    .featured-content .btn-view {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }

    .post-detail-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .post-detail-card h1 {
        font-size: 1.5rem !important;
    }

    .article-content {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    #download-gateway {
        padding: 2rem 1rem !important;
        margin-top: 2rem !important;
    }

    .comment-form-box {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .comment-form-box form div {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav-search-form input {
        font-size: 0.8rem !important;
    }

    .slider-container {
        height: 240px !important;
    }
}

/* Table Responsiveness Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.ho {
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ho:hover {
    background-color: rgba(124, 58, 237, 0.15);
    color: var(--accent-bright) !important;
    text-shadow: 0 0 10px var(--accent-glow);
}