.linkfiliate-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.linkfiliate-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.linkfiliate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.15);
}

.linkfiliate-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.linkfiliate-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.linkfiliate-card h4 {
    margin: 0 0 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.linkfiliate-card strong {
    display: inline;
    font-size: 32px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    margin-right: 8px;
}

.linkfiliate-card .total-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.linkfiliate-card span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    display: block;
}

.linkfiliate-popular {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.linkfiliate-popular h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.linkfiliate-popular table {
    width: 100%;
    border-collapse: collapse;
}

.linkfiliate-popular tr {
    transition: background-color 0.15s ease;
}

.linkfiliate-popular tr:hover {
    background-color: #f9fafb;
}

.linkfiliate-popular td {
    padding: 12px 8px;
    border-bottom: 1px solid #f3f4f6;
}

.linkfiliate-popular tr:last-child td {
    border-bottom: none;
}

.linkfiliate-popular td:first-child {
    padding-left: 0;
}

.linkfiliate-popular td:last-child {
    padding-right: 0;
}

.linkfiliate-popular a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.linkfiliate-popular a:hover {
    color: #764ba2;
}

.linkfiliate-popular .click-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.linkfiliate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.linkfiliate-footer .button-group {
    display: flex;
    gap: 10px;
    flex: 1;
}

.linkfiliate-footer .linkfiliate-footer-btn {
    flex: 1;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
}

.linkfiliate-footer .linkfiliate-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.linkfiliate-footer .linkfiliate-btn-primary:hover {
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.linkfiliate-footer .linkfiliate-btn-secondary {
    background: #667eea;
    border: 1px solid #e5e7eb;
    color: #f3f4f6;
}

.linkfiliate-footer .linkfiliate-btn-secondary:hover {
    border-color: #667eea;
    color: #f3f4f6;
}

.linkfiliate-refresh {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.linkfiliate-refresh::before {
    content: '🔄';
    font-size: 14px;
}

.linkfiliate-metrics {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.linkfiliate-metrics .metric {
    flex: 1;
}

.linkfiliate-metrics .metric strong {
    display: block;
    font-size: 30px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.linkfiliate-metrics .metric span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}