* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c5c9d6;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #3f4560;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay {
    transition: opacity 0.3s ease;
}

.panel-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    z-index: 100;
    width: 380px;
    max-width: calc(100vw - 24px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform-origin: top right;
}

.dark .panel-dropdown {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 639px) {
    .panel-dropdown {
        position: fixed;
        right: 12px;
        left: 12px;
        top: 60px;
        width: auto;
        max-width: calc(100vw - 24px);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.dark .modal-content {
    background: #1e2235;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.06));
    color: #6c5ce7;
    border-right: 3px solid #6c5ce7;
}

.dark .nav-item.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.1));
    color: #a78bfa;
    border-right: 3px solid #a78bfa;
}

.notif-dot::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.dark .notif-dot::after {
    border-color: #1e2235;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease both;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease both;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease both;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.dark .hover-lift:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pricing Card Specifics */
.plan-pro {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(108, 92, 231, 0.01));
    border-color: #6c5ce7;
    position: relative;
}

.dark .plan-pro {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.02));
    border-color: #a78bfa;
}

.plan-max {
    background: linear-gradient(135deg, #251d56 0%, #4a3cb8 100%);
    border-color: transparent;
    color: white;
    position: relative;
    overflow: hidden;
}

.plan-max::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Toggle switch */
.toggle-bg {
    background-color: #e8ebf2;
    transition: background-color 0.3s ease;
}

.dark .toggle-bg {
    background-color: #3f4560;
}

.toggle-knob {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:checked+.toggle-bg {
    background-color: #6c5ce7;
}

input:checked+.toggle-bg .toggle-knob {
    transform: translateX(24px);
}

.price-text {
    transition: opacity 0.3s ease;
}

.price-text.fade {
    opacity: 0;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e2235;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 50;
    animation: fadeIn 0.2s ease;
}

.progress-animate {
    transition: width 1s ease;
}