/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #111;
    color: #e1e1e1;
    line-height: 1.6;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Fondo de partículas idéntico al wallet */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 0s forwards;
}

/* Variables CSS */
:root {
    --primary-color: #c084fc;
    --primary-light: #d8b4fe;
    --primary-dark: #a855f7;
    --bg-primary: #111;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #e1e1e1;
    --text-secondary: #a1a1a1;
    --text-muted: #6b7280;
    --border-color: #374151;
    --success-color: #89ba2b;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout */
.app-container {
    max-width: 430px;
    margin: 0 auto;
    height: 100vh;
    position: relative;
    z-index: 2;
    padding: 70px 20px 90px 20px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .app-container {
        padding: 1px 15px 80px 15px;
    }
}

.main-content {
    padding: 0;
    height: calc(100vh - 160px); /* Altura viewport - padding top/bottom */
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.1s forwards;
}

@media (max-width: 480px) {
    .main-content {
        height: calc(100vh - 140px); /* Ajuste para móvil */
    }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out 1.0s forwards;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.see-all:hover {
    color: var(--primary-light);
}

/* Campaigns Section */
.campaigns-section {
    margin-bottom: 32px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 1.1s forwards;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    margin-bottom: 95px;
}

/* Ocultar scrollbar en WebKit browsers (Chrome, Safari, Edge) */
.campaigns-list::-webkit-scrollbar {
    display: none;
}

.campaign-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .campaign-card {
        padding: 12px;
        margin-bottom: 8px;
    }
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.campaign-card > * {
    position: relative;
    z-index: 1;
}

.campaign-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.campaign-card:hover::before {
    opacity: 1;
}

.campaign-card:active {
    transform: translateY(-1px) scale(0.98);
}

.campaign-card:hover .campaign-title {
    color: var(--primary-light);
    transition: color 0.2s ease;
}

.campaign-card:hover .campaign-profile-placeholder {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campaign-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-top: -5px;
}

.campaign-profile-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.campaign-profile-placeholder.gamer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.campaign-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.participation-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 16px;
}

.participation-status.joined {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-top: -5px;
    font-size: 10px;
}

.participation-status i {
    font-size: 10px;
}

.campaign-rate {
    background: rgba(192, 132, 252, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.campaign-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign-meta-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.campaign-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.campaign-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-platform.tiktok {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.campaign-end-date-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    justify-content: flex-end;
    margin-top: 2px;
    width: 145px;
}

.campaign-end-date-bottom.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.campaign-end-date-bottom.urgent i,
.campaign-end-date-bottom i {
    font-size: 10px;
}

.campaign-end-date-bottom.urgent i {
    color: var(--error-color);
}

/* Hero Section - Campañas de Clipping */
.clipping-hero {
    padding: 24px 0 32px 0;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.hero-description {
    font-size: 16px;
    font-weight: 400;
    color: #a1a1a1;
    line-height: 1.5;
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.hero-btn-todas {
    background: transparent;
    color: #ffffff;
    border: 1px solid #404040;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInScale 0.5s ease-out 0.8s forwards;
}

.hero-btn-todas:hover {
    background: #1a1a1a;
    border-color: #525252;
    transform: translateY(-1px) scale(1.05);
}

.hero-btn-todas:active {
    transform: translateY(0) scale(1.02);
}

.hero-btn-todas.active {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    transform: scale(1.02);
}

/* Responsive para la hero section */
@media (max-width: 480px) {
    .clipping-hero {
        padding: 30px 0 0px 0;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 25px;
        margin-bottom: 5px;
    }

    .hero-description {
        font-size: 14px; 
    }

    .hero-btn-todas {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out 1.0s forwards;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Ryan Castro Featured Campaign Card - Estilos unificados para mobile y desktop */
.ryan-castro-card {
    background: #242227;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInScale 0.7s ease-out 1.2s forwards;
    border: 1px solid rgba(147, 51, 234, 0.2);
    position: relative;
    overflow: hidden;
    padding: 1px;
}

.ryan-castro-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, rgba(147, 51, 234, 0.4), transparent 120deg);
    border-radius: 18px;
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
}

.ryan-castro-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #242227;
    border-radius: 15px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ryan-castro-header {
    height: 100px;
    border-radius: 14px 14px 0px  0px;
    overflow: hidden;
    margin: 0px 0px 15px 0px;
    opacity: 0;
    animation: fadeInScale 0.5s ease-out 1.4s forwards;
}

.ryan-castro-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ryan-castro-content {
    padding: 0 16px;
}

.ryan-castro-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 1.6s forwards;
}

.ryan-castro-date {
    font-size: 12px;
    color: #9CA3AF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 1.7s forwards;
}

.ryan-castro-stats {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.8s forwards;
}

.ryan-castro-left-80 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ryan-castro-right-20 {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin-left: 8px;
    margin-bottom: -2px;
}

.ryan-castro-progress-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ryan-castro-available {
    background: #404040;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 5px;
    display: inline-block;
    width: 130px;
    text-align: center;
}

.ryan-castro-percentage {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
    min-width: 40px;
}

.ryan-castro-tiktok {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 5px;
}

.ryan-castro-tiktok i {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
}

.ryan-castro-price {
    background: #2a3d21;
    color: var(--success-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.ryan-castro-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.ryan-castro-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto de destello en la barra de progreso */
.ryan-castro-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 100%
    );
    animation: progressShimmer 2s ease-in-out infinite;
    border-radius: 3px;
}

.ryan-castro-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(192, 132, 252, 0.3) 30%,
        rgba(192, 132, 252, 0.6) 50%,
        rgba(192, 132, 252, 0.3) 70%,
        transparent 100%
    );
    animation: progressShimmer 2s ease-in-out infinite 0.5s;
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .ryan-castro-stats {
        margin-top: 12px;
        gap: 6px;
    }

    .ryan-castro-available {
        font-size: 10px;
        padding: 5px 12px;
        width: 150px;
        text-align: center;
    }

    .ryan-castro-progress-section {
        gap: 6px;
    }

    .ryan-castro-progress-bar {
        min-width: 60px;
        flex: 1;
    }

    .ryan-castro-percentage {
        font-size: 12px;
        min-width: 30px;
    }

    .ryan-castro-tiktok i {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .ryan-castro-price {
        font-size: 9px;
        padding: 4px 6px;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nuevas animaciones sutiles para la entrada de elementos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animación del efecto shimmer para la barra de progreso */
@keyframes progressShimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.campaign-card {
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.campaign-card:nth-child(1) { animation-delay: 1.4s; }
.campaign-card:nth-child(2) { animation-delay: 1.6s; }
.campaign-card:nth-child(3) { animation-delay: 1.8s; }
.campaign-card:nth-child(4) { animation-delay: 2.0s; }
.campaign-card:nth-child(5) { animation-delay: 2.2s; }

/* Responsive para Ryan Castro card */
@media (max-width: 480px) {
    .ryan-castro-header {
        height: 120px;
    }

    .ryan-castro-title {
        font-size: 16px;
    }

    .ryan-castro-stats {
        margin-top: 15px;
        gap: 6px;
    }

    .ryan-castro-available {
        font-size: 11px;
        padding: 7px 12px;
        width: 90%;
        text-align: center;
    }

    .ryan-castro-percentage {
        font-size: 12px;
    }

    .ryan-castro-tiktok i {
        font-size: 20px;
    }

    .ryan-castro-price {
        font-size: 10px;
        padding: 6px 10px;
    }

    .ryan-castro-progress-bar {
        min-width: 70px;
    }
}

/* Estilos para campañas finalizadas */
.campaign-finished {
    opacity: 0.7;
    position: relative;
}

.campaign-finished .ryan-castro-header {
    position: relative;
}

.finished-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 14px 0px 0px;
}

.finished-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cambiar colores de progreso para campañas finalizadas */
.campaign-finished .ryan-castro-progress-fill {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.campaign-finished .ryan-castro-available {
    background: #525252;
    color: #d1d5db;
}

.campaign-finished .ryan-castro-price {
    background: #404040;
    color: #9ca3af;
}

.campaign-finished .ryan-castro-date {
    color: #6b7280;
}

/* Responsive para el badge */
@media (max-width: 480px) {
    .finished-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* Estilos para estados de carga y errores */
.loading-campaigns,
.error-campaigns,
.no-campaigns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
}

.loading-campaigns {
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
}

.loading-campaigns::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: loadingSpinner 1s linear infinite;
    margin-top: 16px;
}

.error-campaigns {
    color: var(--error-color);
    font-size: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.error-campaigns::before {
    content: '⚠️';
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.no-campaigns {
    color: var(--text-muted);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.no-campaigns::before {
    content: '📝';
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

/* Animación para el spinner de carga */
@keyframes loadingSpinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estilos responsivos para estados */
@media (max-width: 480px) {
    .loading-campaigns,
    .error-campaigns,
    .no-campaigns {
        padding: 30px 15px;
        min-height: 150px;
        font-size: 14px;
    }

    .no-campaigns::before {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .error-campaigns::before {
        font-size: 20px;
        margin-bottom: 8px;
    }
}

/* Estilos para la sección Total Pagado a Kleepers */
.total-paid-section {
    margin: 20px 0 24px 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1.0s forwards;
}

.total-paid-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.total-paid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 100%
    );
    animation: shimmerPurple 3s ease-in-out infinite;
}

@keyframes shimmerPurple {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.total-paid-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.total-paid-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.total-paid-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.6), transparent 120deg);
    border-radius: 14px;
    animation: rotateBorderPurple 4s linear infinite;
    z-index: -1;
}

.total-paid-icon::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 11px;
    z-index: -1;
}

@keyframes rotateBorderPurple {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.total-paid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
    padding-left: 5px;
}

.total-paid-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 2px;
}

.total-paid-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.total-paid-amount.loading {
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
}

.total-paid-amount.loaded {
    animation: countUp 0.8s ease-out forwards;
}

@keyframes countUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para total paid */
@media (max-width: 480px) {
    .total-paid-section {
        margin: 16px 0 20px 0;
    }

    .total-paid-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .total-paid-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .total-paid-icon::before {
        border-radius: 12px;
    }

    .total-paid-icon::after {
        border-radius: 9px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }

    .total-paid-label {
        font-size: 12px;
    }

    .total-paid-amount {
        font-size: 20px;
    }

    .total-paid-amount.loading {
        font-size: 14px;
    }
}
