/* License Cards Widget */

.lc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    padding: 0.25rem;
}

.lc-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.lc-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lc-empty__title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.lc-empty__sub {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Card */

.lc-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.lc-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
}

/* Header */

.lc-card__header {
    background: linear-gradient(135deg, #314183 0%, #2255a8 100%);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.lc-card__header-circle-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.lc-card__header-circle-2 {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.lc-card__header-content {
    position: relative;
}

.lc-card__eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.4rem;
}

.lc-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.lc-card__subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.25rem;
}

/* Body */

.lc-card__body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-row__label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.lc-row__value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
}

.lc-row__value--green { color: #16a34a; }
.lc-row__value--red   { color: #dc2626; }

/* Status badge */

.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.lc-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.lc-badge--active {
    background: #f0fdf4;
    color: #166534;
}

.lc-badge--active .lc-badge__dot { background: #16a34a; }

.lc-badge--expired {
    background: #fef2f2;
    color: #991b1b;
}

.lc-badge--expired .lc-badge__dot { background: #dc2626; }

/* Reg code */

.lc-regcode {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.lc-regcode__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.lc-regcode__value {
    font-family: monospace;
    font-size: 0.78rem;
    color: #374151;
    word-break: break-all;
}

/* Time-limited / expired card variants */

.lc-card__header--timelimited {
    background: linear-gradient(135deg, #2f3bbd 0%, #0c6fbd 100%);
}

.lc-card__header--expired {
    background: linear-gradient(135deg, #c31447 0%, #dc2687 100%);
}

.lc-card--expired {
    opacity: 0.8;
}

.lc-badge--timelimited {
    background: #fffbeb;
    color: #92400e;
}

.lc-badge--timelimited .lc-badge__dot { background: #f59e0b; }

/* Footer */

.lc-card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Upgrade button */

.lc-btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.5;
}

.lc-btn-upgrade:hover { background: #e5e7eb; }
