:root {
    --bg: #030303; 
    --bg-card: rgba(22, 22, 26, 0.45); 
    --bg-card-solid: #111115;
    --bg-hover: rgba(139, 92, 246, 0.08);
    --border: rgba(255, 255, 255, 0.06); 
    --border-hover: rgba(139, 92, 246, 0.25);
    --primary: #8b5cf6; 
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.15);
    --text: #fafafa; 
    --text-muted: #a1a1aa; 
    --text-secondary: #e4e4e7;
    --success: #10b981; 
    --danger: #ef4444;
    --radius: 14px; 
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --sidebar-bg: rgba(15, 15, 20, 0.6);
    --sidebar-footer-bg: rgba(10, 10, 15, 0.4);
    --user-info-bg: rgba(255, 255, 255, 0.02);
    --user-info-border: rgba(255, 255, 255, 0.05);
    --title-gradient: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
}

:root[data-theme="light"] {
    --bg: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-solid: #ffffff;
    --bg-hover: rgba(139, 92, 246, 0.04);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(139, 92, 246, 0.2);
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.15);
    --text: #0f172a;
    --text-muted: #475569;
    --text-secondary: #334155;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    --sidebar-bg: rgba(255, 255, 255, 0.75);
    --sidebar-footer-bg: rgba(241, 245, 249, 0.5);
    --user-info-bg: rgba(0, 0, 0, 0.02);
    --user-info-border: rgba(0, 0, 0, 0.05);
    --title-gradient: linear-gradient(135deg, #0f172a 0%, #7c3aed 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Outfit', 'Inter', system-ui, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.5; 
    overflow-x: hidden;
    position: relative;
}
button, input, select, textarea { font-family: inherit; }

/* Dashboard Glow Blobs */
.dashboard-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    transition: all 0.5s ease;
}
.dashboard-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}
.dashboard-glow-2 {
    width: 500px;
    height: 500px;
    background: #06b6d4;
    bottom: -150px;
    left: 20%;
}

/* Auth */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.auth-card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.auth-logo-icon {
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='ltGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%238b5cf6'/%3E%3Cstop offset='100%25' stop-color='%2300ffcc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='100' rx='22' fill='url(%23ltGrad)'/%3E%3Cpath d='M 25 35 L 75 35 M 50 35 L 50 65 L 70 65' stroke='%23ffffff' stroke-width='10' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}
.auth-logo-text { font-size: 1.5rem; font-weight: 700; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; color: transparent; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; transition: 0.2s; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(139,92,246,0.2); }
.password-wrapper { position: relative; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }
.btn-auth { width: 100%; padding: 0.85rem; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-auth:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Layout */
.dashboard { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar { 
    width: 260px; 
    background: var(--sidebar-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    position: fixed; 
    height: 100vh; 
    z-index: 50; 
    transition: transform 0.3s; 
}
.sidebar-header { 
    padding: 1.75rem 1.5rem; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}
.sidebar-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    color: var(--text); 
    font-weight: 700; 
    font-size: 1.4rem; 
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}
.sidebar-logo-icon { 
    width: 32px; 
    height: 32px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='ltGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%238b5cf6'/%3E%3Cstop offset='100%25' stop-color='%2300ffcc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='100' rx='22' fill='url(%23ltGrad)'/%3E%3Cpath d='M 25 35 L 75 35 M 50 35 L 50 65 L 70 65' stroke='%23ffffff' stroke-width='10' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.sidebar-close:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-hover);
}
.sidebar-nav { flex: 1; padding: 1.25rem 0.75rem; overflow-y: auto; }
.nav-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 0.75rem 1rem; 
    color: var(--text-muted); 
    text-decoration: none; 
    border-radius: 10px; 
    margin-bottom: 6px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    font-size: 0.95rem; 
    font-weight: 500;
    position: relative;
}
.nav-item svg {
    transition: transform 0.25s ease;
}
.nav-item:hover svg {
    transform: scale(1.08);
}
.nav-item:hover { 
    background: var(--bg-hover); 
    color: var(--text); 
}
.nav-item.active { 
    background: rgba(139, 92, 246, 0.12); 
    color: #c084fc; 
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}
.nav-icon { width: 20px; height: 20px; stroke-width: 2; }
.sidebar-footer { 
    padding: 1.25rem; 
    border-top: 1px solid var(--border); 
    background: var(--sidebar-footer-bg);
}
.user-info { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 1rem; 
    background: var(--user-info-bg);
    border: 1px solid var(--user-info-border);
    padding: 10px;
    border-radius: 12px;
}
.user-avatar { 
    width: 38px; 
    height: 38px; 
    background: linear-gradient(135deg, var(--primary), #a855f7); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: #fff;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
    border: 1.5px solid rgba(255,255,255,0.15);
}
.user-details { display: flex; flex-direction: column; text-align: left; }
.user-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.user-plan { font-size: 0.75rem; color: #a78bfa; font-weight: 500; }
.btn-logout { 
    width: 100%; 
    padding: 0.65rem; 
    background: rgba(239, 68, 68, 0.08); 
    border: 1px solid rgba(239, 68, 68, 0.2); 
    color: #f87171; 
    border-radius: 10px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    font-size: 0.85rem; 
    font-weight: 600;
    transition: all 0.2s ease; 
}
.btn-logout:hover { 
    background: var(--danger); 
    color: #fff; 
    border-color: var(--danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-logout svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-theme-toggle {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}
.btn-theme-toggle i {
    font-size: 1.05rem;
}

.catalog-tab-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.catalog-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.catalog-tab-btn:hover {
    border-color: var(--border-hover);
}

.main-content { flex: 1; margin-left: 260px; padding: 2.5rem; position: relative; z-index: 2; transition: margin-left 0.25s ease; }
.main-content.sidebar-collapsed { margin-left: 84px; }
.sidebar.collapsed { width: 84px; }
.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-details,
.sidebar.collapsed .btn-theme-toggle,
.sidebar.collapsed .btn-logout {
    display: none;
}
.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.sidebar.collapsed .nav-item {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.sidebar.collapsed .user-info {
    justify-content: center;
}
.sidebar.collapsed .nav-item.active::before {
    left: auto;
    right: 0;
}
.view { display: none; animation: fade 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.view-header h2, .page-header h2, .page-header h3, .section-header h3 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-weight: 700; 
    letter-spacing: -0.015em; 
}
.view-header h2, .page-header h2 {
    font-size: 2rem;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}
.view-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* Buttons */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 0.7rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.25s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2); }
.btn-primary:hover { background: linear-gradient(135deg, #9f75ff 0%, var(--primary-hover) 100%); transform: translateY(-1.5px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.06); }
.btn-primary svg, .btn-secondary svg { width: 18px; height: 18px; }
.btn-back { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.btn-back:hover { color: var(--text); }

/* Stats Grid & Glassmorphic Cards */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.25rem; 
    margin-bottom: 2.5rem; 
}
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
.stat-card { 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 1.25rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}
.stat-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.stat-value { 
    font-size: 1.75rem; 
    font-weight: 800; 
    color: var(--text);
    line-height: 1.1;
    font-family: 'Space Grotesk', sans-serif;
}
.stat-label { 
    font-size: 0.78rem; 
    color: var(--text-muted); 
    font-weight: 500;
    margin-top: 3px;
}

/* Unique Icon Colors & Backgrounds */
.stat-icon-bios { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.15)); 
    color: #c084fc; 
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.stat-icon-published { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15)); 
    color: #34d399; 
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.stat-icon-clients { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15)); 
    color: #fbbf24; 
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.stat-icon-views { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15)); 
    color: #60a5fa; 
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.stat-icon-clicks { 
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.15)); 
    color: #22d3ee; 
    border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Actions & Cards */
.quick-actions h3, .recent-section h3 { font-size: 1.2rem; margin-bottom: 1.25rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text-secondary); }
.action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.action-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: 0.2s; text-align: left; width: 100%; color: inherit; font-family: inherit; }
.action-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.action-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.action-icon svg { width: 22px; height: 22px; }
.action-icon-gradient { background: linear-gradient(135deg, var(--primary), #06b6d4); color: #fff; }
.action-icon-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.action-title { font-weight: 600; display: block; }
.action-desc { font-size: 0.85rem; color: var(--text-muted); }

.recent-bios-grid, .bios-grid, .clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* Bio Grid Cards Overhaul */
.bio-card { 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}
.bio-card:hover { 
    border-color: var(--border-hover); 
    transform: translateY(-4px); 
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}
.bio-card-preview { 
    height: 140px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    overflow: hidden;
    transition: background-size 0.3s ease;
}
.bio-card-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(10, 10, 12, 0.8));
    z-index: 1;
}
.bio-card:hover .bio-card-preview {
    background-size: 110% !important;
}
.bio-initial { 
    width: 60px; 
    height: 60px; 
    background: rgba(255,255,255,0.12); 
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.75rem; 
    font-weight: 800; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    color: #fff;
}
.bio-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; text-align: left; }
.bio-card-body h3 { 
    font-size: 1.15rem; 
    margin-bottom: 6px; 
    font-weight: 700;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}
.bio-slug { 
    font-size: 0.8rem; 
    color: #a78bfa; 
    font-family: monospace; 
    background: rgba(139, 92, 246, 0.08); 
    border: 1px solid rgba(139, 92, 246, 0.15);
    padding: 4px 10px; 
    border-radius: 8px; 
    display: inline-flex; 
    align-items: center;
    margin-bottom: 14px; 
    width: fit-content;
}
.bio-card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bio-status { 
    font-size: 0.72rem; 
    padding: 4px 10px; 
    border-radius: 50px; 
    font-weight: 600; 
    display: inline-flex;
    align-items: center;
}
.bio-status.published { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.bio-status.draft { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }

.bio-actions { display: flex; gap: 8px; }
.bio-actions button { 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.78rem; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}
.btn-edit-bio { 
    background: rgba(139, 92, 246, 0.1); 
    color: #c084fc; 
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.btn-edit-bio:hover { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.btn-delete-bio { 
    background: rgba(239, 68, 68, 0.1); 
    color: #f87171; 
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-delete-bio:hover { 
    background: var(--danger); 
    color: #fff; 
    border-color: var(--danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Editor - Nuevo Layout 2 Columnas */
.editor-page-info { display: flex; align-items: center; gap: 1rem; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.editor-layout-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; height: calc(100vh - 120px); min-height: 500px; }
.designer-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.designer-scroll { overflow-y: auto; flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.designer-scroll::-webkit-scrollbar { width: 4px; }
.designer-scroll::-webkit-scrollbar-track { background: transparent; }
.designer-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.preview-panel { display: flex; flex-direction: column; }
.live-preview { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.preview-header { padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.preview-header-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.preview-header svg { width: 16px; height: 16px; }
.preview-toggles { display: flex; gap: 4px; }
.preview-toggle-btn { background: none; border: 1px solid transparent; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: 0.2s; font-size: 0.85rem; }
.preview-toggle-btn:hover { background: rgba(139, 92, 246, 0.1); color: var(--primary); }
.preview-toggle-btn.active { background: var(--primary); color: #fff; }

.preview-frame { flex: 1; overflow-y: auto; background: var(--bg); padding: 16px; display: flex; justify-content: center; align-items: flex-start; min-height: 0; }
#preview-content {
    width: 100%;
    box-sizing: border-box;
    transition: max-width 0.3s ease, border-radius 0.3s ease;
    overflow: hidden;
    min-height: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#preview-content #preview-iframe {
    flex: 1;
    min-height: 600px;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}
.preview-mode-mobile #preview-content {
    width: min(100%, 390px);
    max-width: 390px;
    border-radius: 36px;
    border: 8px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.preview-mode-tablet #preview-content {
    width: min(100%, 768px);
    max-width: 768px;
    border-radius: 20px;
    border: 12px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.preview-mode-desktop #preview-content {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Secciones colapsables de bloques */
.be-section { padding: 0; }
.be-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s;
    user-select: none;
}
.be-section-header:hover { background: var(--bg-hover); }
.be-section-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.be-section-arrow { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s; }
.be-section-content { padding: 0 12px 12px; }

/* Items de bloques */
.be-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.be-item:hover { border-color: var(--primary); }
.be-item-header { display: flex; justify-content: space-between; align-items: center; }
.be-item-title { font-weight: 500; font-size: 0.85rem; }
.be-item-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

.be-item-actions button { padding: 4px 8px; border: none; border-radius: 4px; font-size: 0.75rem; cursor: pointer; }

.be-btn-up, .be-btn-down { background: rgba(255,255,255,0.08); color: var(--text-muted); line-height: 1; }

.be-btn-up:hover, .be-btn-down:hover { background: rgba(255,255,255,0.15); color: #fff; }

.be-btn-edit { background: rgba(139,92,246,0.15); color: var(--primary); }

.be-btn-edit:hover { background: var(--primary); color: #fff; }

.be-btn-delete { background: rgba(239,68,68,0.15); color: var(--danger); }

.be-btn-delete:hover { background: var(--danger); color: #fff; }
.be-item-preview { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.be-add-btn {
    width: 100%;
    padding: 8px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.be-add-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(139,92,246,0.05); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal-content { background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); box-shadow: var(--shadow); animation: modalIn 0.2s; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-content h3 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.modal-content label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; margin-top: 1rem; }
.modal-content label:first-of-type { margin-top: 0; }
.modal-content input, .modal-content select, .modal-content textarea { width: 100%; padding: 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; font-size: 0.95rem; }
.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus { border-color: var(--primary); }
.modal-actions { display: flex; gap: 10px; margin-top: 1.5rem; }
.modal-actions button { flex: 1; padding: 0.75rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn-save { background: var(--primary); color: #fff; }
.btn-save:hover { background: var(--primary-hover); }
.btn-cancel { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border) !important; }
.btn-cancel:hover { background: var(--bg-hover); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.template-card { background: var(--bg); border: 2px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; cursor: pointer; transition: 0.2s; }
.template-card:hover, .template-card.selected { border-color: var(--primary); background: var(--bg-hover); }
.template-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.template-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.template-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; min-width: 250px; animation: slideIn 0.3s; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Mobile */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0 1rem; align-items: center; justify-content: space-between; z-index: 40; }
.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; }
.mobile-logo-icon {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='ltGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%238b5cf6'/%3E%3Cstop offset='100%25' stop-color='%2300ffcc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='100' rx='22' fill='url(%23ltGrad)'/%3E%3Cpath d='M 25 35 L 75 35 M 50 35 L 50 65 L 70 65' stroke='%23ffffff' stroke-width='10' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
}
.mobile-avatar { width: 32px; height: 32px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 45; }
.sidebar-overlay.active { display: block; }

@media (max-width: 1024px) {
    .editor-layout-v2 { grid-template-columns: 1fr; height: auto; }
    .designer-panel { order: 2; }
    .preview-panel { order: 1; min-height: 400px; }
    #preview-content,
    #preview-content #preview-iframe { min-height: 560px; }
}
@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar.collapsed { width: 260px; }
    .sidebar.collapsed .sidebar-logo span { display: inline; }
    .sidebar.collapsed .nav-item span { display: inline; }
    .sidebar.collapsed .user-details { display: flex; }
    .sidebar.collapsed .btn-theme-toggle,
    .sidebar.collapsed .btn-logout { display: flex; }
    .sidebar.collapsed .nav-item { justify-content: flex-start; }
    .sidebar.collapsed .user-info { justify-content: flex-start; }
    .main-content.sidebar-collapsed { margin-left: 0; }
    .main-content { margin-left: 0; padding: 80px 1rem 2rem; }
    .view-header { flex-direction: column; }
    .view-header .btn-primary { width: 100%; justify-content: center; }
    .stats-grid, .action-cards, .bios-grid, .clients-grid { grid-template-columns: 1fr; }
    .editor-actions { width: 100%; }
    .editor-actions button { flex: 1; justify-content: center; }
    .preview-frame { padding: 10px; }
    .preview-toggle-btn { padding: 4px 7px; font-size: 0.78rem; }
    #preview-content,
    #preview-content #preview-iframe { min-height: 520px; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Settings Cards (Diseño view) */
.settings-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 14px; transition: 0.2s; }
.settings-card:hover { border-color: rgba(139,92,246,0.3); }
.settings-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.settings-card-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.settings-card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.settings-card-header p { font-size: 0.8rem; color: var(--text-muted); }
.settings-panel { overflow-y: auto; max-height: calc(100vh - 160px); padding-right: 8px; }
.settings-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
.settings-preview { position: sticky; top: 0; }
.preview-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.preview-header-mini { padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.preview-frame-mini { height: 500px; overflow-y: auto; background: #fff; }
.setting-row { margin-bottom: 12px; }
.setting-row label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.section-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.form-select { width: 100%; padding: 0.7rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; font-size: 0.9rem; transition: 0.2s; }
.form-select:focus { border-color: var(--primary); }
.form-input { width: 100%; padding: 0.7rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; font-size: 0.9rem; }
.form-input:focus { border-color: var(--primary); }
.color-picker-wrapper { display: flex; gap: 8px; align-items: center; }
.color-picker-wrapper input[type="color"] { width: 34px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); cursor: pointer; }
.color-text-input { flex: 1; padding: 0.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; font-size: 0.85rem; font-family: monospace; }
.btn-full { width: 100%; justify-content: center; border-radius: 10px; }

/* Catalog Cards */
.catalog-card { transition: 0.2s; }
.catalog-card:hover { transform: translateY(-2px); }

/* Product Card Admin (legacy) */
.product-card-admin { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-card-admin img { width: 100%; height: 140px; object-fit: cover; }
.product-info { padding: 12px; }
.product-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.product-actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.btn-edit-product, .btn-delete-product { flex: 1; padding: 6px; border: none; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }
.btn-edit-product { background: rgba(139,92,246,0.15); color: var(--primary); }
.btn-delete-product { background: rgba(239,68,68,0.15); color: var(--danger); }

/* Coupon card */
.coupon-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.coupon-code { font-weight: 700; font-family: monospace; font-size: 1rem; letter-spacing: 0.05em; }

/* Auth extras */
.auth-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-bg-circle { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; }
.auth-bg-circle-1 { width: 500px; height: 500px; background: var(--primary); top: -200px; right: -100px; }
.auth-bg-circle-2 { width: 400px; height: 400px; background: #06b6d4; bottom: -150px; left: -100px; }
.auth-bg-circle-3 { width: 300px; height: 300px; background: #f59e0b; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.auth-container { position: relative; z-index: 1; width: 100%; max-width: 460px; padding: 1rem; }
.auth-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; text-align: center; }
.auth-form { }
.auth-form h2 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-form-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.btn-arrow { margin-left: 4px; }
.btn-auth-primary { }

@media (max-width: 900px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-preview { display: none; }
}

/* Image Upload Button */
.btn-upload-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: none;
    flex-shrink: 0;
}
.btn-upload-img:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-upload-img svg { display: block; }

/* Ensure setting-row flex alignment for upload groups */
.setting-row > div[style*="display:flex"] { align-items: center; }

/* ==========================================
   Editor Tabs (Bloques / Diseño)
   ========================================== */
.editor-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border);
}
.editor-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s;
}
.editor-tab.active {
    background: var(--primary);
    color: #fff;
}
.editor-tab:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text);
}
.sidebar-panel { flex: 1; overflow: hidden; }
.sidebar-panel.active { display: block; }

/* ==========================================
   Design Panel (dp-*)
   ========================================== */
.design-panel-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}
.design-panel-scroll::-webkit-scrollbar { width: 4px; }
.design-panel-scroll::-webkit-scrollbar-track { background: transparent; }
.design-panel-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.dp-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 6px;
}
.dp-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.dp-field {
    margin-bottom: 10px;
}
.dp-field:last-child { margin-bottom: 0; }
.dp-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.dp-input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.dp-input:focus { border-color: var(--primary); }
.dp-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}
.dp-status {
    font-size: 0.72rem;
    margin-top: 4px;
    min-height: 14px;
    color: var(--text-muted);
}

/* Upload box (click-to-upload area) */
.dp-upload-box {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}
.dp-upload-box:hover {
    border-color: var(--primary);
    background: rgba(139,92,246,0.05);
}
.dp-upload-box--wide {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    margin: 0;
}
.dp-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-align: center;
    pointer-events: none;
}
.dp-upload-placeholder span {
    font-size: 0.72rem;
    font-weight: 500;
}
.dp-upload-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dp-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dp-upload-preview--wide img {
    border-radius: 8px;
}

.dp-btn-save {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: inherit;
}
.dp-btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139,92,246,0.35); }
.dp-btn-apply {
    width: 100%;
    padding: 8px;
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.dp-btn-apply:hover { border-color: var(--primary); color: var(--primary); }

/* Compact 2-column grid for design panel fields */
.dp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.dp-grid-2 .dp-field {
    margin-bottom: 0;
}

/* Premium Styling for Sidebar inputs/textareas/selects */
.dp-field input[type="text"],
.dp-field input[type="number"],
.dp-field select,
.dp-field textarea {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.dp-field input[type="text"]:focus,
.dp-field input[type="number"]:focus,
.dp-field select:focus,
.dp-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.18);
}
.dp-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 28px;
    cursor: pointer;
}
.dp-field select option {
    background-color: var(--bg-card);
    color: var(--text);
}
.dp-field textarea {
    resize: vertical;
}

/* Premium Styling for Top Header Buttons */
.btn-preview {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-preview:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-hover);
}
.btn-publish {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-publish:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

/* ==========================================
   CLIENT CARDS (LEADS) STYLING
   ========================================== */
.client-card {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease-in-out;
}
.client-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.client-header {
    display: flex;
    gap: 12px;
    align-items: center;
}
.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}
.client-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.client-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.client-email, .client-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.client-email i, .client-phone i {
    color: var(--primary);
    width: 14px;
    text-align: center;
}
.client-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.client-type {
    font-size: 0.72rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.client-status {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.client-status.active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}
.client-status.inactive {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}
.client-brief-details {
    margin-top: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}
.client-brief-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}
.client-brief-item {
    margin-bottom: 2px;
}
.client-brief-item strong {
    color: var(--text-secondary);
}
.client-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.btn-edit-client, .btn-delete-client {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-edit-client {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border) !important;
}
.btn-edit-client:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}
.btn-delete-client {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.btn-delete-client:hover {
    background: var(--danger);
    color: #fff;
}

/* Platform Reset Button */
.btn-reset-danger:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Premium switch slider toggle styling */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, border-color 0.2s;
}
.switch-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
}
.switch-container span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.switch-control {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}
.switch-control input:checked + .switch-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}
.switch-control input:checked + .switch-slider:before {
    transform: translateX(20px);
    background-color: #fff;
}
