/* Reset & basic settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 198, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(0, 114, 255, 0.08) 0%, transparent 60%);
    animation: backgroundPulse 10s ease-in-out infinite;
    z-index: -2;
    transform: translateZ(-200px);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 30s linear infinite;
    z-index: -1;
    transform: translateZ(-100px);
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 198, 255, 0.5);
    border-radius: 50%;
    animation: floatUp 8s infinite linear;
}

.particle:nth-child(2n) {
    background: rgba(255, 0, 128, 0.5);
    animation-duration: 10s;
    animation-delay: -3s;
}

.particle:nth-child(3n) {
    background: rgba(0, 114, 255, 0.5);
    animation-duration: 12s;
    animation-delay: -5s;
}

/* Glowing Orbs */
.glowing-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.6;
}

.orb-1 {
    top: 15%;
    left: 15%;
    width: 180px;
    height: 180px;
    background: rgba(0, 198, 255, 0.2);
    animation: orbMove1 20s ease-in-out infinite;
}

.orb-2 {
    top: 65%;
    right: 15%;
    width: 130px;
    height: 130px;
    background: rgba(255, 0, 128, 0.2);
    animation: orbMove2 18s ease-in-out infinite reverse;
}

.orb-3 {
    bottom: 25%;
    left: 45%;
    width: 90px;
    height: 90px;
    background: rgba(0, 114, 255, 0.2);
    animation: orbMove3 15s ease-in-out infinite;
}

/* Animations */
@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateZ(-200px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateZ(-200px);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0) translateZ(-100px);
    }
    100% {
        transform: translate(-10px, -10px) translateZ(-100px);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(50px) rotate(360deg);
    }
}

@keyframes orbMove1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-40px, 80px) scale(0.9);
    }
}

@keyframes orbMove2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-60px, -60px) scale(1.2);
    }
}

@keyframes orbMove3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(40px, -20px) scale(1.05);
    }
    75% {
        transform: translate(-20px, 40px) scale(0.95);
    }
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
}

.nav-links a:hover {
    background: rgba(0, 198, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

.admin-btn {
    background: linear-gradient(45deg, #ff0080, #ff8c00) !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
}

#user-auth-container {
    display: flex;
    align-items: center;
    gap: 1rem; 
}

/* Hero Section */
.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 70px auto 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: heroGlow 6s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes heroGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00c6ff, #0072ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 15px rgba(0, 198, 255, 0.4));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(0, 114, 255, 0.6));
    }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 198, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #00c6ff;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3), 0 0 40px rgba(0, 198, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Container & Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00c6ff;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.page-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    margin-top: 3rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.page-section-content p, .page-section-content h3 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.page-section-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #00c6ff;
}

.page-section-content a {
    color: #ff0080;
    text-decoration: none !important;
    font-weight: bold;
    transition: color 0.3s;
}

.page-section-content a:hover {
    color: #00c6ff;
}

/* Script Grid & Cards */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    display: none;
}

.script-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    margin: 0 auto;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.script-card:hover::before {
    opacity: 1;
}

.script-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 198, 255, 0.3);
    border-color: rgba(0, 198, 255, 0.6);
}

.media-container {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 198, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.script-card:hover .media-container::after {
    left: 100%;
}

.media-container iframe,
.media-container img {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.script-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.script-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00c6ff;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.3);
    margin-bottom: 0.5rem;
    text-decoration: none !important;
}

.script-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 400;
    text-decoration: none !important;
}

.script-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    flex-grow: 1;
    color: #e0e0e0;
    text-decoration: none !important;
}

.script-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    align-items: center;
    justify-content: flex-end;
    padding-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.script-card:hover .script-actions {
    opacity: 1;
    pointer-events: all;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    color: #00c6ff;
    background: rgba(0, 198, 255, 0.1);
    box-shadow: 0 0 8px rgba(0, 198, 255, 0.2);
    text-decoration: none !important;
    font-size: 0.8rem;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 198, 255, 0.2), rgba(0, 114, 255, 0.4), rgba(0, 198, 255, 0.2));
    transition: left 0.3s ease;
    z-index: 0;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    color: #00c6ff;
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
    transform: translateY(-1px);
}

.action-btn svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.action-btn:hover svg {
    transform: translateX(2px);
}

.action-btn.edit-btn {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}
.action-btn.edit-btn:hover {
    background: rgba(255, 165, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.5);
}

.action-btn.delete-btn {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}
.action-btn.delete-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.script-detail-page-wrapper {
    padding-top: 100px;
    padding-bottom: 4rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.script-detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container { padding: 0 1rem; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .script-grid { grid-template-columns: 1fr; gap: 1rem; }
    .script-card { max-width: 100%; }
    .hero { margin-top: 80px; }
    div[style*="width:728px;height:90px;"], div[style*="width:320px;height:50px;"] {
        width: 100% !important;
        height: auto !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(0, 198, 255, 0.5); border-radius: 10px; }

/* =================================================================== */
/* === ADMIN PANEL, NEW FEATURES AND DETAIL PAGE STYLES === */
/* =================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a2e;
    margin: auto;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.modal .close:hover,
.modal .close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00c6ff;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.logout-btn {
    width: 100%;
    margin-top: 1rem;
    background: #ff4757 !important;
    color: white !important;
}

.new-detail-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-top: 2rem;
    margin-top: 100px;
}

.detail-main-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-sidebar-column {
    flex: 1;
}

.detail-section-card {
    background: rgba(30, 32, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.detail-section-card .card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section-card .card-header h1 {
    font-size: 2rem;
    color: #00c6ff;
    margin-bottom: 0.25rem;
}

.detail-section-card .card-header h3 {
    font-size: 1.1rem;
    color: #eee;
}

.detail-section-card .card-header .detail-author {
    font-size: 1rem;
    color: #aaa;
}

.detail-section-card .card-body {
    padding: 1.5rem;
    line-height: 1.7;
    color: #ccc;
}

.detail-section-card .card-body img {
    max-width: 100%;
    border-radius: 8px;
}

.script-code-wrapper {
    display: flex;
    flex-direction: column;
}

.script-code-wrapper pre {
    margin: 0;
    border-radius: 8px;
}
.script-code-wrapper code.hljs {
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: left;
}

.copy-btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-btn-large:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.recommended-section {
    padding-top: 2rem;
}

.nav-btn {
    background: rgba(0, 198, 255, 0.2);
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.2);
    text-decoration: none;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background: rgba(0, 198, 255, 0.4);
    box-shadow: 0 5px 20px rgba(0, 198, 255, 0.4);
}
.nav-profile-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 4px !important;
    border-radius: 50px !important;
    transition: background-color 0.3s;
}
.nav-profile-link:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #00c6ff;
}

.sort-container {
    text-align: center;
    margin-bottom: 2rem;
}
.sort-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.sort-btn:hover {
    background: rgba(0, 198, 255, 0.4);
    border-color: #00c6ff;
}
.sort-btn.active {
    background: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.8rem;
}
#detail-stats {
    margin-top: 1rem;
}
.like-btn {
    background: none;
    border: 1px solid #ccc;
    color: #ccc;
    cursor: pointer;
    border-radius: 5px;
    padding: 2px 6px;
    transition: all 0.3s;
}
.like-btn.liked, .like-btn:hover {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

.submit-form-container, .profile-header {
    background: rgba(30, 32, 42, 0.7);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.submit-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-align: center;
}
.submit-message.success { background-color: #28a745; }
.submit-message.error { background-color: #dc3545; }

.profile-header {
    text-align: center;
    padding-bottom: 1rem;
}
.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #00c6ff;
    margin-bottom: 1rem;
}
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}
.status-badge.status-pending { background-color: #ffc107; color: #000; }
.status-badge.status-approved { background-color: #28a745; }


#comment-form-container {
    margin-bottom: 2rem;
}
#comment-form textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
#comment-form button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
.comment {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.comment p {
    margin-top: 0.3rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 992px) {
    .new-detail-layout {
        flex-direction: column;
    }
}

.admin-section-title {
    color: #00c6ff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

#pending-scripts-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.pending-script-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.pending-script-info {
    display: flex;
    flex-direction: column;
}

.pending-script-info strong {
    color: #fff;
}

.pending-script-info span {
    font-size: 0.8rem;
    color: #aaa;
}

.pending-script-actions button {
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    margin-left: 0.5rem;
}

.approve-btn {
    background-color: #28a745;
}

.reject-btn {
    background-color: #dc3545;
}

.admin-search-input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

#admin-search-results {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.edit-btn {
    background-color: #ffc107;
    color: #000 !important;
}

/* Cursor Follower CSS has been completely removed */

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author strong {
    color: #fff;
}

.comment-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

.comment-text {
    padding-left: 50px; /* To align with the profile picture */
    color: #ddd;
    line-height: 1.6;
    white-space: pre-wrap; /* Preserves line breaks */
    word-break: break-word; /* Prevents long words from overflowing */
}
.nav-username {
    color: #ccc;
    font-weight: bold;
    margin-right: 1rem;
}

.comment-author {
    position: relative;
}

.comment-delete-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.comment-delete-btn:hover {
    opacity: 1;
}

/* =================================================================== */
/* === PERFORMANCE MODE STYLES (UPDATED) === */
/* =================================================================== */

#performance-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 198, 255, 0.2);
    border: 1px solid rgba(0, 198, 255, 0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#performance-toggle-btn:hover {
    background-color: rgba(0, 198, 255, 0.4);
    transform: scale(1.1);
}

/* Hide performance-heavy elements in low performance mode */
body.low-perf-mode .glowing-orb,
body.low-perf-mode .particles,
body.low-perf-mode::before, /* Hides the pulsing background lights */
body.low-perf-mode::after {  /* Hides the moving grid */
    display: none !important;
    visibility: hidden !important;
}

/* Disable remaining animations like the title glow */
body.low-perf-mode .hero h1,
body.low-perf-mode .hero::before {
    animation: none !important;
    filter: none !important; /* Remove text-shadow/drop-shadow as well */
}

/* Disable smooth transitions on hover for cards and buttons */
body.low-perf-mode .script-card,
body.low-perf-mode .nav-links a,
body.low-perf-mode .action-btn {
    transition: none !important;
}

/* Prevent hover effects that cause layout shifts or are intensive */
body.low-perf-mode .script-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* Reset to non-hover state */
}

body.low-perf-mode .nav-links a:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
}