/* Domain Checker Styles - Clean & Modern */
.domain-checker-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 40px 20px;
    background: linear-gradient(180deg, #f8f9fc 0%, #e9ecef 100%);
    min-height: 600px;
}

.domain-checker-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checker-header {
    text-align: center;
    color: #2d3748;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

.checker-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a202c;
}

.checker-header p {
    font-size: 17px;
    color: #64748b;
    margin: 0;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.domain-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    background: #f8fafc;
}

.domain-input:focus {
    border-color: #5b6eff;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 110, 255, 0.1);
}

.check-btn {
    padding: 16px 36px;
    background: #5b6eff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.check-btn:hover {
    background: #4854e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 110, 255, 0.3);
}

.check-btn:active {
    transform: translateY(0);
}

.check-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.search-hint {
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results-container {
    animation: fadeInUp 0.6s ease;
}

/* Featured Domains - 2 ô to */
.featured-domains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.featured-domain-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.featured-domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.featured-domain-card .domain-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    word-break: break-word;
}

.featured-domain-card .domain-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
}

.featured-domain-card .status-registered {
    color: #dc2626;
}

.featured-domain-card .status-available {
    color: #16a34a;
}

/* Other Domains - 9 ô nhỏ (3x3) */
.other-domains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.domain-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.domain-card .domain-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
    word-break: break-word;
}

.domain-card .domain-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.domain-card .status-registered {
    color: #dc2626;
}

.domain-card .status-available {
    color: #16a34a;
}

/* Buttons */
.domain-btn {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-view-info {
    background: #fbbf24;
    color: #78350f;
}

.btn-view-info:hover {
    background: #f59e0b;
    transform: scale(1.02);
}

.btn-contact {
    background: #5b6eff;
    color: white;
}

.btn-contact:hover {
    background: #4854e0;
    transform: scale(1.02);
    color: white;
}

/* Whois Modal */
.whois-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.whois-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whois-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.whois-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #5b6eff;
    color: white;
}

.whois-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255,255,255,0.3);
}

.whois-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.whois-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.whois-loading p {
    margin-top: 15px;
    font-size: 15px;
}

/* Whois Info Table */
.whois-info-table {
    width: 100%;
}

.whois-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.whois-row:last-child {
    border-bottom: none;
}

.whois-label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.whois-value {
    color: #1e293b;
    font-size: 14px;
    word-break: break-word;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .other-domains {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .checker-header h2 {
        font-size: 28px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .check-btn {
        width: 100%;
    }
    
    .featured-domains {
        grid-template-columns: 1fr;
    }
    
    .other-domains {
        grid-template-columns: 1fr;
    }
    
    .whois-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .whois-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .whois-label {
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .featured-domain-card .domain-name {
        font-size: 22px;
    }
    
    .domain-card .domain-name {
        font-size: 16px;
    }
}