@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #b200ff;
    --primary-dark: #8a00c4;
    --primary-light: #c94dff;
    --dark: #09050f;
    --dark-light: #150d20;
    --dark-card: #1a1025;
    --white: #ffffff;
    --gray: #a0a0b0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(9, 5, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 60px;
    box-shadow: 0 4px 30px rgba(178, 0, 255, 0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo .logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 0 20px rgba(178, 0, 255, 0.4);
}

.nav-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-logo .logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(178, 0, 255, 0.12);
}

.nav-links a.active {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: rgba(178, 0, 255, 0.15);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(178, 0, 255, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(-10%, -10%) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(178, 0, 255, 0.12);
    border: 1px solid rgba(178, 0, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), #e040fb, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(178, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(178, 0, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(178, 0, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(178, 0, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 60px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ CARDS ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(178, 0, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(178, 0, 255, 0.2), rgba(178, 0, 255, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

/* ============ FEATURES LIST ============ */
.features-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.1);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(178, 0, 255, 0.3);
    transform: translateX(8px);
}

.feature-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--gray);
    font-size: 14px;
}

/* ============ TIMELINE ============ */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 0 0 20px rgba(178, 0, 255, 0.5);
}

.timeline-date {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(178, 0, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

/* ============ TEAM ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.1);
    border-radius: 20px;
    padding: 40px 25px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(178, 0, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(178, 0, 255, 0.3);
}

.team-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
}

/* ============ RULES ============ */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.rule-category {
    margin-bottom: 40px;
}

.rule-category h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(178, 0, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-list li {
    padding: 16px 24px;
    background: var(--dark-card);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    color: var(--gray);
    transition: var(--transition);
}

.rule-list li:hover {
    background: var(--dark-light);
    color: var(--white);
    transform: translateX(8px);
}

.rule-list li strong {
    color: var(--white);
}

/* ============ FORMS ============ */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.15);
    border-radius: 24px;
    padding: 50px 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--white);
}

.form-group label .required {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-light);
    border: 2px solid rgba(178, 0, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(178, 0, 255, 0.15);
}

.form-control::placeholder {
    color: #555;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b200ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 3px;
    cursor: pointer;
}

.form-check label {
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    justify-content: center;
}

/* ============ STATS ============ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid rgba(178, 0, 255, 0.1);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(178, 0, 255, 0.1);
    padding: 60px 60px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand .logo-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand .logo-text span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--gray);
    font-size: 13px;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(178, 0, 255, 0.08);
    font-size: 13px;
    color: var(--gray);
}

.footer-bottom span {
    color: var(--primary);
}

/* ============ PAGE HERO (internal pages) ============ */
.page-hero {
    padding: 160px 60px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(178, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.page-hero p {
    font-size: 17px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ============ DIVIDER ============ */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 4px;
    margin: 20px auto 0;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ PARTICLES ============ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .navbar {
        padding: 16px 30px;
    }
    .section {
        padding: 80px 30px;
    }
    .hero {
        padding: 120px 30px 60px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-card);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 4px;
        transition: var(--transition);
        border-left: 1px solid rgba(178, 0, 255, 0.15);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(178, 0, 255, 0.05);
        border: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .section {
        padding: 60px 20px;
    }

    .page-hero {
        padding: 130px 20px 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .navbar {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ SUCCESS MESSAGE ============ */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--gray);
    font-size: 15px;
}

/* ============ MANAGEMENT ============ */
.management-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 24px;
}

.panel {
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.15);
    border-radius: 18px;
    padding: 24px;
}

.panel h3 {
    margin-bottom: 16px;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.toolbar-split {
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.toolbar-search {
    max-width: 320px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(178, 0, 255, 0.12);
    border-radius: 14px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    font-size: 13px;
    border-bottom: 1px solid rgba(178, 0, 255, 0.08);
    text-align: left;
}

.data-table th {
    color: var(--primary-light);
    background: rgba(178, 0, 255, 0.06);
    font-weight: 600;
}

.table-empty {
    text-align: center;
    color: var(--gray);
    padding: 24px;
}

.table-btn {
    border: 1px solid rgba(178, 0, 255, 0.3);
    background: transparent;
    color: var(--white);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.table-btn:hover {
    background: rgba(178, 0, 255, 0.15);
}

.table-input {
    width: 100%;
    min-width: 90px;
    background: var(--dark-light);
    border: 1px solid rgba(178, 0, 255, 0.2);
    color: var(--white);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.muted-small {
    color: var(--gray);
    font-size: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-warning {
    color: #ffc44d;
    background: rgba(255, 196, 77, 0.14);
}

.status-ok {
    color: #75ffae;
    background: rgba(117, 255, 174, 0.14);
}

.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    font-size: 13px;
    color: var(--gray);
    background: rgba(178, 0, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}

.auth-chip {
    background: rgba(178, 0, 255, 0.15);
    border: 1px solid rgba(178, 0, 255, 0.4);
    color: var(--white) !important;
}

.login-error {
    margin: 8px 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.4);
    background: rgba(255, 68, 68, 0.1);
    color: #ffb8b8;
    font-size: 13px;
}

@media (max-width: 900px) {
    .management-layout {
        grid-template-columns: 1fr;
    }

    .toolbar-split {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-search {
        max-width: none;
    }
}

/* ============ DASHBOARD LAYOUT ============ */
.db-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.db-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--dark-card);
    border-right: 1px solid rgba(178, 0, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 900;
    overflow-y: auto;
}

.db-sidebar-brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(178, 0, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.db-sidebar-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--white);
    flex-shrink: 0;
}

.db-sidebar-brand .logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}

.db-sidebar-brand .logo-text span {
    color: var(--primary);
}

.db-nav-section {
    padding: 16px 12px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
}

.db-nav {
    list-style: none;
    padding: 0 8px;
    flex: 1;
}

.db-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.db-nav li a:hover {
    color: var(--white);
    background: rgba(178, 0, 255, 0.08);
}

.db-nav li a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(178, 0, 255, 0.35);
}

.db-nav li a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.db-nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}

.db-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(178, 0, 255, 0.08);
}

.db-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(178, 0, 255, 0.06);
    border-radius: 12px;
}

.db-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.db-user-info {
    overflow: hidden;
}

.db-user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-user-role {
    font-size: 11px;
    color: var(--primary-light);
}

.db-main {
    grid-column: 2;
    padding: 0;
    min-height: 100vh;
}

.db-topbar {
    position: sticky;
    top: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(9, 5, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(178, 0, 255, 0.08);
}

.db-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.db-topbar-left h2 {
    font-size: 18px;
    font-weight: 700;
}

.db-topbar-search {
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.15);
    border-radius: 10px;
    padding: 8px 14px;
    color: var(--white);
    font-size: 13px;
    width: 260px;
    outline: none;
    transition: var(--transition);
}

.db-topbar-search:focus {
    border-color: var(--primary);
}

.db-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--gray);
}

.db-topbar-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(178, 0, 255, 0.15);
    background: transparent;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.db-btn-icon:hover {
    color: var(--white);
    background: rgba(178, 0, 255, 0.12);
}

.db-content {
    padding: 24px 28px 40px;
}

.db-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.db-stat-card {
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
}

.db-stat-card .stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}

.db-stat-card .stat-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.db-stat-card .stat-trend {
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.stat-trend.up { color: #75ffae; }
.stat-trend.down { color: #ff6b6b; }

.db-stat-card .stat-sub {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
}

.db-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.db-grid-3-1 {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.db-panel {
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    overflow: hidden;
}

.db-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.db-panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.db-panel-header select,
.db-panel-header .db-filter-btn {
    background: var(--dark-light);
    border: 1px solid rgba(178, 0, 255, 0.15);
    color: var(--gray);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
}

.db-chart-container {
    position: relative;
    width: 100%;
    height: 260px;
}

.db-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.db-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(178, 0, 255, 0.04);
    border: 1px solid rgba(178, 0, 255, 0.08);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.db-quick-action:hover {
    background: rgba(178, 0, 255, 0.1);
    border-color: rgba(178, 0, 255, 0.3);
}

.db-quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(178, 0, 255, 0.2), rgba(178, 0, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.db-quick-action h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1px;
}

.db-quick-action p {
    font-size: 11px;
    color: var(--gray);
    margin: 0;
}

.db-inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.db-progress {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(178, 0, 255, 0.15);
    border-radius: 10px;
    background: rgba(178, 0, 255, 0.04);
}

.db-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.db-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.db-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #e040fb);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.db-annonce-form {
    display: grid;
    gap: 10px;
}

.db-actions-stack {
    display: grid;
    gap: 10px;
}

.db-panel-messaging {
    position: relative;
    border-color: rgba(178, 0, 255, 0.25);
    box-shadow: 0 18px 38px rgba(22, 6, 34, 0.42);
}

.db-section-separator {
    margin: 20px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #caa6e8;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.db-section-separator::before,
.db-section-separator::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(178, 0, 255, 0.55), transparent);
}

.db-chat-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 10px;
}

.db-chat-kpis {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.db-chat-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(178, 0, 255, 0.35);
    background: rgba(178, 0, 255, 0.16);
    color: #f2deff;
}

.db-chat-pill.db-chat-pill-muted {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #d1c0de;
}

.db-chat-wrap {
    border: 1px solid rgba(178, 0, 255, 0.22);
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(178, 0, 255, 0.18), rgba(178, 0, 255, 0.04) 52%, rgba(7, 5, 11, 0.72));
    overflow: hidden;
}

.db-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(178, 0, 255, 0.22);
    background: rgba(6, 4, 10, 0.55);
}

.db-chat-header strong {
    font-size: 13px;
    font-weight: 600;
}

.db-chat-presence {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #ccb5dd;
}

.db-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #66ff91;
    box-shadow: 0 0 0 3px rgba(102, 255, 145, 0.2);
}

.db-chat-thread {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 14px;
    max-height: 390px;
    overflow-y: auto;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 80% -20%, rgba(178, 0, 255, 0.16), transparent 40%);
}

.db-chat-item {
    max-width: 82%;
    border-radius: 14px;
    padding: 9px 11px;
    border: 1px solid rgba(178, 0, 255, 0.2);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.db-chat-item.me {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(198, 65, 255, 0.34), rgba(102, 0, 183, 0.2));
    border-color: rgba(215, 124, 255, 0.6);
}

.db-chat-item.them {
    margin-right: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(178, 0, 255, 0.11));
}

.db-chat-item.system {
    margin: 0 auto;
    text-align: center;
    color: var(--gray);
    background: rgba(255, 255, 255, 0.04);
    border-style: dashed;
}

.db-chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #cbb4dd;
}

.db-chat-author {
    font-weight: 600;
    color: #f2e8fb;
}

.db-chat-text {
    font-size: 13px;
    color: #f3edf9;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.db-chat-composer {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.db-chat-composer textarea.form-control {
    min-height: 76px;
    resize: vertical;
}

.db-chat-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #bca5cf;
}

.db-chat-thread::-webkit-scrollbar {
    width: 8px;
}

.db-chat-thread::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.db-chat-thread::-webkit-scrollbar-thumb {
    background: rgba(178, 0, 255, 0.35);
    border-radius: 999px;
}

.announcement-card {
    list-style: none;
    background: var(--dark-card);
    border: 1px solid rgba(178, 0, 255, 0.14);
    border-radius: 12px;
    padding: 14px 16px;
}

.announcement-card p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
}

.announcement-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.announcement-head strong {
    font-size: 14px;
}

.announcement-head span {
    color: var(--primary-light);
    font-size: 11px;
    white-space: nowrap;
}

.news-article {
    list-style: none;
    background: linear-gradient(180deg, rgba(178, 0, 255, 0.08), rgba(178, 0, 255, 0.02));
    border: 1px solid rgba(178, 0, 255, 0.18);
    border-radius: 14px;
    padding: 16px 18px;
}

.news-article.compact {
    padding: 12px 14px;
}

.news-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0;
}

.news-article.compact .news-title {
    font-size: 15px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray);
}

.news-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(178, 0, 255, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(178, 0, 255, 0.35);
    font-weight: 600;
}

.news-body {
    margin: 12px 0 0;
    font-size: 14px;
    color: #d7d7e1;
    line-height: 1.8;
    white-space: pre-wrap;
}

.news-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.news-delete-btn {
    border-color: rgba(255, 107, 107, 0.45);
    color: #ffb8b8;
}

.news-delete-btn:hover {
    background: rgba(255, 107, 107, 0.14);
}

.db-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 1100px) {
    .db-stats { grid-template-columns: repeat(2, 1fr); }
    .db-grid-2 { grid-template-columns: 1fr; }
    .db-grid-3-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .db-layout {
        grid-template-columns: 1fr;
    }

    .db-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .db-sidebar.open {
        transform: translateX(0);
    }

    .db-main {
        grid-column: 1;
    }

    .db-hamburger {
        display: block;
    }

    .db-topbar-search {
        width: 140px;
    }

    .db-content {
        padding: 16px 14px 30px;
    }

    .db-chat-item {
        max-width: 92%;
    }

    .db-chat-composer {
        grid-template-columns: 1fr;
    }

    .db-chat-toolbar {
        grid-template-columns: 1fr;
    }

    .db-chat-kpis {
        justify-content: flex-start;
    }

    .db-stats { grid-template-columns: 1fr; }
}
