.sgp-license-tools {
    max-width: 480px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.sgp-lookup-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.sgp-lookup-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sgp-lookup-form input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e0;
}

.sgp-button-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 3px;
}

.sgp-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid;
}

.sgp-alert-success {
    border-color: #16a34a;
    background: #dcfce7;
}

.sgp-alert-warning {
    border-color: #d97706;
    background: #fef3c7;
}

.sgp-alert-error {
    border-color: #b91c1c;
    background: #fee2e2;
}

.sgp-alert-info {
    border-color: #2563eb;
    background: #dbeafe;
}

.sgp-result-table {
    margin-top: 1rem;
    overflow-x: auto;
}

.sgp-result-table table {
    width: 100%;
    border-collapse: collapse;
}

.sgp-result-table th,
.sgp-result-table td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem;
    text-align: left;
    font-size: 14px;
}

.sgp-result-table th {
    background: #f8fafc;
    min-width: 160px;
}

.sgp-account-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.sgp-account-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.sgp-account-table table {
    width: 100%;
    border-collapse: collapse;
}

.sgp-account-table th,
.sgp-account-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
}

.sgp-account-table th {
    background: #f8fafc;
    font-weight: 600;
}

.sgp-account-note {
    margin-top: 0.75rem;
    color: #475569;
    font-size: 13px;
}

.sgp-license-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.sgp-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.sgp-status-active,
.sgp-status-renewed,
.sgp-status-activated {
    background: #e8f5e9;
    color: #1f9d55;
}

.sgp-status-expired {
    background: #fef2f2;
    color: #b91c1c;
}

.sgp-status-suspended {
    background: #fff7ed;
    color: #b45309;
}

.sgp-status-deleted {
    background: #f3f4f6;
    color: #374151;
}

.sgp-renew-button {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.sgp-renewal-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sgp-renewal-modal__content {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
    position: relative;
}

.sgp-renewal-modal__close {
    background: transparent;
    border: none;
    font-size: 22px;
    position: absolute;
    right: 18px;
    top: 12px;
    cursor: pointer;
}

.sgp-renewal-modal__options {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sgp-renewal-option {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    .sgp-license-tools {
        padding: 1rem;
    }

    .sgp-result-table th,
    .sgp-result-table td {
        font-size: 13px;
    }
}
