/* Headless Bridge Admin Styles */

/* ============================================
   Dashboard - Dark Mode SaaS Theme
   Scoped under .headbridge-dashboard-modern
   ============================================ */

.headbridge-dashboard-modern {
    background: #0f1117;
    margin-left: -20px;
    margin-top: -10px;
    padding: 0 0 60px;
    min-height: 100vh;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* --- Header --- */
.hb-dash-header {
    background: linear-gradient(135deg, #161822 0%, #1a1d2b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 40px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.hb-dash-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 0;
    letter-spacing: -0.3px;
}

.hb-dash-version-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 12px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.hb-dash-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Grid Layout --- */
.hb-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 24px;
    padding: 32px 40px;
    max-width: 1400px;
    align-items: start;
}

/* --- Sidebar (Queue Status + Quick Actions) --- */
.hb-dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Cards --- */
.hb-dash-card {
    background: #1a1d27;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hb-dash-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.hb-dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hb-dash-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

/* --- Circular Progress Ring --- */
.hb-progress-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0 8px;
}

.hb-progress-ring {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        #22c55e calc(var(--progress, 0) * 1%),
        #2a2d3a calc(var(--progress, 0) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

.hb-progress-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #1a1d27;
}

.hb-progress-ring-value {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.hb-progress-ring-value span {
    font-size: 18px;
    color: #94a3b8;
}

.hb-progress-ring-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
}

/* --- Stats List --- */
.hb-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-stats-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.hb-stats-list li:last-child {
    border-bottom: none;
}

.hb-stats-label {
    color: #94a3b8;
}

.hb-stats-value {
    color: #e2e8f0;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* --- Queue Status --- */
.hb-queue-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.hb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hb-status-pill--idle {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.hb-status-pill--processing {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.hb-status-pill--error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hb-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.hb-status-pill--idle .hb-status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hb-status-pill--processing .hb-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: hb-pulse 1.5s ease-in-out infinite;
}

.hb-status-pill--error .hb-status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes hb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hb-queue-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.hb-queue-stat {
    text-align: center;
}

.hb-queue-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hb-queue-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

/* --- Quick Actions --- */
.hb-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    width: 100%;
}

.hb-btn-recompile {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    font-size: 15px;
    padding: 16px 28px;
}

.hb-btn-recompile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #2dd468 0%, #1db954 100%);
}

.hb-btn-recompile:active {
    transform: translateY(0);
}

.hb-btn-clear {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 13px;
    padding: 12px 28px;
}

.hb-btn-clear:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Spinner on buttons */
.hb-btn .hb-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hb-spin 0.6s linear infinite;
}

.hb-btn.is-loading .hb-spinner {
    display: inline-block;
}

@keyframes hb-spin {
    to { transform: rotate(360deg); }
}

/* --- API Endpoints --- */
.hb-endpoints-wrap {
    padding: 4px 0;
}

.hb-endpoint-base {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.hb-endpoint-base code {
    background: rgba(255, 255, 255, 0.06);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.hb-endpoint-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-endpoint-list li {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.hb-endpoint-list li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hb-endpoint-method {
    color: #22c55e;
    font-weight: 700;
    margin-right: 8px;
}

.hb-endpoint-desc {
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    margin-left: 8px;
}

/* --- Post Type Badges --- */
.hb-post-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hb-post-type-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hb-post-type-badge .hb-badge-count {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* --- Full-width card spanning entire grid --- */
.hb-dash-card--wide {
    grid-column: 1 / -1;
}

/* ============================================
   Settings Page
   ============================================ */

.hb-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    padding: 32px 40px 0;
    max-width: 1400px;
}

/* Toast notification */
.hb-toast {
    margin: 16px 40px 0;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.hb-toast--success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Description text below card title */
.hb-settings-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* --- Checkbox group --- */
.hb-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hb-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hb-checkbox-label input[type="checkbox"] {
    display: none;
}

.hb-checkbox-mark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #3f4354;
    background: transparent;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.hb-checkbox-label input[type="checkbox"]:checked + .hb-checkbox-mark {
    background: #22c55e;
    border-color: #22c55e;
}

.hb-checkbox-label input[type="checkbox"]:checked + .hb-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hb-checkbox-text {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

/* --- Toggle switch --- */
.hb-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background 0.2s ease;
}

.hb-toggle-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hb-toggle-label {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

.hb-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.hb-toggle input {
    display: none;
}

.hb-toggle-slider {
    position: absolute;
    inset: 0;
    background: #3f4354;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.hb-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.hb-toggle input:checked + .hb-toggle-slider {
    background: #22c55e;
}

.hb-toggle input:checked + .hb-toggle-slider::after {
    transform: translateX(20px);
}

/* --- Form fields --- */
.hb-field-group {
    margin-bottom: 20px;
}

.hb-field-group:last-child {
    margin-bottom: 0;
}

.hb-field-label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.hb-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.hb-input-wrap:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.hb-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    outline: none;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    -moz-appearance: textfield;
}

.hb-input::-webkit-outer-spin-button,
.hb-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hb-input-suffix {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding: 0 14px;
    white-space: nowrap;
}

.hb-field-hint {
    color: #4a5568;
    font-size: 12px;
    margin: 8px 0 0;
    line-height: 1.4;
}

/* --- Save button --- */
.hb-settings-footer {
    padding: 24px 40px 0;
    max-width: 1400px;
}

.hb-btn-save {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    font-size: 15px;
    padding: 14px 40px;
    width: auto;
}

.hb-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #2dd468 0%, #1db954 100%);
}

.hb-btn-save:active {
    transform: translateY(0);
}

/* ============================================
   API Keys Page
   ============================================ */

.hb-keys-container {
    padding: 32px 40px;
    max-width: 1400px;
}

.hb-keys-count {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Empty state */
.hb-keys-empty {
    text-align: center;
    padding: 48px 20px;
}

.hb-keys-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.hb-keys-empty p {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.hb-keys-empty-hint {
    color: #64748b;
    font-size: 13px;
}

/* Table */
.hb-keys-table-wrap {
    overflow-x: auto;
}

.hb-keys-table {
    width: 100%;
    border-collapse: collapse;
}

.hb-keys-table thead th {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hb-keys-table tbody tr {
    transition: background 0.15s ease;
}

.hb-keys-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hb-keys-table tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

.hb-keys-table tbody tr:last-child td {
    border-bottom: none;
}

.hb-key-name {
    color: #e2e8f0;
    font-weight: 600;
}

.hb-key-meta {
    color: #64748b;
    font-size: 13px;
}

/* Key status badges */
.hb-key-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.hb-key-status--active {
    color: #22c55e;
}

.hb-key-status--revoked {
    color: #ef4444;
}

/* Row action buttons */
.hb-key-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
}

.hb-key-btn:last-child {
    margin-right: 0;
}

.hb-key-btn--revoke {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hb-key-btn--revoke:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.hb-key-btn--delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hb-key-btn--delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Modal */
.hb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-modal {
    background: #1a1d27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px;
    max-width: 560px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.hb-modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.hb-modal-warning {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 24px;
}

.hb-modal-key-wrap {
    margin-bottom: 24px;
}

.hb-modal-key-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #22c55e;
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    padding: 14px 16px;
    outline: none;
    box-sizing: border-box;
}

.hb-modal-actions {
    display: flex;
    gap: 12px;
}

.hb-modal-actions .hb-btn {
    width: auto;
}

/* ============================================
   License / Upgrade Page
   ============================================ */

.hb-license-container {
    padding: 32px 40px;
    max-width: 1000px;
}

.hb-license-card {
    max-width: 560px;
}

.hb-link {
    color: #22c55e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hb-link:hover {
    color: #2dd468;
}

/* Section titles */
.hb-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 24px;
}

.hb-section-title:not(:first-child) {
    margin-top: 48px;
}

/* Feature cards grid */
.hb-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.hb-feature-item {
    text-align: center;
    padding: 32px 24px;
}

.hb-feature-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
}

.hb-feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
}

.hb-feature-item p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Pricing grid */
.hb-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 720px;
}

.hb-pricing-card {
    text-align: center;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.hb-pricing-card--featured {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.hb-pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hb-pricing-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.hb-pricing-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.hb-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin: 28px 0;
}

.hb-pricing-currency {
    font-size: 22px;
    font-weight: 600;
    color: #94a3b8;
}

.hb-pricing-amount {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.hb-pricing-period {
    font-size: 14px;
    color: #64748b;
    margin-left: 4px;
}

.hb-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex-grow: 1;
    text-align: left;
}

.hb-pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hb-pricing-features li:last-child {
    border-bottom: none;
}

.hb-pricing-check {
    color: #22c55e;
    font-weight: 700;
    font-size: 15px;
    min-width: 18px;
}

.hb-btn-pricing {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: auto;
    padding: 12px 32px;
}

.hb-btn-pricing:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hb-pricing-footer {
    text-align: center;
    color: #4a5568;
    font-size: 13px;
    margin-top: 24px;
}

/* Resource cards */
.hb-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.hb-resource-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 32px 24px;
}

.hb-resource-item:hover {
    border-color: #22c55e;
}

.hb-resource-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
}

.hb-resource-item p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 860px) {
    .hb-dash-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hb-dash-card--wide {
        grid-column: auto;
    }

    .hb-dash-header {
        padding: 24px 20px;
    }

    .hb-progress-ring {
        width: 130px;
        height: 130px;
    }

    .hb-progress-ring-value {
        font-size: 28px;
    }

    .hb-settings-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hb-settings-footer {
        padding: 20px 20px 0;
    }

    .hb-toast {
        margin: 12px 20px 0;
    }

    .hb-keys-container {
        padding: 20px;
    }

    .hb-license-container {
        padding: 20px;
    }

    .hb-license-card {
        max-width: none;
    }

    .hb-pricing-grid,
    .hb-features-grid,
    .hb-resources-grid {
        grid-template-columns: 1fr;
    }
}
