:root {
    --hearth-primary: #0d47a1;
    --hearth-primary-dark: #0a3a82;
    --hearth-accent: #667eea;
    --hearth-accent-end: #764ba2;
    --hearth-dark: #0f172a;
    --hearth-bg: #f6f8fb;
    --hearth-muted: #6b7280;
    --hearth-success: #10b981;
    --hearth-warning: #f59e0b;
    --hearth-danger: #ef4444;
    --hearth-radius: 12px;
    --hearth-radius-lg: 16px;
    --hearth-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --hearth-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --hearth-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout */
body.hearth-app {
    font-family: 'Inter', sans-serif;
    background: var(--hearth-bg);
}

.hearth-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.hearth-navbar .nav-link {
    font-weight: 500;
    transition: color var(--hearth-transition);
}

.hearth-navbar .nav-link.active {
    color: var(--hearth-primary) !important;
    font-weight: 600;
}

.hearth-hero {
    background: linear-gradient(135deg, var(--hearth-primary) 0%, var(--hearth-dark) 100%);
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.hearth-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hearth-hero-compact {
    background: linear-gradient(135deg, var(--hearth-primary) 0%, var(--hearth-dark) 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--hearth-radius);
}

.hearth-card {
    border-radius: var(--hearth-radius);
    border: none;
    box-shadow: var(--hearth-shadow);
    transition: transform var(--hearth-transition), box-shadow var(--hearth-transition);
}

.hearth-card:hover {
    box-shadow: var(--hearth-shadow-lg);
}

.hearth-kpi {
    border-radius: var(--hearth-radius);
    border: none;
    box-shadow: var(--hearth-shadow);
    transition: transform var(--hearth-transition);
    overflow: hidden;
}

.hearth-kpi:hover {
    transform: translateY(-4px);
}

.hearth-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--hearth-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hearth-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.hearth-tabs .nav-link {
    border: none;
    color: var(--hearth-muted);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--hearth-radius) var(--hearth-radius) 0 0;
    transition: all var(--hearth-transition);
}

.hearth-tabs .nav-link.active {
    color: var(--hearth-primary);
    background: #fff;
    border-bottom: 3px solid var(--hearth-primary);
    font-weight: 600;
}

.hearth-tabs .nav-link:hover:not(.active) {
    color: var(--hearth-primary);
    background: rgba(13, 71, 161, 0.05);
}

.hearth-badge-pulse {
    animation: hearth-pulse 2s infinite;
}

@keyframes hearth-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hearth-table-row {
    transition: background var(--hearth-transition);
}

.hearth-table-row:hover {
    background: rgba(13, 71, 161, 0.04) !important;
}

.hearth-btn-primary {
    background: linear-gradient(135deg, var(--hearth-primary) 0%, var(--hearth-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--hearth-transition);
}

.hearth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
    color: #fff;
}

.hearth-muted { color: var(--hearth-muted); }

.hearth-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

/* Licenses component */
.hearth-stats-card {
    border-radius: var(--hearth-radius-lg);
    transition: transform var(--hearth-transition), box-shadow var(--hearth-transition);
}

.hearth-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hearth-shadow-lg);
}

.hearth-license-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
}

.hearth-empty-state {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
}

/* Admin panel */
.hearth-admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hearth-accent) 0%, var(--hearth-accent-end) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.hearth-admin-card {
    border-left: 4px solid var(--hearth-primary);
}

/* Login page */
.hearth-login-body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d47a1 100%);
    overflow: hidden;
    position: relative;
}

.hearth-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: hearth-float 8s ease-in-out infinite;
}

.hearth-login-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--hearth-accent);
    top: -100px;
    left: -100px;
}

.hearth-login-orb-2 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}

.hearth-login-orb-3 {
    width: 200px;
    height: 200px;
    background: #38bdf8;
    top: 50%;
    left: 50%;
    animation-delay: -2s;
}

@keyframes hearth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hearth-login-container {
    max-width: 440px;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.hearth-login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: hearth-slide-up 0.6s ease-out;
}

@keyframes hearth-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hearth-login-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.hearth-login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--hearth-primary) 0%, var(--hearth-accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.3);
}

.hearth-login-input {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all var(--hearth-transition);
}

.hearth-login-input:focus {
    border-color: var(--hearth-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.hearth-login-input-group .input-group-text {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-right: none;
    color: var(--hearth-primary);
}

.hearth-login-input-group .form-control {
    border-left: none;
}

.hearth-login-input-group:focus-within .input-group-text,
.hearth-login-input-group:focus-within .form-control {
    border-color: var(--hearth-primary);
}

.hearth-login-btn {
    background: linear-gradient(135deg, var(--hearth-primary) 0%, var(--hearth-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--hearth-transition);
    position: relative;
    overflow: hidden;
}

.hearth-login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.35);
}

.hearth-login-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

.hearth-login-btn .spinner-border {
    width: 1.25rem;
    height: 1.25rem;
}

.hearth-password-toggle {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-left: none;
    background: #f9fafb;
    color: var(--hearth-muted);
    transition: color var(--hearth-transition);
}

.hearth-password-toggle:hover {
    color: var(--hearth-primary);
}

.hearth-shake {
    animation: hearth-shake 0.5s ease-in-out;
}

@keyframes hearth-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.hearth-search-kbd {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .hearth-hero { padding: 1.5rem 0; }
    .hearth-kpi-value { font-size: 1.4rem; }
}

/* ============================================================
   Licenses Command Center — corporate redesign
   ============================================================ */

.lic-command-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.lic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.lic-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: opacity 0.2s;
}

.lic-breadcrumb a:hover { opacity: 1; color: #fff; }
.lic-breadcrumb i { font-size: 0.6rem; opacity: 0.5; }

.lic-command-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lic-command-title__icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
}

.lic-command-subtitle {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.lic-command-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lic-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.lic-action-btn--ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.lic-action-btn--ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-1px);
}

.lic-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lic-live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: lic-pulse-dot 2s infinite;
}

@keyframes lic-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Metrics grid */
.lic-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lic-metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lic-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s;
}

.lic-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15,23,42,0.1);
    border-color: #cbd5e1;
}

.lic-metric-card:hover::before { opacity: 1; }

.lic-metric-card--alert {
    border-color: #fcd34d;
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

.lic-metric-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.lic-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lic-metric-icon--blue { background: #dbeafe; color: #1d4ed8; }
.lic-metric-icon--green { background: #d1fae5; color: #059669; }
.lic-metric-icon--red { background: #fee2e2; color: #dc2626; }
.lic-metric-icon--amber { background: #fef3c7; color: #d97706; }

.lic-metric-trend {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lic-metric-trend--up { background: #d1fae5; color: #059669; }
.lic-metric-trend--down { background: #fee2e2; color: #dc2626; }
.lic-metric-trend--warn { background: #fef3c7; color: #d97706; }
.lic-metric-trend--neutral { background: #f1f5f9; color: #64748b; }

.lic-metric-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.lic-metric-value--green { color: #059669; }
.lic-metric-value--red { color: #dc2626; }
.lic-metric-value--amber { color: #d97706; }

.lic-metric-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.35rem;
    font-weight: 500;
}

.lic-metric-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.lic-metric-bar__fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 1s ease-out;
}

.lic-metric-bar__fill--green { background: #10b981; }
.lic-metric-bar__fill--red { background: #ef4444; }
.lic-metric-bar__fill--amber { background: #f59e0b; }

/* Workspace */
.lic-workspace {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    overflow: hidden;
}

.lic-workspace__tabs {
    display: flex;
    gap: 0;
    padding: 0 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.lic-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: none;
    background: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.lic-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1e40af;
    transform: scaleX(0);
    transition: transform 0.25s;
}

.lic-tab:hover { color: #1e40af; }
.lic-tab.active { color: #1e40af; font-weight: 600; }
.lic-tab.active::after { transform: scaleX(1); }

.lic-tab-badge {
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    animation: lic-pulse-dot 2s infinite;
}

.lic-workspace__body { padding: 1.5rem; }

/* Toolbar */
.lic-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.lic-toolbar__search {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.lic-toolbar__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.lic-toolbar__input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.2s;
}

.lic-toolbar__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.lic-toolbar__clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.lic-toolbar__clear:hover { color: #64748b; background: #f1f5f9; }

.lic-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lic-filter-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.lic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.lic-chip i { font-size: 0.45rem; }
.lic-chip--green i { color: #10b981; }
.lic-chip--gray i { color: #94a3b8; }
.lic-chip--red i { color: #ef4444; }

.lic-chip:hover { border-color: #cbd5e1; background: #f8fafc; }

.lic-chip--active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

.lic-chip--active.lic-chip--green,
.lic-chip--active.lic-chip--gray,
.lic-chip--active.lic-chip--red { color: #fff; }
.lic-chip--active i { color: rgba(255,255,255,0.7) !important; }

/* Buttons */
.lic-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lic-btn--primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30,64,175,0.25);
}

.lic-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30,64,175,0.35);
    color: #fff;
}

.lic-btn--ghost {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.lic-btn--ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

.lic-btn--success { background: #059669; color: #fff; }
.lic-btn--success:hover { background: #047857; color: #fff; }

.lic-btn--warn { background: #d97706; color: #fff; }
.lic-btn--warn:hover { background: #b45309; color: #fff; }

.lic-btn--danger { background: #dc2626; color: #fff; }
.lic-btn--danger:hover { background: #b91c1c; color: #fff; }

.lic-btn--sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.lic-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Bulk bar */
.lic-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: lic-slide-down 0.3s ease-out;
}

@keyframes lic-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lic-bulk-bar__info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #1e40af;
}

.lic-bulk-bar__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Table */
.lic-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lic-table-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.lic-table-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.lic-table-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0.15rem 0 0;
}

.lic-table-meta__filtered { color: #3b82f6; font-weight: 500; }

.lic-table-scroll { overflow-x: auto; }

.lic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.lic-table thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.lic-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.lic-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.lic-table__row {
    transition: background 0.15s;
}

.lic-table__row:hover {
    background: #f8fafc;
}

.lic-table__row--inactive { opacity: 0.65; }
.lic-table__row--pending { background: #fffbeb; }
.lic-table__row--pending:hover { background: #fef3c7; }

.lic-table__check { width: 48px; }
.lic-table__actions { width: 100px; text-align: right; }

/* Checkbox */
.lic-checkbox {
    display: inline-flex;
    cursor: pointer;
    position: relative;
}

.lic-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lic-checkbox__box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lic-checkbox input:checked + .lic-checkbox__box {
    background: #1e40af;
    border-color: #1e40af;
}

.lic-checkbox input:checked + .lic-checkbox__box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: #fff;
}

/* Key cell */
.lic-key-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lic-key-cell__icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.lic-key-cell__text code {
    font-size: 0.8rem;
    color: #334155;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.lic-domain {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.lic-domain:hover { color: #1d4ed8; text-decoration: underline; }
.lic-domain i { font-size: 0.75rem; opacity: 0.7; }

.lic-na { color: #cbd5e1; }
.lic-code { font-size: 0.8rem; color: #475569; background: #f8fafc; padding: 0.15rem 0.4rem; border-radius: 4px; }
.lic-ip { font-family: monospace; font-size: 0.8rem; color: #64748b; }
.lic-date { display: block; font-weight: 500; color: #334155; }
.lic-time { font-size: 0.75rem; color: #94a3b8; }

/* Status pills */
.lic-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.lic-status-pill i { font-size: 0.4rem; }
.lic-status-pill--success { background: #d1fae5; color: #047857; }
.lic-status-pill--danger { background: #fee2e2; color: #b91c1c; }
.lic-status-pill--warn { background: #fef3c7; color: #b45309; }
.lic-status-pill--info { background: #e0f2fe; color: #0369a1; }
.lic-status-pill--sm { padding: 0.2rem 0.4rem; }

.lic-expiry { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.lic-expiry__date { font-weight: 500; color: #334155; }

/* Toggle */
.lic-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lic-toggle__track {
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    position: relative;
    transition: background 0.2s;
}

.lic-toggle--on .lic-toggle__track { background: #10b981; }

.lic-toggle__thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lic-toggle--on .lic-toggle__thumb { transform: translateX(18px); }

.lic-toggle__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.lic-toggle--on .lic-toggle__label { color: #059669; }

/* Row actions */
.lic-row-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.lic-table__row:hover .lic-row-actions { opacity: 1; }

.lic-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.lic-icon-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.lic-icon-btn--danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.lic-icon-btn--success:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

/* Empty state */
.lic-empty {
    text-align: center;
    padding: 3rem 2rem;
}

.lic-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #94a3b8;
}

.lic-empty h4 { color: #334155; margin-bottom: 0.5rem; }
.lic-empty p { color: #94a3b8; margin-bottom: 1.25rem; font-size: 0.9rem; }

/* Pagination */
.lic-pagination {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.lic-pagination nav {
    width: 100%;
}

.lic-pagination .pagination {
    margin: 0;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.lic-pagination .page-link,
.lic-pagination button.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
    color: #1e293b !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    -webkit-text-fill-color: #1e293b;
}

.lic-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.lic-pagination .page-item:not(.active):not(.disabled) button.page-link:hover {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
    -webkit-text-fill-color: #1e40af;
}

.lic-pagination .page-item.active .page-link {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.lic-pagination .page-item.disabled .page-link,
.lic-pagination .page-item.disabled button.page-link {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

.lic-pagination .small.text-muted {
    color: #64748b !important;
    font-size: 0.85rem;
    margin: 0;
}

.lic-pagination .small.text-muted .fw-semibold {
    color: #0f172a;
    font-weight: 700;
}

.lic-pagination svg {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

/* Toast */
.lic-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: lic-slide-down 0.3s ease-out;
}

.lic-toast--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.lic-toast__icon { font-size: 1.1rem; }
.lic-toast__body { flex: 1; font-weight: 500; font-size: 0.9rem; }

.lic-toast__close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.25rem;
}

.lic-toast__close:hover { opacity: 1; }

/* Modal */
.lic-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.lic-modal__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e40af, #3b82f6);
}

.lic-modal__header {
    padding: 1.5rem 1.5rem 0.5rem 1.75rem;
    border: none;
}

.lic-modal__header .modal-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #0f172a;
}

.lic-modal__subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.25rem 0 0;
}

.lic-modal__body { padding: 1rem 1.5rem 1.5rem 1.75rem; }

.lic-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

/* Form */
.lic-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.lic-form-field--switch {
    grid-column: 1 / -1;
}

.lic-form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.lic-form-label i { color: #94a3b8; font-size: 0.8rem; }

.lic-form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #fff;
}

.lic-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.lic-form-input.is-invalid { border-color: #ef4444; }

.lic-form-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.lic-form-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

/* Switch */
.lic-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.lic-switch input { display: none; }

.lic-switch__slider {
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.lic-switch__slider::after {
    content: '';
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lic-switch input:checked + .lic-switch__slider { background: #10b981; }
.lic-switch input:checked + .lic-switch__slider::after { transform: translateX(22px); }

.lic-switch__text strong { display: block; font-size: 0.9rem; color: #334155; }
.lic-switch__text small { color: #94a3b8; font-size: 0.8rem; }

/* Logs layout */
.lic-logs-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}

.lic-logs-sidebar {
    position: sticky;
    top: 1rem;
}

.lic-toolbar--logs {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem 1rem;
}

.lic-sys-logs {
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.lic-sys-logs__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    list-style: none;
    user-select: none;
}

.lic-sys-logs__toggle::-webkit-details-marker { display: none; }

.lic-sys-logs__badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #1d4ed8;
}

.lic-sys-logs__body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.lic-sys-logs__section {
    margin-top: 1.25rem;
}

.lic-sys-logs__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lic-sys-logs__title i { color: #64748b; font-size: 0.85rem; }

.lic-sys-logs__error {
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-word;
}

.lic-sys-logs__pre {
    max-height: 420px;
    overflow: auto;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.hearth-dt_wrapper .dataTables_filter input,
.hearth-dt_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

.hearth-dt_wrapper .dataTables_info,
.hearth-dt_wrapper .dataTables_length label,
.hearth-dt_wrapper .dataTables_filter label {
    font-size: 0.85rem;
    color: #64748b;
}

.hearth-dt_wrapper .page-link {
    font-size: 0.85rem;
    color: #1e293b !important;
    background-color: #fff !important;
    border-color: #cbd5e1 !important;
    font-weight: 600;
}

.hearth-dt_wrapper .page-item.active .page-link {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #fff !important;
}

.hearth-dt_wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

/* Activity panel */
.lic-activity {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.lic-activity__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}

.lic-activity__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lic-activity__title i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.lic-activity__title h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.lic-activity__title small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.lic-activity__section {
    margin-bottom: 1.25rem;
}

.lic-activity__section h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lic-activity__list { list-style: none; padding: 0; margin: 0; }

.lic-activity__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 0.5rem;
}

.lic-activity__item:last-child { border-bottom: none; }

.lic-activity__item-main strong {
    display: block;
    font-size: 0.85rem;
    color: #334155;
}

.lic-activity__item-main span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.lic-activity__item-main p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.15rem 0 0;
}

.lic-activity__item--failure { align-items: flex-start; }

.lic-activity__empty {
    font-size: 0.8rem;
    color: #94a3b8;
    padding: 0.5rem 0;
}

/* Token alert */
.lic-token-alert {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.lic-token-alert__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.lic-token-alert__header i { font-size: 1.25rem; color: #059669; }
.lic-token-alert__jti { display: block; font-size: 0.8rem; color: #64748b; font-weight: 400; }
.lic-token-alert__hint { font-size: 0.85rem; color: #475569; margin-bottom: 0.75rem; }
.lic-token-alert__copy { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }

/* Blocked panel */
.lic-blocked-panel {
    margin-top: 1.25rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lic-blocked-panel__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
}

.lic-blocked-panel__header i { color: #dc2626; }
.lic-blocked-panel__header h4 { margin: 0; font-size: 0.9rem; font-weight: 600; color: #991b1b; }

.lic-blocked-list { list-style: none; padding: 0; margin: 0; }

.lic-blocked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.lic-blocked-item:last-child { border-bottom: none; }

.lic-blocked-item__info strong { display: block; font-size: 0.85rem; color: #334155; }
.lic-blocked-item__info span { font-size: 0.8rem; color: #64748b; }
.lic-blocked-item__info small { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }

/* Responsive */
@media (max-width: 1200px) {
    .lic-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .lic-logs-layout { grid-template-columns: 1fr; }
    .lic-logs-sidebar { position: static; }
}

@media (max-width: 768px) {
    .lic-metrics-grid { grid-template-columns: 1fr; }
    .lic-command-title { font-size: 1.35rem; }
    .lic-toolbar { flex-direction: column; align-items: stretch; }
    .lic-form-grid { grid-template-columns: 1fr; }
    .lic-workspace__tabs { overflow-x: auto; }
    .lic-tab { white-space: nowrap; }
    .lic-bulk-bar { flex-direction: column; align-items: flex-start; }
    .lic-devkit__grid { grid-template-columns: 1fr; }
    .lic-health-ring { display: none; }
}

/* --- Business+ interactive layer --- */

.lic-health-ring {
    position: relative;
    width: 48px;
    height: 48px;
}

.lic-health-ring__svg {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.lic-health-ring__bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 3;
}

.lic-health-ring__fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}

.lic-health-ring__fill--good { stroke: #34d399; }
.lic-health-ring__fill--warn { stroke: #fbbf24; }
.lic-health-ring__fill--bad { stroke: #f87171; }

.lic-health-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.lic-alert-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lic-alert-item {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    background: #fff;
}

.lic-alert-item--warn {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
    color: #92400e;
}

.lic-alert-item--pending {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    color: #1e40af;
}

.lic-alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}

.lic-alert-item__arrow {
    margin-left: auto;
    opacity: 0.5;
    transition: transform 0.2s;
}

.lic-alert-item:hover .lic-alert-item__arrow {
    transform: translateX(4px);
    opacity: 1;
}

.lic-metric-card--clickable {
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}

.lic-metric-hint {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.lic-metric-card--clickable:hover .lic-metric-hint { opacity: 1; }

.lic-devkit {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
}

.lic-devkit--page .lic-devkit__body {
    padding: 1.25rem;
}

.lic-devkit__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
    user-select: none;
}

.lic-devkit__toggle::-webkit-details-marker { display: none; }

.lic-devkit__badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 6px;
    color: #93c5fd;
}

.lic-devkit__chevron {
    margin-left: auto;
    transition: transform 0.25s;
    font-size: 0.75rem;
    opacity: 0.6;
}

.lic-devkit[open] .lic-devkit__chevron { transform: rotate(180deg); }

.lic-devkit__body {
    padding: 0 1.25rem 1.25rem;
    animation: lic-slide-down 0.3s ease-out;
}

.lic-devkit__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.lic-devkit__card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.15rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.lic-devkit__card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.lic-devkit__card-head {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.lic-devkit__card-head i {
    color: #60a5fa;
    font-size: 0.9rem;
}

.lic-devkit__code {
    display: block;
    font-size: 0.75rem;
    color: #e2e8f0;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.lic-devkit__copy {
    background: rgba(59,130,246,0.18);
    border: 1px solid rgba(59,130,246,0.35);
    color: #bfdbfe;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.lic-devkit__copy:hover {
    background: rgba(59,130,246,0.35);
    color: #fff;
    border-color: rgba(96, 165, 250, 0.6);
}

.lic-devkit__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.lic-devkit__shortcuts kbd {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
}

.lic-devkit__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.lic-devkit__link {
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}

.lic-devkit__link:hover { color: #bfdbfe; }

.lic-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.3rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.lic-btn--primary .lic-kbd {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.lic-chip--amber i { color: #f59e0b; }
.lic-chip--amber.lic-chip--active i { color: rgba(255,255,255,0.7) !important; }

.lic-sort-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}

.lic-sort-btn:hover { color: #1e40af; }
.lic-sort-btn--active { color: #1e40af; }
.lic-sort-btn i { font-size: 0.65rem; opacity: 0.6; }
.lic-sort-btn--active i { opacity: 1; }

.lic-table-wrap { position: relative; }
.lic-table-wrap--loading .lic-table-loading { opacity: 1; pointer-events: none; }
.lic-table-wrap--loading .lic-table-scroll { opacity: 0.5; }

.lic-table-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.7);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 500;
}

.lic-table-header__stats {
    display: flex;
    gap: 1rem;
}

.lic-mini-stat {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lic-mini-stat__dot--green { color: #10b981; font-size: 0.4rem; }
.lic-mini-stat__dot--red { color: #ef4444; font-size: 0.4rem; }

.lic-table-meta__warn { color: #d97706; font-weight: 500; }

.lic-key-cell__text {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lic-copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.15s;
}

.lic-table__row:hover .lic-copy-btn { opacity: 1; }
.lic-copy-btn:hover { color: #1e40af; background: #eff6ff; }
.lic-copy-btn--done { color: #059669 !important; opacity: 1 !important; }

.lic-expiry__bar {
    width: 60px;
    height: 3px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.lic-expiry__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

.lic-input-group {
    display: flex;
    gap: 0.5rem;
}

.lic-input-group .lic-form-input { flex: 1; }

.lic-toolbar--loading { opacity: 0.7; pointer-events: none; }

.lic-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}

.lic-health-badge--good { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.4); }
.lic-health-badge--warn { background: rgba(245,158,11,0.2); border-color: rgba(245,158,11,0.4); }
.lic-health-badge--bad { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }
.lic-health-badge--sm { font-size: 0.75rem; padding: 0.2rem 0.5rem; }

.lic-health-history {
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.lic-health-history--bottom {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.lic-health-history__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    list-style: none;
}

.lic-health-history__toggle::-webkit-details-marker { display: none; }
.lic-health-history__current { margin-left: auto; font-size: 0.8rem; color: #64748b; font-weight: 500; }

.lic-table--compact td, .lic-table--compact th { padding: 0.5rem 0.75rem; }

.lic-devkit .lic-form-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

.lic-devkit .lic-form-input::placeholder {
    color: #64748b;
}

.lic-devkit .lic-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.lic-api-tester__row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.lic-api-tester__row .lic-form-input { flex: 1; min-width: 140px; }

.lic-api-result {
    background: rgba(0,0,0,0.45);
    color: #7dd3fc;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    max-height: 220px;
    overflow: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.lic-devkit__grid--wide { grid-template-columns: 2fr 1fr 1fr 1fr; }
.lic-devkit__card--wide { grid-column: span 1; }
.lic-devkit__desc { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.5rem; }
.lic-devkit__copy--link { text-decoration: none; display: inline-flex; }
.lic-devkit__link--btn { background: none; border: none; cursor: pointer; font: inherit; }

.lic-alert-item--danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
    color: #991b1b;
    text-decoration: none;
}

.lic-form-field--full { grid-column: 1 / -1; }

.lic-modal__accent--danger { background: linear-gradient(180deg, #dc2626, #ef4444); }

.lic-toast--warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lic-admin-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.lic-admin-panel h6 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}

.lic-admin-panel__text { font-size: 0.85rem; color: #64748b; margin: 0; line-height: 1.5; }

.lic-admin-checklist { list-style: none; padding: 0; margin: 0; }

.lic-admin-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.lic-admin-checklist li.done { color: #059669; }
.lic-admin-checklist li.warn { color: #d97706; }

.lic-admin-tools { display: flex; flex-direction: column; gap: 0.35rem; }

.lic-admin-tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.lic-admin-tool:hover { background: #eff6ff; color: #1d4ed8; }

/* ── Dashboard Command Center ── */
.dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dash-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-hero__sub {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.dash-hero__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    color: var(--hearth-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-hero__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--hearth-primary-dark);
}

.dash-hero__btn--ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.dash-hero__btn--ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.dash-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dash-toolbar__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hearth-success);
    background: rgba(16,185,129,0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.dash-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hearth-success);
    animation: dash-pulse 1.5s ease-in-out infinite;
}

@keyframes dash-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.dash-toolbar__meta {
    font-size: 0.75rem;
    color: var(--hearth-muted);
}

.dash-range {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
    box-shadow: var(--hearth-shadow);
}

.dash-range__btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hearth-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-range__btn:hover { color: var(--hearth-primary); }

.dash-range__btn--active {
    background: var(--hearth-primary);
    color: #fff;
    font-weight: 600;
}

.dash-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.dash-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.15s;
}

.dash-alert:hover { transform: translateY(-1px); }

.dash-alert--warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.dash-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.dash-alert__arrow { margin-left: auto; font-size: 0.7rem; opacity: 0.6; }

.dash-grid {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-grid--2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1200px) {
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .dash-grid .dash-panel--health { grid-column: span 2; }
}

@media (max-width: 768px) {
    .dash-grid, .dash-grid--2 { grid-template-columns: 1fr; }
    .dash-grid .dash-panel--health { grid-column: span 1; }
}

.dash-panel {
    background: #fff;
    border-radius: var(--hearth-radius-lg);
    box-shadow: var(--hearth-shadow);
    padding: 1.25rem;
    transition: box-shadow 0.25s;
}

.dash-panel:hover { box-shadow: var(--hearth-shadow-lg); }

.dash-panel--compact { padding: 1rem; }

.dash-panel--health {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.dash-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.dash-panel__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--hearth-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-panel__title i { color: var(--hearth-primary); font-size: 0.85rem; }

.dash-panel__sub {
    font-size: 0.75rem;
    color: var(--hearth-muted);
}

.dash-panel__link {
    font-size: 0.78rem;
    color: var(--hearth-primary);
    text-decoration: none;
    font-weight: 500;
}

.dash-panel__link:hover { text-decoration: underline; }

.dash-health-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.dash-health-ring__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dash-health-ring__track {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}

.dash-health-ring__fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
    stroke: hsl(calc(var(--score) * 1.2), 70%, 50%);
}

.dash-health-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dash-health-ring__num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--hearth-dark);
}

.dash-health-ring__label {
    font-size: 0.7rem;
    color: var(--hearth-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-health-details { flex: 1; min-width: 0; }

.dash-health-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.dash-health-list li {
    font-size: 0.8rem;
    color: var(--hearth-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dash-health-list__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dash-health-list__dot--green { background: var(--hearth-success); }
.dash-health-list__dot--amber { background: var(--hearth-warning); }
.dash-health-list__dot--red { background: var(--hearth-danger); }
.dash-health-list__dot--orange { background: #f97316; }

.dash-today-stats {
    display: flex;
    gap: 1rem;
}

.dash-today-stat__val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hearth-dark);
}

.dash-today-stat__lbl {
    font-size: 0.7rem;
    color: var(--hearth-muted);
}

.dash-chart-wrap {
    position: relative;
    height: 180px;
}

.dash-chart-wrap--sm { height: 140px; }
.dash-chart-wrap--xs { height: 70px; }

.dash-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.75rem;
}

.dash-legend__item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--hearth-muted);
    text-decoration: none;
}

.dash-legend__item:hover { color: var(--hearth-primary); }

.dash-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.dash-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-rank-item {
    display: grid;
    grid-template-columns: 24px 1fr 60px 32px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.dash-rank-item:last-child { border-bottom: none; }

.dash-rank-item__pos {
    font-weight: 700;
    color: var(--hearth-muted);
    font-size: 0.75rem;
}

.dash-rank-item__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-rank-item__bar-wrap {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.dash-rank-item__bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--hearth-primary), var(--hearth-accent));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.dash-rank-item__val {
    text-align: right;
    font-weight: 600;
    color: var(--hearth-primary);
}

.dash-rank-empty {
    font-size: 0.82rem;
    color: var(--hearth-muted);
    padding: 0.5rem 0;
}

.dash-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.dash-mini-item:last-child { border-bottom: none; }

.dash-mini-item__domain {
    color: var(--hearth-dark);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-mini-item__domain:hover { color: var(--hearth-primary); }

.dash-mini-item__date,
.dash-mini-item__meta {
    font-size: 0.75rem;
    color: var(--hearth-muted);
    white-space: nowrap;
}

.dash-panel--table { margin-bottom: 1rem; }

.dash-table-wrap { overflow-x: auto; }

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.dash-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hearth-muted);
    border-bottom: 1px solid #e5e7eb;
}

.dash-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.dash-table__row--pending {
    background: rgba(245,158,11,0.04);
}

.dash-table__row:hover { background: #f8fafc; }

.dash-table__link {
    color: var(--hearth-primary);
    text-decoration: none;
}

.dash-table__link:hover { text-decoration: underline; }

.dash-table__code {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.dash-table__muted { color: var(--hearth-muted); }

.dash-table__empty {
    text-align: center;
    padding: 2rem !important;
    color: var(--hearth-muted);
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.dash-badge--ok { background: rgba(16,185,129,0.12); color: #059669; }
.dash-badge--pending { background: rgba(245,158,11,0.12); color: #d97706; }

.dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #fff;
    border-radius: var(--hearth-radius);
    box-shadow: var(--hearth-shadow);
    text-decoration: none;
    color: var(--hearth-dark);
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-action i {
    font-size: 1.5rem;
    color: var(--hearth-primary);
}

.dash-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--hearth-shadow-lg);
    color: var(--hearth-primary);
}

.dash .lic-activity {
    border: none;
    box-shadow: none;
    padding: 0;
}
