/* PulseGrid Pro — Licencia (estilo Jetplay adaptado) */
.pg-license-wrap {
    padding: 0;
}

.pg-license-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 20px 22px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(145deg, #e8f4fc 0%, #ffffff 50%, #fafbfc 100%);
    border: 1px solid #c3d9e8;
    box-shadow: 0 4px 18px rgba(52, 152, 219, 0.08);
}

@media (max-width: 900px) {
    .pg-license-hero {
        grid-template-columns: 1fr;
    }
}

.pg-license-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.pg-license-badge--ok {
    background: #d5f0dd;
    color: #1e4620;
    border: 1px solid #8fd39a;
}

.pg-license-badge--warn {
    background: #fff8e5;
    color: #6b4e00;
    border: 1px solid #e6c35c;
}

.pg-license-badge--off {
    background: #f0f0f1;
    color: #50575e;
    border: 1px solid #dcdcde;
}

.pg-license-hero-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #50575e;
    max-width: 520px;
}

.pg-license-meta {
    margin: 0;
    display: grid;
    gap: 10px 16px;
    font-size: 12px;
}

.pg-license-meta > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    border-bottom: 1px solid #e8eef4;
    padding-bottom: 8px;
}

.pg-license-meta > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pg-license-meta dt {
    margin: 0;
    font-weight: 600;
    color: #646970;
}

.pg-license-meta dd {
    margin: 0;
}

.pg-license-code {
    display: inline-block;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #dcdcde;
    font-size: 11px;
    word-break: break-word;
}

.pg-license-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .pg-license-grid {
        grid-template-columns: 1fr;
    }
}

.pg-license-card {
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 20px 20px 18px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pg-license-card--key {
    border-top: 3px solid #3498db;
}

.pg-license-card--details {
    border-top: 3px solid #8e44ad;
}

.pg-license-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

.pg-license-card-hint {
    margin: 0 0 14px;
    font-size: 12px;
    color: #646970;
    line-height: 1.45;
}

.pg-license-key-input {
    width: 100%;
    max-width: 100%;
    font-family: ui-monospace, Consolas, monospace;
    letter-spacing: 0.04em;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
}

.pg-license-key-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.pg-license-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.pg-license-actions .spinner {
    margin: 0;
    float: none;
}

.pg-license-actions .button-primary.pg-license-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    min-height: 40px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 600;
    background: #3498db;
    border: 1px solid #2980b9;
    color: #fff;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.18);
    text-shadow: none;
    line-height: 1;
}

.pg-license-actions .button-primary.pg-license-btn .pg-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #fff;
}

.pg-license-actions .button-primary.pg-license-btn:hover,
.pg-license-actions .button-primary.pg-license-btn:focus {
    background: #2980b9;
    border-color: #2471a3;
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.22);
    color: #fff;
}

.pg-license-btn.pg-license-btn--danger {
    color: #c0392b;
    border-color: #e74c3c;
    background: #fff;
    box-shadow: none;
    border-radius: 8px;
    min-height: 40px;
    padding: 0 18px;
}

.pg-license-btn.pg-license-btn--danger:hover,
.pg-license-btn.pg-license-btn--danger:focus {
    color: #fff;
    background: #e74c3c;
    border-color: #c0392b;
}

.pg-license-msg {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.pg-license-msg.is-error {
    color: #c0392b;
}

.pg-license-msg.is-success {
    color: #1e4620;
}

.pg-license-msg.is-info {
    color: #50575e;
}

.pg-license-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.pg-license-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid #eef1f4;
}

.pg-license-detail-list li span {
    color: #646970;
    flex-shrink: 0;
}

.pg-license-detail-list li strong {
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-word;
}

.pg-license-help {
    margin: 16px 0 0;
    font-size: 12px;
}

.pg-license-help a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.pg-license-help a:hover,
.pg-license-help a:focus {
    text-decoration: underline;
}

body.pg-license-modal-open {
    overflow: hidden;
}

.pg-license-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pg-license-modal[hidden] {
    display: none;
}

.pg-license-modal__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.pg-license-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    margin: 0;
    padding: 24px 24px 20px;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22);
    outline: none;
    animation: pg-license-modal-in 0.2s ease-out;
}

@keyframes pg-license-modal-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pg-license-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #e8f4fc;
    color: #3498db;
}

.pg-license-modal__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #2c3e50;
}

.pg-license-modal__body {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.55;
    color: #50575e;
}

.pg-license-modal__body p {
    margin: 0 0 10px;
}

.pg-license-modal__body p:last-child {
    margin-bottom: 0;
}

.pg-license-modal__emphasis {
    font-weight: 600;
    color: #2c3e50;
}

.pg-license-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f1;
    margin: 0 -24px;
    padding: 16px 24px 0;
}

.pg-license-modal__btn-confirm.button-primary {
    background: #3498db;
    border-color: #2980b9;
}

.pg-license-modal__btn-confirm.button-primary:hover,
.pg-license-modal__btn-confirm.button-primary:focus {
    background: #2980b9;
    border-color: #2471a3;
}

.pg-license-modal__btn-confirm.pg-license-modal__btn-confirm--danger {
    background: #e74c3c;
    border-color: #c0392b;
    color: #fff;
}

.pg-license-modal__btn-confirm.pg-license-modal__btn-confirm--danger:hover,
.pg-license-modal__btn-confirm.pg-license-modal__btn-confirm--danger:focus {
    background: #c0392b;
    border-color: #a93226;
    color: #fff;
}
