/* L2WARG ACM - Modern Gaming Theme */
:root {
    /* Cores Minimalistas Modernas - Replicando o site principal */
    --primary-accent: #6366F1;
    --primary-accent-hover: #4F46E5;
    --secondary-accent: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --dark-bg: #0F0F23;
    --darker-bg: #0A0A1A;
    --light-bg: #1A1A2E;
    --card-bg: #16213E;
    --text-white: #FFFFFF;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-dark: #1E293B;
    --gradient-primary: linear-gradient(135deg, #6366F1, #8B5CF6);
    --gradient-dark: linear-gradient(135deg, #0F0F23, #1A1A2E);
    --gradient-card: linear-gradient(135deg, #16213E, #0F0F23);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Compatibilidade com código existente */
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --secondary-color: #8B5CF6;
    --accent-color: #F59E0B;
    --border-color: rgba(99, 102, 241, 0.3);
    --danger-color: #EF4444;
    --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Reset básico sem interferir no Bootstrap */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Garantir que o Bootstrap funcione */
.container-fluid {
    background: transparent;
}

/* Container da navbar - replicando o site principal */
.top-navbar .container-fluid {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
    height: 100%;
    width: 100%;
    gap: 0;
}

.top-navbar .navbar-nav {
    display: flex;
    list-style: none;
    gap: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    height: 100%;
    position: relative;
    flex: 1;
    justify-content: center;
    margin: 0;
}

/* Background com imagem */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/backgroundwarg1.webp') center/cover no-repeat;
    z-index: -2;
    opacity: 0.15;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -1;
    opacity: 0.95;
}

/* Top Navigation Bar - Replicando o design do site principal */
.top-navbar {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    overflow: visible;
    transition: var(--transition);
}

.top-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.03) 50%, 
        rgba(99, 102, 241, 0.05) 100%);
    z-index: -1;
}

/* Container específico para logo com maior especificidade */
.top-navbar .navbar-brand,
.top-navbar .navbar-brand.logo-container {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    margin-right: 30px;
    flex-shrink: 0;
    height: 100% !important;
    min-height: 90px !important;
    position: relative;
    z-index: 10;
}

/* Forçar centralização da logo */
.top-navbar .navbar-brand .main-logo,
.top-navbar .navbar-brand.logo-container .main-logo {
    vertical-align: middle !important;
    margin: auto !important;
    display: block !important;
}

.top-navbar .navbar-brand:hover {
    color: var(--text-primary) !important;
    transform: scale(1.05);
}

.top-navbar .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0 20px !important;
    margin: 0;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1rem;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1;
    min-width: 120px;
    flex: 0 1 auto;
    border: 1px solid transparent;
    min-height: 90px;
    margin-left: -1px;
}

/* Efeito de reflexo moderno */
.top-navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* Efeito de fundo sutil */
.top-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(139, 92, 246, 0.05)
    );
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    transform: scale(0.95);
}

.top-navbar .navbar-nav .nav-link:hover::before {
    left: 100%;
}

.top-navbar .navbar-nav .nav-link:hover::after {
    opacity: 1;
    transform: scale(1);
}

.top-navbar .navbar-nav .nav-link:hover {
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: var(--gradient-primary);
    border-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.top-navbar .navbar-nav .nav-item.active .nav-link {
    color: var(--text-white) !important;
    background: var(--gradient-primary);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.top-navbar .navbar-nav .nav-item.active .nav-link::before {
    display: none;
}

.top-navbar .navbar-nav .nav-item.active .nav-link::after {
    display: none;
}

.top-navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    min-width: 200px;
}

.top-navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-navbar .dropdown-item {
    color: var(--text-dark);
    padding: 12px 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-navbar .dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.top-navbar .dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.top-navbar .dropdown-item:hover {
    background: rgba(128, 128, 128, 0.15);
    transform: translateX(2px);
    color: var(--text-dark);
}

.top-navbar .dropdown-item.active {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    color: var(--text-dark);
}

.top-navbar .dropdown-header {
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    background: rgba(128, 128, 128, 0.1);
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

/* Server Status Bar */
.server-status-bar {
    background: var(--darker-bg);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.status-item {
    color: var(--text-secondary);
    margin: 0 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
    display: inline-block;
}

/* Main Content Area */
.main-content {
    min-height: calc(100vh - 90px);
    padding: 2rem 0;
}

/* Container específico para logo da topbar */
.topbar .navbar-brand,
.topbar .navbar-brand.logo-container {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    min-height: 100px !important;
    position: relative;
    z-index: 10;
}

/* Forçar centralização da logo na topbar */
.topbar .navbar-brand .main-logo,
.topbar .navbar-brand.logo-container .main-logo {
    vertical-align: middle !important;
    margin: auto !important;
    display: block !important;
}

/* CSS de alta especificidade para forçar centralização */
.navbar.navbar-expand-lg .navbar-brand,
.navbar.navbar-expand-lg .navbar-brand.logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 90px !important;
    min-height: 90px !important;
    line-height: 90px !important;
    margin-right: 30px !important;
}

.navbar.navbar-expand-lg .navbar-brand .main-logo,
.navbar.navbar-expand-lg .navbar-brand.logo-container .main-logo {
    vertical-align: middle !important;
    margin: auto !important;
    display: inline-block !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
}

.topbar .navbar-brand:hover {
    color: var(--primary-color) !important;
}

	.main-logo {
		max-height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: none;
    position: relative;
    transition: var(--transition);
}

/* Navegação horizontal */
.topbar .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0 20px !important;
    margin: 0;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1rem;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1;
    min-width: 120px;
    flex: 0 1 auto;
    border: 1px solid transparent;
    min-height: 90px;
    margin-left: -1px;
}

.topbar .navbar-nav .nav-link:hover {
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: var(--gradient-primary);
    border-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.topbar .navbar-nav .nav-link.active {
    color: var(--text-white) !important;
    background: var(--gradient-primary);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dropdowns da topbar */
.topbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    min-width: 200px;
}

.topbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar .dropdown-item {
    color: var(--text-dark);
    padding: 12px 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar .dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.topbar .dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.topbar .dropdown-item:hover {
    background: rgba(128, 128, 128, 0.15);
    transform: translateX(2px);
    color: var(--text-dark);
}

.topbar .dropdown-item.active {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    color: var(--text-dark);
}

.topbar .dropdown-header {
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    background: rgba(128, 128, 128, 0.1);
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

/* ===== CARDS INOVADORES - Design Inspirado na Loteria ===== */
.card {
    position: relative;
    background: linear-gradient(145deg, #0f0f23, #1a1a2e) !important;
    border: 1px solid transparent !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform-style: preserve-3d !important;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        rgba(168, 85, 247, 0.08) 25%,
        rgba(139, 92, 246, 0.12) 50%,
        rgba(196, 132, 252, 0.08) 75%,
        rgba(139, 92, 246, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #8B5CF6, #A855F7, #C084FC, #8B5CF6);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-5px) rotateX(2deg) !important;
    box-shadow: 
        0 15px 35px rgba(139, 92, 246, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card-header {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9), 
        rgba(168, 85, 247, 0.8)) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
    padding: 20px !important;
    border-radius: 18px 18px 0 0 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2) !important;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(255, 193, 7, 0.05));
    border-radius: 18px 18px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-header::before {
    opacity: 1;
}

.card-header h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    z-index: 1;
}

.card-header h5 i {
    color: #FFD700 !important;
    margin-right: 8px !important;
    font-size: 18px !important;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3) !important;
}

.card-header h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin: 0;
}

.card-body {
    position: relative;
    z-index: 2;
    padding: 24px !important;
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.9), 
        rgba(26, 26, 46, 0.8)) !important;
    backdrop-filter: blur(10px) !important;
}

/* ===== TABELAS INOVADORAS - Design Inspirado na Loteria ===== */
.table {
    color: #ffffff !important;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.table thead th {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(168, 85, 247, 0.15)) !important;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 16px 12px !important;
    position: relative !important;
}

.table thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(255, 193, 7, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .table thead th::before {
    opacity: 1;
}

.table tbody td {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1) !important;
    padding: 16px 12px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    position: relative !important;
    background: rgba(139, 92, 246, 0.02) !important;
    transition: all 0.3s ease !important;
}

.table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.08) !important;
    transform: translateX(2px) !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

.table thead th:first-child {
    border-top-left-radius: 10px;
}

.table thead th:last-child {
    border-top-right-radius: 10px;
}

.table tbody td {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem 1rem;
    vertical-align: middle;
    background: transparent;
    transition: all 0.3s ease;
}

.table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.table tbody tr:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Tabela responsiva */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

/* Tabela sem bordas para cards */
.card .table {
    margin-bottom: 0;
}

.card .table thead th {
    background: transparent;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.8rem;
    padding: 1rem;
}

.card .table tbody td {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding: 1rem;
}

.card .table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== BADGES INOVADORES - Design Inspirado na Loteria ===== */
.badge {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(168, 85, 247, 0.15)) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2) !important;
    transition: all 0.3s ease !important;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(255, 193, 7, 0.05));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge:hover::before {
    opacity: 1;
}

.badge:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(168, 85, 247, 0.25)) !important;
    border-color: #8B5CF6 !important;
    transform: translateY(-1px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* Badge específico para status OFFLINE */
.badge.bg-warning {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.8), 
        rgba(255, 152, 0, 0.7)) !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
    color: #ffffff !important;
}

/* Badge específico para level */
.badge.bg-primary {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.8), 
        rgba(168, 85, 247, 0.7)) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    color: #ffffff !important;
}

.badge-success {
    background: var(--success-color) !important;
    color: white;
}

.badge-warning {
    background: var(--warning-color) !important;
    color: white;
}

.badge-danger {
    background: var(--danger-color) !important;
    color: white;
}

.badge-primary {
    background: var(--gradient-primary) !important;
    color: white;
}

/* ===== SOLUÇÃO PARA DUPLICIDADE DE CABEÇALHOS ===== */
/* Oculta o tfoot quando há poucos dados na tabela */
.table tfoot {
    display: none;
}

/* Mostra o tfoot apenas quando há muitos dados (mais de 5 linhas) */
.table tbody tr:nth-child(6) ~ tr ~ tfoot,
.table tbody tr:nth-child(6) ~ tfoot {
    display: table-footer-group;
}

/* Alternativa: Mostra tfoot apenas quando há scroll na tabela */
.table-responsive:has(.table tbody tr:nth-child(6)) .table tfoot {
    display: table-footer-group;
}

/* Solução mais robusta: JavaScript será usado para controlar a visibilidade */
.table tfoot.hidden {
    display: none !important;
}

.table tfoot.visible {
    display: table-footer-group !important;
}
.btn {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(168, 85, 247, 0.15)) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #8B5CF6 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
}

.btn::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:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(168, 85, 247, 0.25)) !important;
    border-color: #8B5CF6 !important;
    color: #A855F7 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px) scale(0.98) !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    min-height: 3.5rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-height: 2.5rem;
    line-height: 1.4;
}

/* Formulários personalizados */
.form-control {
    background: rgba(15, 15, 35, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 3.5rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(15, 15, 35, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25) !important;
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Alertas personalizados */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

/* Página de login */
.bg-gradient-primary {
    background: var(--gradient-dark) !important;
    min-height: 100vh;
    position: relative;
}

.bg-gradient-primary::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/backgroundwarg1.webp') center/cover no-repeat;
    z-index: -2;
    opacity: 0.15;
}

.bg-gradient-primary::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -1;
    opacity: 0.95;
}

.bg-login-image {
    background: url('../img/backgroundwarg1.webp') center/cover no-repeat;
    position: relative;
    min-height: 100vh;
}

.bg-login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    opacity: 0.8;
}

/* Card de login */
.card.o-hidden {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-card) !important;
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card.o-hidden .card-body {
    padding: 0;
}

/* Formulário de login */
.form-control-user {
    background: rgba(15, 15, 35, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    min-height: 3.5rem !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
}

.form-control-user:focus {
    background: rgba(15, 15, 35, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25) !important;
    color: var(--text-primary) !important;
}

.form-control-user::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

/* Títulos da página de login */
.h4.text-gray-900 {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Botões da página de login */
.btn-user {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    min-height: 3.5rem !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center !important;
}

.btn-user.btn-primary {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    border: none !important;
    box-shadow: var(--shadow-glow) !important;
}

.btn-user.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4) !important;
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
}

.btn-user.btn-secondary {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color) !important;
}

.btn-user.btn-secondary:hover {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    transform: translateY(-2px) !important;
}

/* Checkbox personalizado */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.custom-control-label {
    color: var(--text-secondary) !important;
}

.custom-control-label::before {
    background-color: rgba(15, 15, 35, 0.8) !important;
    border: 1px solid var(--border-color) !important;
}

/* Links da página de login */
.small, .btn-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.small:hover, .btn-link:hover {
    color: var(--text-primary) !important;
    text-decoration: underline !important;
}

/* Botão outline-primary */
.btn-outline-primary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    font-weight: 500 !important;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

/* Dropdown de idioma */
.dropdown-menu {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow-card) !important;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Logo da página de login */
.main-logo {
    max-height: 80px;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
    margin-bottom: 2rem;
}

/* Alertas da página de login */
.alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-color) !important;
    border-left: 4px solid var(--success-color) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger-color) !important;
    border-left: 4px solid var(--danger-color) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning-color) !important;
    border-left: 4px solid var(--warning-color) !important;
}

/* Responsividade da página de login */
@media (max-width: 768px) {
    .main-logo {
        max-height: 60px;
    }
    
    .h4.text-gray-900 {
        font-size: 1.5rem;
    }
    
    .btn-user {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 3rem !important;
    }
    
    .form-control-user {
        padding: 0.875rem 1rem !important;
        min-height: 3rem !important;
    }
}

/* Cards de itens de doação */
.donation-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.donation-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

.item-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.donation-item-card:hover .item-img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donation-item-card:hover .item-overlay {
    opacity: 1;
}

.item-favorite {
    color: var(--danger-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.item-favorite:hover {
    color: var(--primary-color);
}

.item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.4;
}

.item-quantity {
    text-align: center;
    margin-bottom: 1rem;
}

.quantity-badge {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.item-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-value {
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.item-action-btn {
    margin-top: auto;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    text-decoration: none;
}

/* Responsividade dos cards de doação */
@media (max-width: 768px) {
    .donation-item-card {
        margin-bottom: 1rem;
    }
    
    .item-image {
        height: 150px;
    }
    
    .item-content {
        padding: 1rem;
    }
    
    .item-title {
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .item-image {
        height: 120px;
    }
    
    .item-content {
        padding: 0.875rem;
    }
    
    .item-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .quantity-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .item-action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    background: url('../img/backgroundwarg1.webp') center/cover no-repeat;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* ===== STAT CARDS INOVADORES - Design Inspirado na Loteria ===== */
.stat-card {
    position: relative;
    background: linear-gradient(145deg, #0f0f23, #1a1a2e) !important;
    border: 1px solid transparent !important;
    border-radius: 20px !important;
    padding: 24px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform-style: preserve-3d !important;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-8px) rotateX(5deg) !important;
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #8B5CF6, #A855F7, #C084FC, #8B5CF6);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(168, 85, 247, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(255, 193, 7, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon::before {
    opacity: 1;
}

.stat-icon i {
    font-size: 24px;
    color: #8B5CF6;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon i {
    color: #A855F7;
    transform: scale(1.1);
}
.stat-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.stat-value {
    color: #FFD700;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    margin-bottom: 4px;
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
    transition: width 0.4s ease;
}

.stat-card:hover .stat-value::after {
    width: 100%;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}
}

/* Footer */
.sticky-footer {
    background: var(--card-bg) !important;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        margin-right: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .top-navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        margin: 0.125rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .top-navbar .navbar-brand {
        font-size: 1.25rem;
    }
    
	.main-logo {
        max-height: 40px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Status Indicators */
.status-online {
    color: var(--success-color);
}

.status-offline {
    color: var(--text-muted);
}

.status-banned {
    color: var(--danger-color);
}

/* Character Class Colors */
.class-human { color: #F59E0B; }
.class-elf { color: #10B981; }
.class-dark-elf { color: #8B5CF6; }
.class-orc { color: #EF4444; }
.class-dwarf { color: #6B7280; }
.class-kamael { color: #F97316; }

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Modais personalizados */
.modal {
    backdrop-filter: blur(5px);
}

.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color) !important;
    border-radius: 15px !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    background: var(--gradient-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.modal-title {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .close {
    color: var(--text-primary) !important;
    opacity: 0.8;
    font-size: 1.5rem;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--text-primary) !important;
}

.modal-body {
    padding: 2rem;
    background: transparent;
}

.modal-footer {
    background: rgba(139, 92, 246, 0.05) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 0 15px 15px !important;
    padding: 1.5rem;
}

/* Formulários em modais */
.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal .form-control {
    background: rgba(15, 15, 35, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 3.5rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    background: rgba(15, 15, 35, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25) !important;
    color: var(--text-primary) !important;
}

.modal .form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Selects específicos */
select.form-control {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    appearance: none;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238b5cf6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Garantir que textos não sejam cortados */
.form-control, .modal .form-control {
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn, .modal .btn {
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

/* Para selects, permitir quebra de linha se necessário */
select.form-control {
    white-space: normal;
    word-wrap: break-word;
}

/* Garantir que placeholders sejam visíveis */
.form-control::placeholder, .modal .form-control::placeholder {
    opacity: 1;
    color: var(--text-muted) !important;
}

.modal .input-group-text {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.modal .form-check-input {
    background-color: rgba(15, 15, 35, 0.8) !important;
    border: 1px solid var(--border-color) !important;
}

.modal .form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.modal .form-check-label {
    color: var(--text-secondary) !important;
}

/* Botões em modais */
.modal .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    line-height: 1.5;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.modal .btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.modal .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.modal .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    box-shadow: var(--shadow-glow);
}

.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    background: var(--gradient-primary);
    color: var(--text-primary);
}

/* Input group em modais */
.modal .input-group .btn {
    border-radius: 0;
    padding: 0.75rem 1rem;
    min-height: 3.5rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
}

.modal .input-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.modal .input-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Página de Doação */
.balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.balance-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.balance-content {
    text-align: center;
}

.balance-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.balance-value {
    color: var(--success-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Itens da tabela de doação */
.item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.quantity-badge {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.price-value {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Botões de ação na tabela */
.table .btn-sm {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    min-height: 2.5rem;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

/* Grid de botões */
.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.75rem;
}

.gap-3 {
    gap: 1rem;
}

/* Responsividade para página de doação */
@media (max-width: 768px) {
    .balance-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .balance-icon {
        font-size: 2.5rem;
        padding: 0.75rem;
    }
    
    .balance-value {
        font-size: 2rem;
    }
    
    .item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 3rem;
        line-height: 1.5;
    }
    
    .form-control {
        min-height: 3rem;
        padding: 0.875rem 1rem;
    }
    
    .modal .form-control {
        min-height: 3rem;
        padding: 0.875rem 1rem;
    }
    
    .btn-sm {
        padding: 0.625rem 1rem;
        min-height: 2.25rem;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== LOTTERY SYSTEM STYLES ===== */

/* Admin Lottery Pages Styles */
.admin-lottery-page .page-header {
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
}

.admin-lottery-page .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.admin-lottery-page .page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.admin-lottery-page .card {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-glow);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.admin-lottery-page .card-header {
    background: var(--gradient-primary);
    border-bottom: 2px solid var(--border-color);
    border-radius: 13px 13px 0 0;
    padding: 1.5rem;
}

.admin-lottery-page .card-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.admin-lottery-page .form-group label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-lottery-page .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.admin-lottery-page .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
    background: var(--input-focus-bg);
}

.admin-lottery-page .btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-lottery-page .btn-primary {
    background: var(--gradient-primary);
    border-color: var(--accent-color);
    color: white;
}

.admin-lottery-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.admin-lottery-page .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
}

.admin-lottery-page .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.admin-lottery-page .btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-color: #ffc107;
    color: white;
}

.admin-lottery-page .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.admin-lottery-page .btn-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    border-color: #dc3545;
    color: white;
}

.admin-lottery-page .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.admin-lottery-page .alert {
    border-radius: 10px;
    border: 2px solid;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-lottery-page .alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.admin-lottery-page .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.admin-lottery-page .table {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.admin-lottery-page .table th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.admin-lottery-page .table td {
    border-color: var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

.admin-lottery-page .table tbody tr:hover {
    background: rgba(138, 43, 226, 0.1);
}

.admin-lottery-page .item-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
}

.admin-lottery-page .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.admin-lottery-page .badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.admin-lottery-page .badge-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.admin-lottery-page .badge-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.admin-lottery-page .badge-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.admin-lottery-page .stats-card {
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-glow);
}

.admin-lottery-page .stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.admin-lottery-page .stats-card .stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

.admin-lottery-page .quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-lottery-page .quick-action-btn {
    background: var(--gradient-primary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.admin-lottery-page .quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.4);
    color: white;
    text-decoration: none;
}

.admin-lottery-page .quick-action-btn i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.admin-lottery-page .quick-action-btn h6 {
    margin: 0;
    font-weight: 600;
}

.admin-lottery-page .quick-action-btn p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Responsive adjustments for admin pages */
@media (max-width: 768px) {
    .admin-lottery-page .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .admin-lottery-page .page-title {
        font-size: 2rem;
    }
    
    .admin-lottery-page .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-lottery-page .stats-card {
        padding: 1.5rem;
    }
    
    .admin-lottery-page .stats-card .stats-number {
        font-size: 2rem;
    }
}

/* Lottery Balance Card */
.lottery-balance-card {
    background: var(--gradient-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-glow);
}

.lottery-balance-card .balance-icon {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Lottery Configuration Cards */
.lottery-config-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.lottery-config-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.lottery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.lottery-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.lottery-cost {
    text-align: right;
}

.cost-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.cost-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lottery-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.lottery-items-preview h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.rarity-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
}

.rarity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.rarity-name {
    color: var(--text-primary);
    font-weight: 500;
}

.rarity-count {
    color: var(--text-secondary);
}

.lottery-spin-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lottery-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Lottery Modal */
.lottery-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total-cost {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   SISTEMA DE LOTERIA - CARROSSEL ANIMADO
   Versão completamente nova do zero
   ======================================== */

/* Container Principal do Carrossel */
.lottery-carousel-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.9) 100%);
    border: 3px solid rgba(255, 215, 0, 0.7);
    margin: 2rem 0;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Indicador Central */
.carousel-center-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 215, 0, 1) 15%, 
        rgba(255, 215, 0, 1) 85%, 
        rgba(255, 215, 0, 0.2) 100%);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.9),
        0 0 40px rgba(255, 215, 0, 0.5);
    z-index: 15;
    pointer-events: none;
    animation: center-pulse 2s ease-in-out infinite alternate;
}

.carousel-center-indicator::before {
    content: '🎯';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 215, 0, 0.9);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes center-pulse {
    0% { 
        opacity: 0.6;
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.9),
            0 0 40px rgba(255, 215, 0, 0.5);
    }
    100% { 
        opacity: 1;
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.7);
    }
}

/* Track do Carrossel */
.carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    transition: none;
    flex-wrap: nowrap;
    overflow: visible;
    transform: translateX(0);
    min-width: 100%;
    width: max-content;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Item do Carrossel */
.carousel-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0;
    gap: 0;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: visible !important;
    opacity: 1 !important;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.carousel-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Item Ativo (Sorteado) */
.carousel-item.active {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 215, 0, 0.25) 100%);
    border: 4px solid rgba(255, 215, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.7),
        0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: active-glow 2s ease-in-out infinite alternate;
}

@keyframes active-glow {
    0% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.7),
            0 15px 40px rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
    }
    100% { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.9),
            0 20px 60px rgba(0, 0, 0, 0.6);
        transform: scale(1.12);
    }
}

/* Animação de entrada dos itens */
@keyframes item-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.carousel-item {
    animation: item-fade-in 0.6s ease-out forwards;
}

/* Animação de confetti */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall 3s linear forwards;
}

/* Estilos específicos para o carrossel simples */
.carousel-item.active {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 215, 0, 0.25) 100%) !important;
    border: 4px solid rgba(255, 215, 0, 0.9) !important;
    transform: scale(1.1) !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.7),
        0 15px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 10;
    animation: active-glow 2s ease-in-out infinite alternate;
}

/* Garantir que o carrossel seja visível */
.lottery-carousel-container {
    min-height: 220px !important;
}

.carousel-track {
    min-width: 100% !important;
}

/* Debug: tornar elementos visíveis */
.carousel-item {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Debug: tornar track visível */
.carousel-track {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Debug: tornar container visível */
.lottery-carousel-container {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
}

/* Garantir que o track tenha largura suficiente */
.carousel-track {
    display: flex !important;
    width: max-content !important;
    min-width: 100% !important;
    transition: transform 0.1s ease-out !important;
}

/* Garantir que os itens sejam visíveis */
.carousel-item {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    flex-shrink: 0 !important;
    min-width: 200px !important;
}

/* Estilos para o card de resultados */
.lottery-results-card {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.lottery-results-card .card-header {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 215, 0, 0.1) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* Animação de entrada para os resultados */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultsSection {
    animation: slideInFromBottom 0.8s ease-out forwards;
}

/* Animação de pulso para itens ganhos */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    }
}

/* ===== LOTTERY POPUP STYLES ===== */
.lottery-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lottery-popup-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
}

.lottery-popup-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 20px 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lottery-popup-title {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lottery-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lottery-popup-close:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

.lottery-popup-content {
    padding: 30px;
}

/* Carousel Section */
.carousel-section {
    text-align: center;
}

.carousel-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 20px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: none;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    min-width: 100%;
    overflow: visible;
}

.carousel-item {
    width: 150px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    min-width: 150px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Garantir que imagens sejam visíveis */
.carousel-item img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
}

.carousel-item .item-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
}

.carousel-item.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 2px solid #FFD700;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.carousel-center-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, #FFD700, transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    z-index: 10;
}

.carousel-status {
    margin-top: 20px;
}

.spinning-indicator {
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Winner Section */
.winner-section {
    text-align: center;
    animation: slideInUp 0.5s ease-out;
}

.winner-animation {
    margin-bottom: 30px;
}

.winner-item {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 3px solid #FFD700;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: winnerPulse 2s infinite;
}

.winner-text h4 {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.winner-text p {
    color: white;
    font-size: 18px;
    margin-bottom: 0;
}

.winner-actions {
    margin-top: 30px;
}

#receiveItemBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

#receiveItemBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes winnerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

/* Imagem do Item */
.carousel-item .item-image {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin: 0 auto 15px;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(5px);
}

.carousel-item.active .item-image {
    transform: scale(1.2);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.9);
}

.carousel-item .item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: visible;
    opacity: 1;
    display: block;
    border-radius: 10px;
}

.carousel-item.active .item-image img {
    filter: brightness(1.4) contrast(1.3) saturate(1.2);
    transform: scale(1.1);
}

/* Informações do Item */
.carousel-item .item-info {
    text-align: center;
    width: 100%;
    visibility: visible;
    opacity: 1;
    display: block;
}

.carousel-item .item-name {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    visibility: visible;
    opacity: 1;
    display: block;
    transition: all 0.4s ease;
}

.carousel-item.active .item-name {
    color: #FFD700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.9),
        0 3px 6px rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-item .item-quantity {
    display: block;
    color: #60A5FA;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    visibility: visible;
    opacity: 1;
    transition: all 0.4s ease;
}

.carousel-item.active .item-quantity {
    color: #87CEEB;
    text-shadow: 
        0 0 15px rgba(135, 206, 235, 0.7),
        0 3px 6px rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-item .item-rarity {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: visible;
    opacity: 1;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
}

.carousel-item.active .item-rarity {
    transform: scale(1.2);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 8px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.7);
}

/* Cores por Raridade */
.rarity-common { 
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.4), rgba(107, 114, 128, 0.4)); 
    color: #9CA3AF; 
}

.rarity-uncommon { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.4)); 
    color: #10B981; 
}

.rarity-rare { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.4)); 
    color: #3B82F6; 
}

.rarity-epic { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(124, 58, 237, 0.4)); 
    color: #8B5CF6; 
}

.rarity-legendary { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.4)); 
    color: #F59E0B; 
}

.rarity-mythic { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.4)); 
    color: #EF4444; 
}

/* Cores de raridade */
.rarity-common {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    color: white;
    border: 1px solid #9CA3AF;
}

.rarity-uncommon {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: 1px solid #10B981;
}

.rarity-rare {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: 1px solid #3B82F6;
}

.rarity-epic {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    border: 1px solid #8B5CF6;
}

.rarity-legendary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: 1px solid #F59E0B;
}

.rarity-mythic {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: 1px solid #EF4444;
}

/* Responsividade */
@media (max-width: 768px) {
    .lottery-carousel-container {
        height: 180px;
        margin: 1rem 0;
    }
    
    .carousel-item {
        width: 160px;
        padding: 1rem 0.5rem;
    }
    
    .carousel-item .item-image {
        width: 70px;
        height: 70px;
        margin: 0 auto 8px;
    }
    
    .carousel-item .item-name {
        font-size: 11px;
    }
    
    .carousel-item .item-quantity {
        font-size: 10px;
    }
    
    .carousel-item .item-rarity {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .lottery-carousel-container {
        height: 160px;
    }
    
    .carousel-item {
        width: 140px;
        padding: 0.8rem 0.4rem;
    }
    
    .carousel-item .item-image {
        width: 60px;
        height: 60px;
        margin: 0 auto 6px;
    }
    
    .carousel-item .item-name {
        font-size: 10px;
    }
    
    .carousel-item .item-quantity {
        font-size: 9px;
    }
    
    .carousel-item .item-rarity {
        font-size: 8px;
        padding: 2px 4px;
    }
}


.carousel-item .item-info {
    text-align: center;
}

.carousel-item .item-name {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.carousel-item .item-quantity {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.carousel-item .item-rarity {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Rarity Colors */
.rarity-common {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
    border: 1px solid #9CA3AF;
}

.rarity-uncommon {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid #10B981;
}

.rarity-rare {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.rarity-epic {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
}

.rarity-legendary {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid #F59E0B;
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

@keyframes legendary-glow {
    0% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    }
}

/* Lottery Results */
.lottery-results-title {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.lottery-results-card {
    background: var(--gradient-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-glow);
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.results-summary .summary-item {
    text-align: center;
    border: none;
    padding: 0;
}

.results-summary .summary-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.results-summary .summary-item h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.results-summary .summary-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lottery Results Carousel */
.lottery-results-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
}

.lottery-results-carousel .carousel-center-indicator {
    background: linear-gradient(to bottom, 
        rgba(245, 158, 11, 0.8) 0%, 
        rgba(245, 158, 11, 1) 20%, 
        rgba(245, 158, 11, 1) 80%, 
        rgba(245, 158, 11, 0.8) 100%);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
}

.lottery-results-carousel .carousel-item {
    width: 220px;
    height: 100%;
    padding: 1.5rem;
}

.lottery-results-carousel .carousel-item .item-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    position: relative;
}

.lottery-results-carousel .carousel-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lottery-results-carousel .carousel-item .item-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.lottery-results-carousel .carousel-item .item-quantity {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.lottery-results-carousel .carousel-item .item-rarity {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

/* Won Item Animations */
.won-item {
    position: relative;
}

.won-item .item-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 10px;
    opacity: 0;
    animation: glow-pulse 2s ease-in-out infinite;
}

.rarity-legendary .item-glow {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    opacity: 0.7;
}

.rarity-epic .item-glow {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa, #8b5cf6);
    opacity: 0.5;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== CARROSSEL POPUP ESPECÍFICO ===== */
#lotteryCarouselTrack {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
}

#lotteryCarouselTrack .carousel-item {
    width: 150px;
    height: 120px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#lotteryCarouselTrack .carousel-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

#lotteryCarouselTrack .carousel-item.active {
    border: 3px solid #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

#lotteryCarouselTrack .item-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

#lotteryCarouselTrack .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

#lotteryCarouselTrack .fallback-image {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    padding: 5px;
}

#lotteryCarouselTrack .item-info {
    text-align: center;
    width: 100%;
}

#lotteryCarouselTrack .item-name {
    margin: 0 0 3px 0;
    font-size: 11px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#lotteryCarouselTrack .item-quantity {
    display: block;
    color: #60A5FA;
    font-size: 10px;
    margin-bottom: 3px;
    font-weight: bold;
}

#lotteryCarouselTrack .item-rarity {
    color: inherit;
    border: 1px solid currentColor;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 8px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Lottery Responsive */
@media (max-width: 768px) {
    .lottery-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .lottery-cost {
        text-align: center;
    }
    
    .rarity-breakdown {
        justify-content: center;
    }
    
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .lottery-carousel-container,
    .lottery-results-carousel {
        height: 180px;
    }
    
    .carousel-item {
        width: 150px;
        padding: 0.75rem;
    }
    
    .carousel-item .item-image {
        width: 60px;
        height: 60px;
    }
    
    .lottery-results-carousel .carousel-item {
        width: 180px;
        padding: 1rem;
    }
    
    .lottery-results-carousel .carousel-item .item-image {
        width: 80px;
        height: 80px;
    }
}

/* ===== CARROSSEL OTIMIZADO - NOVOS ESTILOS ===== */

/* Container do carrossel otimizado */
.lottery-carousel-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.9) 0%, 
        transparent 15%, 
        transparent 85%, 
        rgba(0,0,0,0.9) 100%);
    border-radius: 20px;
    margin: 1rem 0;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    will-change: transform;
    transform: translateX(0px);
}

/* Elementos do carrossel otimizados */
.carousel-item-optimized {
    width: 180px;
    height: 180px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-item-optimized:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.carousel-item-optimized.active {
    border: 4px solid #FFD700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    transform: scale(1.15) translateY(-10px);
    background: rgba(255, 215, 0, 0.1);
    animation: winner-pulse 2s ease-in-out infinite alternate;
}

@keyframes winner-pulse {
    0% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 1);
    }
}

/* ===== LOTTERY CARD ESPECÍFICO ===== */
.stat-card.lottery-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1)) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
}

.stat-card.lottery-card:hover {
    border-color: rgba(139, 92, 246, 0.8) !important;
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.stat-card.lottery-card .stat-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3)) !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    margin-bottom: 0 !important;
}

.stat-card.lottery-card .stat-icon i {
    color: #A78BFA !important;
}

.stat-card.lottery-card:hover .stat-icon i {
    color: #C4B5FD !important;
    transform: scale(1.2) rotate(10deg) !important;
}

.stat-card.lottery-card .stat-value {
    font-size: 1.5rem !important;
    margin-bottom: 5px !important;
}

.stat-card.lottery-card .stat-label {
    font-size: 0.85rem !important;
    margin-bottom: 15px !important;
}

.stat-action {
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.stat-action .btn {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    color: white !important;
}

.stat-action .btn:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
    color: white !important;
}

.stat-action .btn i {
    margin-right: 5px !important;
}

/* Indicador central otimizado */
.carousel-center-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 4px solid #FFD700;
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
    pointer-events: none;
    z-index: 10;
    animation: center-glow 3s ease-in-out infinite alternate;
}

@keyframes center-glow {
    0% {
        border-color: #FFD700;
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            inset 0 0 20px rgba(255, 215, 0, 0.2);
    }
    100% {
        border-color: #FFA500;
        box-shadow: 
            0 0 50px rgba(255, 165, 0, 1),
            inset 0 0 30px rgba(255, 165, 0, 0.3);
    }
}

/* Container de imagem otimizado */
.item-image-container {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.item-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item-optimized:hover .item-image-container::before {
    opacity: 1;
}

/* Imagem otimizada */
.item-image-optimized {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.carousel-item-optimized:hover .item-image-optimized {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Informações do item otimizadas */
.item-info-optimized {
    text-align: center;
    color: white;
    font-size: 12px;
    width: 100%;
}

.item-info-optimized .item-name {
    font-weight: bold;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.item-info-optimized .item-quantity {
    color: #60A5FA;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.item-info-optimized .item-rarity {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Raridades otimizadas */
.rarity-common {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.3), rgba(156, 163, 175, 0.1));
    color: #9CA3AF;
    border: 1px solid #9CA3AF;
}

.rarity-uncommon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    color: #10B981;
    border: 1px solid #10B981;
}

.rarity-rare {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.rarity-epic {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
}

.rarity-legendary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
    color: #F59E0B;
    border: 1px solid #F59E0B;
    animation: legendary-glow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

@keyframes legendary-glow {
    0% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    }
    100% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.8);
    }
}

/* Responsive Design Otimizado */
@media (max-width: 768px) {
    .lottery-carousel-container {
        height: 180px;
    }
    
    .carousel-item-optimized {
        width: 150px;
        height: 150px;
        margin: 0 8px;
    }
    
    .carousel-center-indicator {
        width: 170px;
        height: 170px;
    }
    
    .item-image-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .lottery-carousel-container {
        height: 160px;
    }
    
    .carousel-item-optimized {
        width: 130px;
        height: 130px;
        margin: 0 5px;
    }
    
    .carousel-center-indicator {
        width: 150px;
        height: 150px;
    }
    
    .item-image-container {
        width: 100px;
        height: 100px;
    }
    
    .item-info-optimized {
        font-size: 10px;
    }
}

/* Lottery Results Animation Styles */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.won-item.animate-in {
    animation: item-reveal 0.5s ease-out forwards;
}

@keyframes item-reveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.item-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 10px;
    opacity: 0;
    animation: glow-pulse 2s ease-in-out infinite;
}

.rarity-legendary .item-glow {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    opacity: 0.7;
}

.rarity-epic .item-glow {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa, #8b5cf6);
    opacity: 0.5;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== CARROSSEL POPUP ESPECÍFICO ===== */
#lotteryCarouselTrack {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
}

#lotteryCarouselTrack .carousel-item {
    width: 150px;
    height: 120px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#lotteryCarouselTrack .carousel-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

#lotteryCarouselTrack .carousel-item.active {
    border: 3px solid #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

#lotteryCarouselTrack .item-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

#lotteryCarouselTrack .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

#lotteryCarouselTrack .fallback-image {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    padding: 5px;
}

#lotteryCarouselTrack .item-info {
    text-align: center;
    width: 100%;
}

#lotteryCarouselTrack .item-name {
    margin: 0 0 3px 0;
    font-size: 11px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#lotteryCarouselTrack .item-quantity {
    display: block;
    color: #60A5FA;
    font-size: 10px;
    margin-bottom: 3px;
    font-weight: bold;
}

#lotteryCarouselTrack .item-rarity {
    color: inherit;
    border: 1px solid currentColor;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 8px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}