.seo-rank-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.seo-rank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.rank-card-header {
    text-align: center;
    padding: 20px 15px 15px;
    border-bottom: 1px solid #f0f0f0;
}
.rank-domain {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.rank-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.rank-card-body {
    padding: 15px 20px 20px;
}
.rank-table-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 5px;
}
.rank-table-header span {
    font-weight: 700;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}
.rank-row:last-child {
    border-bottom: none;
}
.rank-keyword {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.rank-position {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rank-up {
    color: #15803d;
    font-size: 12px;
}
.rank-position em {
    font-style: normal;
    color: #15803d;
    font-weight: 700;
    font-size: 13px;
}

.ref-logo-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .ref-logo-card:hover {
        border-color: #A249ED;
        box-shadow: 0 10px 40px rgba(162, 73, 237, 0.1);
        transform: translateY(-5px);
    }
    
    .ref-logo-card .logo-wrap img {
        filter: grayscale(100%);
        opacity: 0.8;
        transition: all 0.3s;
    }
    
    .ref-logo-card:hover .logo-wrap img {
        filter: grayscale(0%);
        opacity: 1;
    }

.testimonial-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(162,73,237,0.1) !important; border-color:#e0d0f5 !important; }
