/* RESET - A less aggressive reset to prevent theme interference */
.dcd-wrapper,
.dcd-wrapper * {
margin: 0;
padding: 0;
border: 0;    font-size: 100%;
font: inherit;
vertical-align: baseline;
list-style: none;
box-sizing: border-box;
}
/* Wrapper - Full Width Background */
.dcd-wrapper {
width: 100% !important;
background-color: var(--dcd-bg-color) !important;
padding: 40px 0 !important;
clear: both !important;
display: block !important;
}
.dcd-fullwidth {
width: 100vw !important;
position: relative !important;
left: 50% !important;
right: 50% !important;
margin-left: -50vw !important;
margin-right: -50vw !important;
}
/* Container - Centered Content */.dcd-container {
max-width: 1200px !important;
margin: 0 auto !important;
padding: 0 20px !important;
width: 100% !important;
}
/* --- KEY CHANGES START HERE --- /
/ Grid - Switched to CSS Grid for robust, centered layout (like your example) /
.dcd-grid {
display: grid !important;
/ This creates responsive columns that automatically wrap /
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
justify-items: center !important; / This centers the cards within their grid cell /
gap: 20px !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 auto !important;
}
/ --- KEY CHANGES END HERE --- */
/* Card - SMALL Fixed Size /
.dcd-card {
background: var(--dcd-card-bg) !important;
border-radius: var(--dcd-border-radius) !important;    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
transition: all 0.3s ease !important;
width: 180px !important; / Card has a fixed width /
height: 180px !important; / Card has a fixed height */
display: flex !important;
flex-direction: column !important;
overflow: hidden !important;
}
.dcd-card:hover {
transform: translateY(-3px) !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}
/* Card Link */
.dcd-card-link {
text-decoration: none !important;
color: inherit !important;
display: flex !important;
flex-direction: column !important;
width: 100% !important;
height: 100% !important;
}
/* Card Inner /
.dcd-card-inner {
padding: 12px 10px !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: space-between !important; / This now works correctly */
height: 100% !important;
text-align: center !important;
}
/* Logo */
.dcd-logo {
width: 35px !important;
height: 35px !important;
border-radius: 50% !important;
overflow: hidden !important;
background: #f5f5f5 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
flex-shrink: 0 !important;
margin: 0 auto 8px !important;
}
.dcd-logo img {    width: 100% !important;
height: 100% !important;    object-fit: cover !important;
display: block !important;
}
.dcd-logo-placeholder {
width: 35px !important;
height: 35px !important;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
border-radius: 50% !important;    display: flex !important;
align-items: center !important;
justify-content: center !important;
color: #fff !important;
font-size: 14px !important;
font-weight: 700 !important;
}
/* Domain Name */
.dcd-domain-name {
font-size: 13px !important;
font-weight: 700 !important;
color: var(--dcd-text-color) !important;
margin: 0 0 6px 0 !important;
line-height: 1.2 !important;
max-height: 32px !important;
overflow: hidden !important;
word-break: break-word !important;
text-overflow: ellipsis !important;
display: -webkit-box !important;
-webkit-line-clamp: 2 !important;
-webkit-box-orient: vertical !important;
}
/* Details */
.dcd-details {
width: 100% !important;
margin: 4px 0 !important;
flex-grow: 1 !important;
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
gap: 3px !important;
}
.dcd-price,
.dcd-evaluation {
font-size: 10px !important;
color: #666 !important;
line-height: 1.3 !important;
white-space: nowrap !important;
}
.dcd-label {
font-weight: 600 !important;
margin-right: 3px !important;
}
.dcd-value {
font-weight: 700 !important;
font-size: 11px !important;
}
.dcd-price .dcd-value {
color: var(--dcd-price-color) !important;
}
.dcd-evaluation .dcd-value {
color: var(--dcd-eval-color) !important;
}
/* Button */
.dcd-button {
background-color: var(--dcd-button-color) !important;
color: var(--dcd-button-text) !important;
padding: 6px 16px !important;
border-radius: 4px !important;
font-size: 10px !important;    font-weight: 600 !important;
transition: all 0.3s ease !important;
white-space: nowrap !important;
border: none !important;
display: inline-block !important;
}
.dcd-card:hover .dcd-button {
opacity: 0.9 !important;
transform: scale(1.05) !important;}
/* Responsive */
@media (max-width: 768px) {
.dcd-wrapper {
padding: 30px 0 !important;
}
.dcd-container {
    padding: 0 15px !important;
}

.dcd-grid {
    /* On smaller screens, make the columns a little smaller */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 15px !important;
}

.dcd-card {
    width: 160px !important;
    height: 160px !important;
}

.dcd-card-inner {
    padding: 10px 8px !important;
}

.dcd-logo,
.dcd-logo-placeholder {        width: 30px !important;
    height: 30px !important;
    margin-bottom: 6px !important;
}

.dcd-logo-placeholder {
    font-size: 12px !important;
}

.dcd-domain-name {
    font-size: 12px !important;
    margin-bottom: 5px !important;
}

.dcd-price,
.dcd-evaluation {
    font-size: 9px !important;
}

.dcd-value {
    font-size: 10px !important;
}

.dcd-button {
    padding: 5px 12px !important;
    font-size: 9px !important;
}

}