
/**
 * WHMCS 9.0.1 Elementor Widget Styles
 * Specialized for Hosting, Domains, and Client Services
 */
.whmcs-widget-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    margin: 15px 0;
}
.whmcs-widget-wrapper * {
    box-sizing: border-box;
}

/* Domain Search Widget */
.whmcs-domain-widget {
    background: #1e293b;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}
.whmcs-domain-header h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.whmcs-domain-header p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}
.whmcs-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.whmcs-domain-input, .whmcs-kb-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}
.whmcs-domain-input:focus, .whmcs-kb-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.whmcs-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.whmcs-theme-blue .whmcs-btn { background: #2563eb; }
.whmcs-theme-blue .whmcs-btn:hover { background: #1d4ed8; }
.whmcs-theme-purple .whmcs-btn { background: #7c3aed; }
.whmcs-theme-purple .whmcs-btn:hover { background: #6d28d9; }
.whmcs-theme-emerald .whmcs-btn { background: #10b981; }
.whmcs-theme-emerald .whmcs-btn:hover { background: #059669; }
.whmcs-theme-amber .whmcs-btn { background: #f59e0b; }
.whmcs-theme-amber .whmcs-btn:hover { background: #d97706; }
.whmcs-theme-rose .whmcs-btn { background: #e11d48; }
.whmcs-theme-rose .whmcs-btn:hover { background: #be123c; }

.whmcs-tlds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.whmcs-tld-badge {
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pricing Table Widget */
.whmcs-pricing-card {
    background: #1e293b;
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s;
}
.whmcs-pricing-card:hover {
    transform: translateY(-5px);
    border-color: #475569;
}
.whmcs-plan-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
}
.whmcs-theme-purple .whmcs-plan-badge { background: #7c3aed; }
.whmcs-theme-emerald .whmcs-plan-badge { background: #10b981; }
.whmcs-theme-amber .whmcs-plan-badge { background: #f59e0b; }
.whmcs-theme-rose .whmcs-plan-badge { background: #e11d48; }

.whmcs-plan-header h4 {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}
.whmcs-plan-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 25px 0;
}
.whmcs-plan-price {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #334155;
}
.whmcs-price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f8fafc;
}
.whmcs-price-currency {
    font-size: 1rem;
    color: #94a3b8;
    margin-right: 5px;
}
.whmcs-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.whmcs-plan-features li {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.whmcs-plan-features li:before {
    content: "✓";
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
}
.whmcs-plan-cta .whmcs-buy-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.whmcs-plan-footer {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* KB Widget */
.whmcs-kb-widget {
    background: #1e293b;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #334155;
}
.whmcs-kb-header h3 {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.whmcs-kb-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}
.whmcs-kb-quicklinks {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.whmcs-kb-quicklinks a {
    color: #3b82f6;
    text-decoration: none;
}
.whmcs-kb-quicklinks a:hover { text-decoration: underline; }

/* System Status Widget */
.whmcs-status-widget {
    background: #1e293b;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #334155;
}
.whmcs-status-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.whmcs-status-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}
.whmcs-status-heading h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.whmcs-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.whmcs-status-item {
    background: #0f172a;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.whmcs-status-label {
    color: #94a3b8;
    font-size: 0.85rem;
}
.whmcs-status-value {
    font-size: 1.1rem;
    font-weight: 700;
}
.whmcs-val-success {
    color: #10b981;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 640px) {
    .whmcs-input-group { flex-direction: column; }
    .whmcs-btn { width: 100%; }
}
