/* Website Services — aligned with Fund Wallet page styling */

.website-services-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px 0 32px;
}

.website-services-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.website-services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.website-services-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.website-services-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.website-services-subtitle {
    margin: 20px 0 0;
    color: #64748b;
    font-size: 15px;
    white-space: nowrap;
}

.website-services-panel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.website-services-search {
    margin-bottom: 24px;
}

.website-services-search label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.website-services-search .form-control {
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 14px 16px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.website-services-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.domain-cards {
    min-height: 42vh;
}

/* Domain service cards */
.service-domain-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.service-domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.service-domain-card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.service-domain-card-title {
    min-width: 0;
}

.service-domain-index {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.service-domain-card-title h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    word-break: break-word;
}

.service-plan-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.service-plan-badge span {
    color: #fbbf24;
    font-weight: 700;
}

.service-domain-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.service-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.service-meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    flex-shrink: 0;
}

.service-meta-label::after {
    content: ':';
}

.service-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.service-status-badge--active {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.service-status-badge--inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.service-expiry {
    font-weight: 700;
    font-size: 14px;
}

.service-expiry--ok {
    color: #15803d;
}

.service-expiry--missing {
    color: #b91c1c;
}

.service-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.service-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-action-btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.service-action-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    color: #ffffff !important;
}

.service-action-btn--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.service-action-btn--warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
    color: #ffffff;
}

.service-subscription-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.service-subscription-expired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.empty-state-container {
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    max-width: 520px;
    margin: 0 auto;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    text-align: center;
}

.empty-state-container h4 {
    color: #475569;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state-container p {
    color: #64748b;
    margin-bottom: 0;
}

.empty-state-container .btn {
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .website-services-header,
    .website-services-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .website-services-header h3 {
        font-size: 24px;
    }

    .website-services-subtitle {
        white-space: normal;
    }

    .service-domain-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .service-plan-badge {
        align-self: flex-start;
    }
}
