/* ============================================================
   Digital Product License System Styles - Veyondtech Theme
   ============================================================ */

.vt-license-container {
    margin: 24px 0;
    padding: 24px;
    background: var(--color-bg-light, #f4f2ff);
    border-radius: var(--radius-md, 20px);
    border: 1.5px solid #e2ddf8;
    box-shadow: 0 4px 18px rgba(78, 43, 205, 0.04);
}

.vt-license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(78, 43, 205, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.vt-license-title {
    font-family: var(--font-primary, "BC-Alphapipe-Bold");
    font-size: 20px;
    color: var(--color-primary, #4e2bcd);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-license-title svg {
    color: var(--color-primary, #4e2bcd);
}

.vt-license-card {
    background: #ffffff;
    border-radius: var(--radius-sm, 12px);
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vt-license-card:last-child {
    margin-bottom: 0;
}

.vt-license-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.vt-license-product-name {
    font-family: var(--font-body, "NunitoSans");
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.vt-license-key-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0 14px 0;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.vt-license-key-value {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1e1b4b;
    word-break: break-all;
    user-select: all;
}

.vt-copy-license-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary, #4e2bcd);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--font-body, "NunitoSans");
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.vt-copy-license-btn:hover {
    background: #3b1fa3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(78, 43, 205, 0.25);
}

.vt-copy-license-btn.copied {
    background: #16a34a !important;
}

.vt-license-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-body, "NunitoSans");
    font-size: 13.5px;
    color: #64748b;
    flex-wrap: wrap;
}

.vt-license-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vt-license-meta-label {
    font-weight: 600;
    color: #475569;
}

/* Status Badges */
.vt-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vt-license-badge.status-active {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.vt-license-badge.status-expired {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.vt-license-badge.status-revoked,
.vt-license-badge.status-suspended {
    color: #e11d48;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

/* My Account Licenses Table */
.vt-my-licenses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: #ffffff;
    border-radius: var(--radius-sm, 12px);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.vt-my-licenses-table th {
    background: var(--color-bg-light, #f4f2ff);
    color: #1e1b4b;
    font-family: var(--font-primary, "BC-Alphapipe-Bold");
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1.5px solid #e2ddf8;
}

.vt-my-licenses-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-family: var(--font-body, "NunitoSans");
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.vt-my-licenses-table tr:last-child td {
    border-bottom: none;
}

.vt-my-licenses-table tr:hover td {
    background: #f8fafc;
}

.vt-table-license-key {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-weight: 700;
    color: #1e1b4b;
    font-size: 14px;
    letter-spacing: 0.8px;
}

/* Email License Block */
.vt-email-license-box {
    background-color: #f4f2ff;
    border: 1px solid #e2ddf8;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.vt-email-license-title {
    color: #4e2bcd;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px;
}

.vt-email-license-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.vt-email-license-key {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 15px;
    font-weight: bold;
    color: #1e1b4b;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 6px 10px;
    margin: 6px 0;
    display: inline-block;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .vt-license-container {
        padding: 18px 14px;
    }

    .vt-license-key-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vt-copy-license-btn {
        width: 100%;
        justify-content: center;
    }

    .vt-license-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .vt-my-licenses-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}