/* Lumen Books – Company Profiles (uses tokens from style.css) */

/* Plan soft-lock */
.nav-item.is-locked { opacity: 0.6; }
.nav-item.is-locked:hover { opacity: 0.85; }
.lock-badge { margin-left: auto; padding-left: 0.4rem; font-size: 0.75rem; }
.plan-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.plan-pill {
    padding: 0.35rem 0.9rem; border-radius: 999px; font: 600 0.85rem 'Outfit', sans-serif; color: #fff;
    background: linear-gradient(135deg, #64748b, #475569);
}
.plan-pill--advance { background: linear-gradient(135deg, var(--primary), #8b5cf6); }
.plan-pill--premium { background: linear-gradient(135deg, #f59e0b, #d97706); }
.plan-upgrade-link { margin-left: auto; text-decoration: none; }
.plan-demo { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1rem; border-top: 1px dashed var(--border-strong); }
.plan-demo label { font-size: 0.8rem; color: var(--text-muted); }
.plan-demo select { max-width: 240px; }

.profile-badge {
    display: flex; align-items: center; gap: 0.6rem;
    width: 100%; margin-top: 1rem; padding: 0.55rem 0.7rem;
    background: var(--sidebar-hover); border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md); color: var(--sidebar-active);
    font: 500 0.85rem 'Inter', sans-serif; cursor: pointer; transition: var(--transition);
}
.profile-badge:hover { border-color: var(--primary); transform: translateY(-1px); }
.profile-badge-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.profile-avatar {
    flex-shrink: 0; display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff; font: 600 0.8rem 'Outfit', sans-serif;
}

.profile-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.profile-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.profile-item {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
    padding: 0.75rem 0.9rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); background: var(--bg-surface); transition: var(--transition);
}
.profile-item:hover { box-shadow: var(--shadow-md); }
.profile-item.is-active { border-color: var(--primary); background: var(--primary-light); }
.profile-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.profile-info strong { color: var(--text-main); word-break: break-word; }
.profile-info small { color: var(--text-muted); font-size: 0.75rem; }
.profile-actions { display: flex; align-items: center; gap: 0.4rem; }

.profile-chip {
    padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    color: var(--success); background: var(--success-bg);
}
.profile-btn {
    padding: 0.5rem 0.95rem; border: none; border-radius: var(--radius-sm);
    background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.profile-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.profile-btn--danger { background: var(--danger); }
.profile-btn--danger:hover { background: #be123c; }
.profile-icon-btn {
    width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--bg-surface); color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.profile-icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.profile-icon-btn--danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }

.profile-create { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.profile-create input { flex: 1; min-width: 180px; }

.profile-modal-overlay {
    position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1rem;
    background: rgba(11, 17, 32, 0.55); backdrop-filter: blur(4px); animation: profileFade 0.2s ease;
}
.profile-modal {
    width: min(420px, 100%); padding: 1.5rem; border-radius: var(--radius-lg);
    background: var(--bg-surface); box-shadow: var(--shadow-float); animation: profilePop 0.2s ease;
}
.profile-modal h3 { margin: 0 0 0.6rem; font-family: 'Outfit', sans-serif; color: var(--text-main); }
.profile-modal p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.profile-modal input { width: 100%; margin-bottom: 1rem; box-sizing: border-box; }
.profile-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }

.profile-toast {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 10001; max-width: calc(100% - 2.5rem);
    padding: 0.75rem 1.1rem; border-radius: var(--radius-md); color: #fff; font-weight: 500;
    background: var(--success); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(10px); transition: var(--transition);
}
.profile-toast--error { background: var(--danger); }
.profile-toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes profileFade { from { opacity: 0; } }
@keyframes profilePop { from { opacity: 0; transform: scale(0.96); } }
