/* 
   XpertingHub Main Styles
   Theme: Dark Purple, Futuristic, Glassmorphism
*/

:root {
    --bg-color: #05010a;
    --bg-alt: #0f0518;
    --primary: #8a2be2;
    /* BlueViolet */
    --primary-light: #b026ff;
    --primary-dark: #6a00ff;
    --accent: #00f0ff;
    /* Cyan */
    --text-white: #ffffff;
    --text-gray: #b0b0d0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    --gradient-main: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    --gradient-text: linear-gradient(90deg, #fff 0%, var(--accent) 50%, var(--primary-light) 100%);

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Gradient Text */
.highlight {
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(169, 19, 243, 0.3);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.highlight-white {
    color: #fff;
    text-decoration: underline wavy var(--primary-light);
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 1, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

#main-header.scrolled {
    height: 70px;
    background: rgba(5, 1, 10, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Loading Spinner for Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.btn-nav {
    padding: 8px 20px !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    color: var(--primary-light) !important;
}

.btn-nav:hover {
    background: var(--primary-light);
    color: #fff !important;
    box-shadow: 0 0 15px var(--primary-dark);
}

.btn-nav::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-icon span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-alt);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* UI Elements */
.title-bar {
    width: 50px;
    height: 4px;
    background: var(--gradient-main);
    margin: 10px auto 30px;
    border-radius: 2px;
}

/* Enhanced Login Button Styles */
.btn-login-pulse {
    background: linear-gradient(-45deg, #8a2be2, #00f0ff, #8a2be2, #00f0ff) !important;
    background-size: 400% 400%;
    animation: gradientBG 5s ease infinite;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-login-pulse:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.btn-login-pulse:active {
    transform: translateY(1px);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: #fff;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a082b 0%, var(--bg-color) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-box {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Products Section */
.bg-darker {
    background-color: var(--bg-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gradient-1 {
    background: linear-gradient(135deg, #2b0c3d, #4a148c);
}

.gradient-2 {
    background: linear-gradient(135deg, #0d324d, #006064);
}

.gradient-3 {
    background: linear-gradient(135deg, #3e2723, #bf360c);
}

.card-icon {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.5);
    transition: var(--transition);
}

.product-card:hover .card-icon {
    transform: scale(1.8) rotate(5deg);
    color: #fff;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

/* Demo Section */
.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: var(--accent);
    font-weight: bold;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', monospace;
    border: 1px solid #333;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    color: #888;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    color: #d4d4d4;
    font-size: 0.95rem;
}

.command-line {
    margin-bottom: 15px;
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}

.command {
    color: #fff;
}

.response-area {
    line-height: 1.6;
    color: #a8ff78;
    /* Light green tech look */
    white-space: pre-wrap;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    position: absolute;
    top: -10px;
    right: 20px;
    opacity: 0.1;
    font-family: serif;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px;
    /* Arbitrary limit for animation */
}

.faq-item.active .toggle {
    transform: rotate(45deg);
    color: var(--accent);
}

/* Contact/Newsletter */
.contact-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input[type="email"]:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-feedback {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    height: 20px;
}

.form-feedback.success {
    color: #27c93f;
}

.form-feedback.error {
    color: #ff5f56;
}

/* Footer */
footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    background: #020005;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .demo-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-icon {
        display: flex;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* =========================================
   AUTH PAGES (Login)
   ========================================= */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 10;
}

.auth-card {
    background: rgba(15, 5, 24, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header p {
    margin-top: 10px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.auth-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.form-options a {
    color: var(--primary-light);
}

.btn-block {
    width: 100%;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    background: #0f0518;
    /* Must match bg or be transparent if possible, used solid for overlay */
    padding: 0 10px;
    position: relative;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.btn-social {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.auth-footer {
    font-size: 0.9rem;
}

/* =========================================
   DASHBOARD LAYOUT
   ========================================= */
.dashboard-body {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-color);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #0a0212;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 3rem;
    padding-left: 10px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background: rgba(138, 43, 226, 0.1);
    color: #fff;
}

.sidebar-nav li.active a {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2) 0%, transparent 100%);
    border-left: 3px solid var(--primary-light);
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 10px 0;
}

.user-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--accent);
}

.logout-btn {
    margin-left: auto;
    color: var(--text-gray);
    font-size: 1.2rem;
}

.logout-btn:hover {
    color: #ff5f56;
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at top right, #1a082b 0%, var(--bg-color) 40%);
}

.dashboard-topbar {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(5, 1, 10, 0.8);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: pointer;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Categories */
.categories-scroll {
    padding: 20px 30px;
    display: flex;
    gap: 10px;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-chip.active,
.cat-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Dashboard Grid */
.prompts-grid {
    padding: 0 30px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.prompt-card-dashboard {
    background: #120a1f;
    /* Slightly lighter than bg */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.prompt-card-dashboard:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pc-image-wrapper {
    position: relative;
    height: 160px;
    background: #000;
}

.pc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.pc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.pc-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pc-header h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

.fav-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.fav-btn:hover {
    color: #ff5f56;
}

.pc-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.pc-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pc-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--primary-light);
}

.pc-actions {
    display: flex;
    gap: 10px;
}

.btn-copy {
    flex: 2;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-copy:hover {
    filter: brightness(1.2);
}

.btn-view {
    flex: 1;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Badge Notification */
.nav-badge {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    /* Push to right */
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-badge.show {
    opacity: 1;
}

/* Improved Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 0 30px 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* User & Suggestion List Cards (Enhanced) */
.list-card {
    background: #160f25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle */
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    margin-bottom: 10px;
}

.list-card:hover {
    background: #1f1530;
    transform: translateX(5px);
    border-color: var(--primary);
}

.list-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #fff;
}

.list-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.list-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* Sidebar Submenu */
.sidebar-submenu {
    list-style: none;
    padding-left: 30px;
    margin-top: 5px;
    display: none;
}

.sidebar-submenu.open {
    display: block;
}

.sidebar-submenu li {
    margin-bottom: 5px;
}

.sidebar-submenu a {
    font-size: 0.85rem;
    padding: 8px 10px;
    color: #aaa;
    display: flex;
}

.sidebar-submenu a:hover,
.sidebar-submenu a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Sidebar Arrow Animation */
/* Sidebar Arrow Animation - REMOVED */

/* Input Group with Plus Button */
.input-group-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon-add {
    background: var(--primary);
    color: white;
    border: none;
    width: 42px;
    height: 48px;
    /* Match input height roughly */
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    /* Alignment fix */
    transition: 0.2s;
}

.btn-icon-add:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* User Table Actions */
.btn-action-group {
    display: flex;
    gap: 5px;
}

.btn-approve,
.btn-reject,
.btn-block {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #fff;
    transition: 0.2s;
}

.btn-approve {
    background: #27c93f;
}

.btn-approve:hover {
    background: #21a834;
}

.btn-reject {
    background: #ff9f43;
}

.btn-reject:hover {
    background: #e08e3b;
}

.btn-block {
    background: #ff4757;
}

.btn-block:hover {
    background: #e0404e;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #11ab3c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 30px;
    }

    .dashboard-topbar {
        padding: 15px 20px;
    }
}

/* =========================================
   MODAL STYLES
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #150822;
    /* Darker Purple for modal */
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.code-block {
    background: #05010a;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    font-family: 'Consolas', monospace;
    color: #b0e0e6;
    line-height: 1.6;
    font-size: 0.95rem;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.code-copy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tags span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #fff;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Sidebar Active Filter Indicator */
.sidebar-nav li.active {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--primary-light);
}

.sidebar-nav li.active a {
    color: #fff;
    background: none;
}