:root {
    --neon-cyan: #00f3ff;
    --neon-magenta: #d4538a;
    --neon-yellow: #fff500;
    --dark-bg: #0a0a14;
    --dark-card: #12121e;
    --dark-surface: #1a1a2e;
    --white: #ffffff;
    --gray-light: #e2e2e2;
    --gray: #8a8aa3;
    --text-secondary: #6b6b8a;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #00d4ff 100%);
    --gradient-secondary: linear-gradient(135deg, #fff500 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #12121e 0%, #1a1a2e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark-bg);
    color: var(--gray-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--white);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
    font-size: 1.2rem;
    color: var(--gray);
}

.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
}

/* Header */
header {
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(32px, 5vw, 50px);
    width: auto;
    display: block;
    margin-right: 10px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    margin-right: 10px;
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 22px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 18px !important;
    border-radius: 50px;
    margin-left: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.btn-login:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-login::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background: var(--dark-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(0, 243, 255, 0.2);
    width: 90%;
    max-width: 450px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--gray);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.close-modal:hover {
    color: var(--neon-cyan);
}

.login-box {
    padding: 50px 40px;
    text-align: center;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-box h2 {
    margin-bottom: 10px;
}

.login-box p {
    color: var(--gray);
    margin-bottom: 30px;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.login-footer p {
    font-size: 0.9rem;
    margin: 10px 0 0;
}

/* Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=60') center/cover no-repeat;
    opacity: 0.2;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9) 0%, rgba(26, 26, 46, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* About */
.about {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--neon-magenta);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 70px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: var(--gray);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 5px;
}

.about-visual {
    flex: 1;
    position: relative;
}

.visual-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 243, 255, 0.1);
}

.card-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

    /* Dashboard / App layout */
    .app-main {
        min-height: calc(100vh - 100px);
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 260px;
        background: var(--dark-surface);
        border-right: 1px solid rgba(255,255,255,0.04);
        padding: 20px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.6);
        color: var(--gray-light);
        transform: translateX(0);
        transition: transform 0.25s ease;
        z-index: 1200;
    }

    .app-sidebar .sidebar-top {
        display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;
    }

    .sidebar-logo { color:var(--white); text-decoration:none; font-weight:700; display:flex; align-items:center; gap:8px }
    .sidebar-logo-img { height: clamp(28px, 3.5vw, 40px); width: auto; display: block; }
    .sidebar-logo i { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

    .sidebar-close { background:none; border:0; color:var(--gray); font-size:1.6rem; cursor:pointer }

    .sidebar-nav ul { list-style:none; padding:0; margin:0; }
    .sidebar-section { color:var(--gray); padding:12px 0 6px; font-size:0.85rem; }
    .sidebar-nav .nav-link { display:flex; gap:12px; align-items:center; color:var(--gray-light); text-decoration:none; padding:10px 8px; border-radius:6px; }
    .sidebar-nav .nav-link i { width:20px; text-align:center; }
    .sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active { background: rgba(0,243,255,0.06); color:var(--white); }

    .sidebar-footer { position:absolute; bottom:20px; left:20px; right:20px; }
    .sidebar-user { display:flex; gap:12px; align-items:center }
    .user-avatar { font-size:2rem; color:var(--neon-cyan) }
    .user-email { font-weight:600 }
    .user-role { font-size:0.85rem; color:var(--gray) }

    .app-main .container { margin-left: 300px; }

    .card-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
    .card-item { background: var(--dark-card); padding:28px; border-radius:12px; text-align:center; border:1px solid rgba(255,255,255,0.03); }
    .card-icon { font-size:2.4rem; color:var(--neon-cyan); margin-bottom:14px; }
    .muted { color:var(--gray); }

    /* Responsive */
    @media (max-width: 900px) {
        .app-sidebar { transform: translateX(-110%); position: fixed; }
        .app-sidebar.open { transform: translateX(0); }
        .app-main .container { margin-left: 0; padding: 0 16px; }
    }

    @media (min-width: 901px) {
        body.sidebar-open { overflow: hidden; }
    }

/* Portfolio */
.portfolio {
    background: var(--gradient-dark);
    position: relative;
}

.portfolio::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--neon-cyan);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 243, 255, 0.15);
}

.portfolio-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 20, 0.8) 100%);
}

.portfolio-content {
    padding: 30px;
    position: relative;
}

.portfolio-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* CTA */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=60') center/cover no-repeat;
    opacity: 0.3;
    z-index: -2;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(0, 212, 255, 0.25) 100%);
    z-index: -1;
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-card);
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--white);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.2);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Cyber Alerts */
.cyber-alert {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    animation: alertSlide 0.4s ease-out;
    border: 1px solid transparent;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cyber-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.cyber-alert.success {
    background: rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.cyber-alert.success::before {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.cyber-alert.error {
    background: rgba(255, 0, 95, 0.05);
    border-color: rgba(255, 0, 95, 0.3);
    color: #ff005f;
    box-shadow: 0 0 20px rgba(255, 0, 95, 0.1);
}

.cyber-alert.error::before {
    background: #ff005f;
    box-shadow: 0 0 15px #ff005f;
}

.cyber-alert-content {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-group:focus-within label {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transform: translateX(5px);
}

.form-group label {
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transform: scale(1.01);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Footer */
footer {
    background: var(--dark-card);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .about-content {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--dark-card);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
        border-top: 1px solid rgba(0, 243, 255, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        padding: 40px 25px;
    }

    .cta h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 70px 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

/* ===== Statistics Dashboard Styles ===== */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.chart-container {
    position: relative;
    width: 100%;
}

.chart-container canvas {
    max-height: 250px;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    padding: 12px 15px;
    text-align: left;
    color: var(--gray);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.activity-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.action-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.action-badge.delete {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.action-badge.create {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.action-badge.update_role {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.action-badge.default {
    background: rgba(100, 100, 255, 0.15);
    color: #8888ff;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.kpi-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.kpi-sub {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr !important;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* ============================================================
   ADMIN LAYOUT — SIDEBAR OSCURO COLAPSABLE (móvil y PC)
   ============================================================ */
.admin-body {
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #0d0d18 0%, #12121e 100%);
    border-right: 1px solid rgba(0, 243, 255, 0.12);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

/* Marca */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}
.sidebar-brand h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-brand span {
    color: var(--neon-cyan);
}

/* Navegación */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.sidebar-group {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin: 24px 14px 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin: 2px 0;
    border-radius: 10px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-nav a i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.sidebar-nav a:hover {
    background: rgba(0, 243, 255, 0.08);
    color: #fff;
}
.sidebar-nav a.active {
    background: rgba(0, 243, 255, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.2);
}
.sidebar-nav a.logout-link {
    color: #ff6b6b;
}
.sidebar-nav a.logout-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8b8b;
}

/* Pie del sidebar (usuario) */
.sidebar-user {
    padding: 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
}
.sidebar-user .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    font-size: 1rem;
}
.sidebar-user .u-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.sidebar-user .u-mail {
    color: var(--text-secondary);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contenido admin */
.admin-main {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 64px;
    background: rgba(18, 18, 30, 0.9);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 500;
    backdrop-filter: blur(8px);
}
.admin-topbar .topbar-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}
.admin-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-topbar .btn-view-site {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-topbar .btn-view-site:hover {
    text-decoration: underline;
}

.admin-content {
    flex: 1;
    padding: 30px 24px;
}

/* Botón hamburguesa */
.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Colapsado (PC) — solo iconos */
body.sidebar-collapsed .admin-sidebar {
    width: 72px;
}
body.sidebar-collapsed .admin-main {
    margin-left: 72px;
    width: calc(100% - 72px);
}
body.sidebar-collapsed .sidebar-brand h3,
body.sidebar-collapsed .sidebar-group,
body.sidebar-collapsed .sidebar-nav a span,
body.sidebar-collapsed .sidebar-user .u-name,
body.sidebar-collapsed .sidebar-user .u-mail,
body.sidebar-collapsed .sidebar-user .u-role {
    display: none;
}
body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 18px 8px;
}
body.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 12px 0;
}
body.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 16px 8px;
}

/* Overlay responsivo */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    .sidebar-toggle {
        display: block;
    }
    .admin-content {
        padding: 20px 16px;
    }
    body.sidebar-open .sidebar-overlay {
        display: block;
    }
}

/* Estilos oscuros para tablas del admin (páginas que usaban tema claro) */
.admin-panel {
    background: var(--dark-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.admin-panel h2 {
    color: #fff;
}
.role-badge,
.badge-current {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.role-badge.role-0 { background: rgba(231, 76, 60, 0.9); color: #fff; }
.role-badge.role-1 { background: rgba(52, 152, 219, 0.9); color: #fff; }
.role-badge.role-2 { background: rgba(149, 165, 166, 0.8); color: #1a1a2e; }
.badge-current { background: rgba(46, 204, 113, 0.9); color: #1a1a2e; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}
.admin-table thead { background: rgba(0, 243, 255, 0.07); }
.admin-table thead th { color: var(--neon-cyan); }
.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
}
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.admin-table tbody tr:hover { background: rgba(0, 243, 255, 0.03); }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form label { color: var(--neon-cyan); font-weight: 600; display: block; margin-bottom: 8px; }
.admin-form .form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}
.admin-form .form-input:disabled { background: rgba(0, 0, 0, 0.2); color: var(--text-secondary); }
.admin-form .form-input:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.15); }
.admin-form small { color: var(--text-secondary); font-size: 0.85rem; }
.info-box {
    background: var(--dark-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    margin-top: 30px;
}
.info-box h3 { color: #fff; }
.info-box li { color: var(--gray-light); margin-bottom: 10px; }
.admin-users, .admin-users-edit { padding: 0; }

/* Perfil */
.profile-page { padding: 0; }
