/* ================== 🔥 SCREEN-ACCURATE CLEAN DESIGN 🔥 ================== */

.premium-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    padding: 15px 0;
    width: 100%;
}

/* Card Core Structure matching your image */
.premium-lang-card {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-content); /* Light/Dark Mode auto adaptive */
    border: 1px solid var(--border);
    border-radius: 20px; /* Perfect smooth curved corners */
    padding: 24px 20px;
    text-decoration: none;
    box-shadow: var(--iphone-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

/* Hover State: Subtle lift and primary green border */
.premium-lang-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Pure Transparent Image Wrapper */
.brand-icon-wrapper {
    width: 55px;  /* Size adjusted for high visibility */
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
}

/* Responsive Image Scaling */
.brand-pure-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Precise Typography */
.brand-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

.brand-subtitle {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Watermarked Top-Right Rank Badge */
.brand-rank-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Mobile responsive fallback */
@media (max-width: 480px) {
    .premium-lang-grid { grid-template-columns: 1fr; }
}
/* Custom fill handling for the fresh transparent JS text vector */
.js-transparent-vector {
    color: #F7DF1E !important; /* Premium original gold text color */
    fill: currentColor;
    width: 90% !important; /* Perfect visual layout scaling */
    height: 90% !important;
}
/* Premium Text-Icon Styling for JavaScript */
.brand-text-icon {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 26px; /* Perfect matching scale with other logos */
    font-weight: 800; /* Extra bold luxury branding feel */
    color: #F7DF1E; /* Authentic JS Golden Hue */
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    user-select: none;
    text-shadow: 0 2px 10px rgba(247, 223, 30, 0.15); /* Micro subtle glow */
}

/* Smooth zoom on hover for text icon just like images */
.premium-lang-card:hover .brand-text-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}