/* --- CSS Variables --- */
:root {
    --font-family: 'Inter', sans-serif;
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f35;
    --bg-input: #252540;
    --bg-hover: #2a2a45;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b7280;
    --text-placeholder: #6b7280;
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --accent-red: #ef4444;
    --accent-red-light: #f87171;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-yellow: #f59e0b;
    --accent-cyan: #06b6d4;
    --accent-gray: #4a4a6a;
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.25);
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.25);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.25);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-primary);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: all var(--transition-fast);
}

input, select, textarea {
    font-family: var(--font-family);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    transition: all var(--transition-normal);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--shadow-glow-blue);
    background: var(--bg-hover);
}

input::placeholder, textarea::placeholder {
    color: var(--text-placeholder);
}

/* --- Selection --- */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* --- Background Animation --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    animation: bgMove 25s ease-in-out infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(3%, 3%) rotate(2deg) scale(1.02); }
    50% { transform: translate(0, 5%) rotate(0deg) scale(1); }
    75% { transform: translate(-3%, 3%) rotate(-2deg) scale(1.02); }
}

/* --- Grid Pattern --- */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gray) 0%, var(--border-color) 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

/* --- Layout --- */
.app-container {
    display: flex;
    padding-top: var(--topbar-height);
    padding-left: var(--sidebar-width);
    min-height: 100vh;
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background: rgba(18, 18, 31, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.logo i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8)); }
}

.top-bar-icons {
    display: flex;
    gap: 8px;
    font-size: 1.1rem;
    align-items: center;
}

.top-bar-icons a, .top-bar-icons button {
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-icons a:hover, .top-bar-icons button:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--accent-blue), var(--accent-purple)) border-box;
    cursor: pointer;
    transition: all var(--transition-normal);
    object-fit: cover;
}

.discord-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-blue);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--bg-input);
    border-color: var(--accent-blue);
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Desktop Sidebar --- */
.desktop-sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: rgba(18, 18, 31, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    padding: 28px 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- Mobile Sidebar --- */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 90px 20px 28px;
    z-index: 1000;
    transition: left var(--transition-normal);
    overflow-y: auto;
}

.mobile-sidebar.open {
    left: 0;
    display: block;
}

/* --- Sidebar Sections --- */
.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section .section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: block;
    padding: 0 14px;
}

.sidebar-section ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-section ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.sidebar-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    transition: width var(--transition-normal);
}

.sidebar-section ul li a:hover::before {
    width: 100%;
}

.sidebar-section ul li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-section ul li a:hover i {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.sidebar-section ul li.active a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-blue);
    padding-left: 13px;
}

.sidebar-section ul li a i {
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    font-size: 1.05rem;
}

.sidebar-section ul li.active a i {
    color: var(--accent-blue);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 36px;
    padding-bottom: 120px;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Footer --- */
.footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 18px 36px;
    background: rgba(18, 18, 31, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 98;
}

.footer span {
    color: var(--accent-blue);
    font-weight: 600;
}

/* --- Card --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
}

.card-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-input);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* --- Stats Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card .stat-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.stat-card .stat-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.stat-card .stat-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--accent-purple);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.stat-card .stat-icon.yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--accent-yellow);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Progress Bar --- */
.progress-bar {
    height: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 14px;
    position: relative;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    animation: progress-shimmer 2s ease-in-out infinite;
    position: relative;
}

.progress-bar .progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Plans Grid --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.plan-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 36px;
    position: relative;
    transition: all var(--transition-normal);
}

.plan-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-blue);
}

.plan-card.featured {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.plan-card.featured:hover {
    box-shadow: var(--shadow-glow-purple);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.plan-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.plan-features {
    margin-bottom: 28px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.plan-features li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.plan-features li i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* --- Jobs Table --- */
.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th,
.jobs-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.jobs-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(59, 130, 246, 0.03);
}

.jobs-table tr {
    transition: all var(--transition-fast);
}

.jobs-table tbody tr:hover {
    background: var(--bg-hover);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-badge.queued {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--accent-yellow);
}

.status-badge.running, .status-badge.processing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--accent-blue);
}

.status-badge.done {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--accent-green);
}

.status-badge.failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--accent-red);
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    color: var(--text-muted);
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--accent-green);
}

/* --- Notifications --- */
.notification-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--accent-blue);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.notification-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--accent-green);
}

.notification-icon.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--accent-red);
}

.notification-icon.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--accent-blue);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* --- Upload Area --- */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.upload-area:hover {
    border-color: var(--accent-blue);
    transform: scale(1.01);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.dragover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow-blue);
}

.upload-area i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.upload-area:hover i {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.upload-area h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.upload-area p {
    color: var(--text-muted);
}

/* --- Form Groups --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.modal-close {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

/* --- QR Code --- */
.qr-container {
    text-align: center;
    padding: 28px;
}

.qr-container img {
    max-width: 280px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.pix-copy {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.pix-copy input {
    flex: 1;
    font-size: 0.85rem;
}

/* --- Landing Page --- */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.landing-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.landing-logo i {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.landing-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin-bottom: 48px;
}

.landing-feature {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: all var(--transition-normal);
}

.landing-feature:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-blue);
}

.landing-feature i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 16px;
    transition: all var(--transition-normal);
}

.landing-feature:hover i {
    transform: scale(1.2) rotate(10deg);
}

.landing-feature h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.landing-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Alert Container --- */
.alert-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert.success {
    border-left: 4px solid var(--accent-green);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%);
}

.alert.error {
    border-left: 4px solid var(--accent-red);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-card) 100%);
}

.alert.info {
    border-left: 4px solid var(--accent-blue);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-card) 100%);
}

.alert.warning {
    border-left: 4px solid var(--accent-yellow);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-card) 100%);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Spinner --- */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-container {
    display: flex;
    justify-content: center;
    padding: 48px;
}

/* --- Page Header --- */
.page-header {
    margin-bottom: 36px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Tooltip --- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .app-container {
        padding-left: 0;
    }
    
    .desktop-sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-sidebar {
        display: block;
    }
    
    .footer {
        left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 24px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-title {
        font-size: 2rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 18px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .top-bar {
        padding: 0 16px;
    }
    
    .alert-container {
        right: 16px;
        left: 16px;
    }
    
    .alert {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-area i {
        font-size: 3rem;
    }
}

/* --- Verify Page --- */
.accounts-preview {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gray) var(--bg-input);
}

.accounts-preview::-webkit-scrollbar {
    width: 8px;
}

.accounts-preview::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 4px;
}

.accounts-preview::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 4px;
}

.accounts-preview::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.result-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 28px;
}

.result-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Status Badge - paid */
.status-badge.paid {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--accent-green);
}

/* Status Badge - cancelled */
.status-badge.cancelled {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    color: var(--text-muted);
}

/* Status Badge - expired */
.status-badge.expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--accent-red);
}

/* Status Badge - removed */
.status-badge.removed {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    color: var(--text-muted);
}

/* --- Glassmorphism Effect --- */
.glass {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Pulse Animation --- */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Fade In Animation --- */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scale In Animation --- */
.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Hover Lift Effect --- */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- Glow Effect --- */
.glow-blue {
    box-shadow: var(--shadow-glow-blue);
}

.glow-purple {
    box-shadow: var(--shadow-glow-purple);
}

.glow-green {
    box-shadow: var(--shadow-glow-green);
}

/* --- Text Gradient --- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 24px 0;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

.badge.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}


/* ========================================
   UI/UX IMPROVEMENTS
   ======================================== */

/* --- Enhanced Card Hover Effects --- */
.card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Stat Card Improvements --- */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-purple);
}

/* --- Enhanced Button Styles --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-green);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-purple);
    transform: translateY(-1px);
}

/* --- Table Row Hover Animation --- */
.jobs-table tbody tr {
    transition: all var(--transition-normal);
}

.jobs-table tbody tr:hover {
    background: var(--bg-hover);
    transform: scale(1.005);
}

/* --- Status Badge Pulse Animation --- */
.status-badge.running {
    animation: pulse-running 2s infinite;
}

@keyframes pulse-running {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

.status-badge.queued {
    animation: pulse-queued 2s infinite;
}

@keyframes pulse-queued {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* --- Enhanced Input Focus --- */
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* --- Progress Bar Animation --- */
.progress-bar .progress {
    position: relative;
    overflow: hidden;
}

.progress-bar .progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* --- Sidebar Link Hover --- */
/* Estilos de hover da sidebar definidos em .sidebar-section ul li a */

/* --- Modal Improvements --- */
.modal-overlay {
    backdrop-filter: blur(8px);
}

.modal-content {
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Alert Improvements --- */
.alert {
    animation: alert-slide 0.4s ease;
}

@keyframes alert-slide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Empty State Animation --- */
.empty-state i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- Page Header Gradient --- */
.page-header h1 {
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 3px;
}

/* --- Card Header Border --- */
.card-header {
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* --- Notification Badge Bounce --- */
.notification-badge {
    animation: badge-bounce 2s infinite;
}

@keyframes badge-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* --- File Upload Area Improvements --- */
.file-upload-area {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.file-upload-area:hover::before,
.file-upload-area.dragover::before {
    opacity: 1;
}

/* --- Discord Avatar Hover --- */
.discord-avatar {
    transition: all var(--transition-normal);
}

.discord-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* --- Form Group Label Animation --- */
.form-group label {
    transition: color var(--transition-normal);
}

.form-group:focus-within label {
    color: var(--accent-purple);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* --- Tooltip Style --- */
[title] {
    position: relative;
}

/* --- Glass Effect --- */
.glass {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Gradient Border --- */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan), var(--accent-green));
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gradient-border:hover::before {
    opacity: 1;
}

/* --- Success/Error Highlight --- */
.highlight-success {
    animation: highlight-green 1s ease;
}

@keyframes highlight-green {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: rgba(16, 185, 129, 0.2);
    }
}

.highlight-error {
    animation: highlight-red 1s ease;
}

@keyframes highlight-red {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: rgba(239, 68, 68, 0.2);
    }
}

/* --- Responsive Improvements --- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .card-header h4 {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==================== MELHORIAS UI/UX AVANÇADAS ==================== */

/* --- Animações Suaves --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Cards com Animação de Entrada --- */
.card {
    animation: fadeInUp 0.4s ease-out;
}

.stat-card {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

/* --- Efeito Glassmorphism Aprimorado --- */
.card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Hover Effects Melhorados --- */
.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.card:hover {
    border-color: var(--border-hover);
}

/* --- Botões com Efeito de Ripple --- */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after, .btn-secondary:active::after {
    width: 300px;
    height: 300px;
}

/* --- Inputs com Foco Aprimorado --- */
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--shadow-glow-blue);
}

/* --- Labels Flutuantes --- */
.form-group {
    position: relative;
}

.form-group label {
    transition: all var(--transition-fast);
}

/* --- Tabela com Hover Aprimorado --- */
.jobs-table tbody tr {
    transition: all var(--transition-fast);
}

.jobs-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    transform: scale(1.005);
}

/* --- Status Badges com Animação --- */
.status-badge {
    transition: all var(--transition-fast);
}

.status-badge.running {
    animation: pulse 2s infinite;
}

/* --- Progress Bar Animada --- */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* --- Sidebar com Hover Suave --- */
/* Estilos de hover da sidebar já definidos em .sidebar-section ul li a */

/* --- Modal com Animação --- */
.modal-overlay.active .modal-content {
    animation: fadeInUp 0.3s ease-out;
}

/* --- Notificações Toast --- */
.toast-notification {
    animation: slideInRight 0.4s ease-out;
}

/* --- Scrollbar Personalizada --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-blue-light), var(--accent-purple-light));
}

/* --- Seleção de Texto --- */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* --- Tooltips Aprimorados --- */
[title] {
    position: relative;
}

/* --- Cards de Planos Aprimorados --- */
.plan-card {
    transition: all var(--transition-normal);
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.plan-card.featured {
    border: 2px solid var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
}

.plan-card.featured:hover {
    box-shadow: var(--shadow-lg), 0 0 50px rgba(139, 92, 246, 0.4);
}

/* --- Ícones com Animação --- */
.stat-icon i {
    transition: transform var(--transition-bounce);
}

.stat-card:hover .stat-icon i {
    transform: scale(1.15) rotate(-5deg);
}

/* --- Empty State Aprimorado --- */
.empty-state {
    animation: fadeIn 0.5s ease-out;
}

.empty-state i {
    transition: transform var(--transition-bounce);
}

.empty-state:hover i {
    transform: scale(1.1);
}

/* --- Badges de Notificação Pulsante --- */
.notification-badge {
    animation: pulse 2s infinite;
}

/* --- Gradientes Dinâmicos --- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Botão Glow Aprimorado --- */
.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan), var(--accent-green));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0.7;
    filter: blur(8px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Micro-interações --- */
.btn-sm:hover i {
    transform: scale(1.2);
}

.btn-sm i {
    transition: transform var(--transition-fast);
}

/* --- Focus Visible para Acessibilidade --- */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* --- Transição de Página --- */
.main-content {
    animation: fadeIn 0.3s ease-out;
}

/* --- Melhorias de Tipografia --- */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* --- Efeito de Destaque em Valores --- */
.stat-value {
    transition: all var(--transition-fast);
}

.stat-card:hover .stat-value {
    transform: scale(1.05);
}

/* --- Responsividade Aprimorada --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==================== ONBOARDING TOUR ==================== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

.onboarding-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

.onboarding-highlighted {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px var(--accent-blue), 0 0 30px rgba(59, 130, 246, 0.5) !important;
    border-radius: var(--radius-md);
    animation: onboardingPulse 2s infinite;
}

@keyframes onboardingPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--accent-blue), 0 0 30px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px var(--accent-purple), 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

.onboarding-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-width: 360px;
    min-width: 280px;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    animation: fadeInUp 0.3s ease-out;
    pointer-events: auto;
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.onboarding-tooltip[data-position="top"]::before {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-top: none;
    border-left: none;
}

.onboarding-tooltip[data-position="bottom"]::before {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-bottom: none;
    border-right: none;
}

.onboarding-tooltip[data-position="left"]::before {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-bottom: none;
    border-left: none;
}

.onboarding-tooltip[data-position="right"]::before {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-top: none;
    border-right: none;
}

.onboarding-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.onboarding-step-indicator {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.onboarding-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.onboarding-close:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.onboarding-tooltip-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.onboarding-tooltip-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.onboarding-tooltip-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.onboarding-btn-primary,
.onboarding-btn-secondary {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
}

.onboarding-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.onboarding-btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.onboarding-btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.onboarding-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão para iniciar tour manualmente */
.tour-trigger {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md), var(--shadow-glow-purple);
    transition: all var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tour-trigger:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.5);
}

.tour-trigger::before {
    content: '?';
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
    .onboarding-tooltip {
        max-width: calc(100vw - 32px);
        min-width: auto;
        left: 16px !important;
        right: 16px;
    }
    
    .onboarding-tooltip-footer {
        flex-direction: column;
    }
    
    .tour-trigger {
        bottom: 80px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}
