/* ── Client Dashboard — Creative Agency ──────────────────────────────── */

/* Accent gradient used throughout */
:root {
    --cn-accent: #0f172a;
    --cn-accent-2: #334155;
    --cn-accent-3: #475569;
    --cn-grad: linear-gradient(135deg, #0f172a, #334155, #475569);
    --cn-dark: #0f0f1a;
    --cn-dark-2: #1a1a2e;
    --cn-surface: #fff;
    --cn-border: #e2e8f0;
    --cn-text: #1e293b;
    --cn-muted: #64748b;
    --cn-radius: 14px;
}

.cd {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Hero */
.cd-hero {
    padding: 36px 0 28px;
    animation: cdFadeUp 0.5s ease both;
}
.cd-hero h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--cn-text);
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.cd-hero p {
    font-size: 15px;
    color: var(--cn-muted);
    margin: 0;
}

/* Quick Actions */
.cd-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
    animation: cdFadeUp 0.5s 0.05s ease both;
}
.cd-qa-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    text-decoration: none;
    color: var(--cn-text);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.cd-qa-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cn-grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cd-qa-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(15,23,42,0.1);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--cn-text);
}
.cd-qa-card:hover::before { opacity: 0.04; }
.cd-qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}
.cd-qa-card:hover .cd-qa-icon { transform: scale(1.08); }
.cd-qa-label {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.cd-qa-count {
    font-size: 12px;
    color: var(--cn-muted);
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

/* Section */
.cd-section {
    margin-bottom: 28px;
    animation: cdFadeUp 0.5s 0.1s ease both;
}
.cd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cd-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--cn-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}
.cd-section-title i {
    color: var(--cn-accent);
    font-size: 14px;
}
.cd-section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--cn-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}
.cd-section-link:hover {
    color: var(--cn-accent-2);
    text-decoration: none;
}

/* Stats Row */
.cd-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.cd-stat-card {
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    padding: 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.cd-stat-card:hover {
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.cd-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height 0.2s ease;
}
.cd-stat-card:hover::after { height: 4px; }
.cd-stat-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.cd-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--cn-muted);
}

/* Project Cards */
.cd-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}
.cd-project-card {
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    display: block;
    position: relative;
    overflow: hidden;
}
.cd-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cn-grad);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cd-project-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}
.cd-project-card:hover::before { opacity: 1; }
.cd-project-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cn-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-project-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.cd-project-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--cn-muted);
}
.cd-project-meta i {
    color: #94a3b8;
    margin-right: 4px;
    font-size: 12px;
}
.cd-project-progress {
    margin-top: 12px;
}
.cd-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.cd-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.cd-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Invoice List */
.cd-invoice-list {
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    overflow: hidden;
}
.cd-invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--cn-text);
    transition: all 0.2s ease;
}
.cd-invoice-item:last-child { border-bottom: none; }
.cd-invoice-item:hover {
    background: #f8fafc;
    text-decoration: none;
    color: var(--cn-text);
    padding-left: 22px;
}
.cd-invoice-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-invoice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.cd-invoice-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.cd-invoice-info span {
    font-size: 12px;
    color: #94a3b8;
}
.cd-invoice-amount {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.cd-invoice-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 10px;
    white-space: nowrap;
}

/* Announcements */
.cd-announcement {
    background: #f8fafc;
    border: 1px solid var(--cn-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--cn-text);
    display: block;
    transition: all 0.2s ease;
}
.cd-announcement:hover {
    background: #f1f5f9;
    transform: translateX(4px);
    text-decoration: none;
    color: var(--cn-text);
}
.cd-announcement h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}
.cd-announcement p {
    font-size: 13px;
    margin: 0;
    color: var(--cn-muted);
    opacity: 0.8;
}

/* Empty state */
.cd-empty {
    text-align: center;
    padding: 36px 20px;
    color: #94a3b8;
    font-size: 14px;
}
.cd-empty i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

/* Amount highlight */
.cd-amount-due {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--cn-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    animation: cdFadeUp 0.5s 0.15s ease both;
}
.cd-amount-due-label {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
}
.cd-amount-due-value {
    font-size: 26px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: -0.5px;
}

/* Two column layout */
.cd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    animation: cdFadeUp 0.5s 0.2s ease both;
}

/* Chart */
.cd-chart-wrap {
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    padding: 20px;
}

/* ── Mini Stats Row ──────────────────────────────────────────────────── */
.cd-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.cd-mini-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.cd-mini-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ms-color, #94a3b8);
    opacity: 0.5;
    transition: height 0.2s ease, opacity 0.2s ease;
}
.cd-mini-stat:hover {
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.cd-mini-stat:hover::after { height: 3px; opacity: 1; }
.cd-mini-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--ms-color, var(--cn-text));
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.cd-mini-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--cn-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── List Card (invoices, estimates, tickets, contracts) ─────────────── */
.cd-list-card {
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    overflow: hidden;
}
.cd-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--cn-text);
    transition: all 0.2s ease;
}
.cd-list-row:last-child { border-bottom: none; }
.cd-list-row:hover {
    background: #f8fafc;
    text-decoration: none;
    color: var(--cn-text);
    padding-left: 20px;
}
.cd-list-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.cd-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.cd-list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--cn-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-list-sub {
    font-size: 12px;
    color: #94a3b8;
}
.cd-list-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cd-list-amount {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.cd-list-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Empty small */
.cd-empty-small {
    text-align: center;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 13px;
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
}
.cd-empty-small i {
    margin-right: 6px;
}

/* ── Completed Projects List ─────────────────────────────────────────── */
.cd-proj-active-title {
    color: var(--cn-accent) !important;
}
.cd-proj-active-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cn-accent);
    margin-right: 8px;
    animation: cdPulse 2s ease infinite;
}
@keyframes cdPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.cd-done-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}
.cd-done-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    text-decoration: none;
    color: var(--cn-text);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.cd-done-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #16a34a;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cd-done-card:hover {
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--cn-text);
}
.cd-done-card:hover::before { opacity: 1; }
.cd-done-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}
.cd-done-card:hover .cd-done-icon { opacity: 1; }
.cd-done-info {
    flex: 1;
    min-width: 0;
}
.cd-done-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--cn-text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-done-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--cn-muted);
}
.cd-done-tasks {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.cd-done-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Entrance animation */
@keyframes cdFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mini-stats responsive */
@media (max-width: 480px) {
    .cd-mini-stats { grid-template-columns: 1fr 1fr; }
    .cd-done-projects { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cd-hero h1 { font-size: 24px; }
    .cd-quick-actions { grid-template-columns: 1fr 1fr; }
    .cd-stats-row { grid-template-columns: 1fr 1fr; }
    .cd-project-grid { grid-template-columns: 1fr; }
    .cd-grid-2 { grid-template-columns: 1fr; }
    .cd-amount-due { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Navigation — Dark Creative ──────────────────────────────────────── */
.cn-nav {
    background: var(--cn-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cn-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cn-grad);
    opacity: 0.4;
}
.cn-nav.cn-scrolled {
    background: rgba(15,15,26,0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.cn-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    transition: height 0.3s ease;
}
.cn-scrolled .cn-inner { height: 54px; }
.cn-brand { display: flex; align-items: center; }
.cn-brand a { display: flex; align-items: center; }
.cn-logo,
.cn-brand img {
    height: 30px !important;
    position: static !important;
    margin: 0 !important;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}
.cn-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}
.cn-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 20px;
}

/* Nav links */
.cn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.cn-link-icon {
    display: inline-flex;
    font-size: 13px;
    transition: transform 0.25s ease;
}
.cn-link-text {
    position: relative;
    z-index: 1;
}
.cn-link-glow {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0;
    background: var(--cn-grad);
    transition: opacity 0.3s ease;
    z-index: 0;
}
.cn-link:hover {
    color: #fff;
    text-decoration: none;
}
.cn-link:hover .cn-link-glow { opacity: 0.12; }
.cn-link:hover .cn-link-icon { transform: scale(1.15); }
.cn-link.active {
    color: #fff;
    font-weight: 600;
}
.cn-link.active .cn-link-glow { opacity: 0.18; }
.cn-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--cn-grad);
    border-radius: 2px;
    z-index: 1;
}

/* Profile dropdown */
.cn-profile { position: relative; }
.cn-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.cn-profile-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
.cn-avatar-ring {
    padding: 2px;
    border-radius: 50%;
    background: var(--cn-grad);
    line-height: 0;
}
.cn-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cn-dark);
    display: block;
}
.cn-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.cn-chevron {
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cn-dropdown.open ~ .cn-profile-btn .cn-chevron,
.cn-profile-btn:has(~ .cn-dropdown.open) .cn-chevron { transform: rotate(180deg); }

.cn-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--cn-surface);
    border: 1px solid var(--cn-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 240px;
    padding: 6px;
    z-index: 1001;
    animation: cnDropIn 0.25s cubic-bezier(0.4,0,0.2,1);
    transform-origin: top right;
}
@keyframes cnDropIn {
    from { opacity: 0; transform: scale(0.95) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.cn-dropdown.open { display: block; }

/* Dropdown header with user info */
.cn-drop-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.cn-drop-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cn-border);
}
.cn-drop-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--cn-text);
    line-height: 1.3;
}
.cn-drop-company {
    font-size: 12px;
    color: var(--cn-muted);
}

.cn-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
}
.cn-drop-item:hover {
    background: #f8fafc;
    text-decoration: none;
    color: var(--cn-text);
    padding-left: 18px;
}
.cn-drop-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    transition: color 0.15s;
}
.cn-drop-item:hover i { color: var(--cn-accent); }
.cn-drop-divider {
    height: 1px;
    background: var(--cn-border);
    margin: 4px 8px;
}
.cn-logout { color: #dc2626; }
.cn-logout:hover { background: #fef2f2; color: #dc2626; padding-left: 18px; }
.cn-logout i { color: #dc2626; }
.cn-logout:hover i { color: #dc2626; }
.cn-badge {
    background: var(--cn-grad);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}

/* Mobile toggle — animated */
.cn-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.cn-toggle:hover { background: rgba(255,255,255,0.08); }
.cn-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cn-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); background: #fff; }
.cn-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cn-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); background: #fff; }

/* Hide old nav/submenu */
.navbar.header { display: none !important; }
.customer-top-submenu { display: none !important; }

/* ── Override office theme #5d78ff ───────────────────────────────────── */
body.customers_login nav,
body.customers_login nav.cn-nav,
body.customers nav.navbar-default,
body nav.navbar-default {
    background: var(--cn-dark) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
body .btn-info,
body.appointments-external-form .btn-info,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
    background: var(--cn-accent) !important;
    border-color: var(--cn-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}
body .btn-info:hover,
body .btn-info:focus {
    background: #1e293b !important;
    border-color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.15) !important;
}
body .btn-primary,
body #wrapper .btn-primary,
body .btn-pfxcbsubmit {
    background: var(--cn-accent) !important;
    border-color: var(--cn-accent) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}
body .btn-primary:hover,
body .btn-primary:focus,
body #wrapper .btn-primary:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.15) !important;
}
.info-bg {
    background: var(--cn-accent) !important;
    border: 1px solid var(--cn-accent) !important;
    color: #fff !important;
}
.nav-tabs > li > a:focus,
.nav-tabs > li > a:hover {
    color: var(--cn-accent) !important;
    border-color: var(--cn-accent) !important;
}
body #wrapper th.sorting_desc,
body #wrapper th.sorting_asc {
    color: var(--cn-accent) !important;
}
body table.dataTable thead .sorting_desc:after,
body table.dataTable thead .sorting_asc:after {
    color: var(--cn-accent) !important;
}
body #wrapper .progress-bar-info {
    background: var(--cn-grad) !important;
}
.pagination > .active > a {
    background: var(--cn-accent) !important;
    border-color: var(--cn-accent) !important;
}
input[type="checkbox"]:checked + label:after,
.radio-primary input[type=radio] + label::after {
    background: var(--cn-accent) !important;
}
input[type=radio]:checked + label::before {
    border-color: var(--cn-accent) !important;
}
body .jquery-comments ul.main li.comment .name {
    color: var(--cn-accent) !important;
}
body .jquery-comments ul.navigation li.active:after {
    background: var(--cn-grad) !important;
}
.send.save.highlight-background.enabled {
    background: var(--cn-accent) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cn-toggle { display: flex; }
    .cn-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--cn-dark-2);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
        flex-direction: column;
        padding: 10px 14px 16px;
        gap: 4px;
        animation: cnSlideDown 0.3s ease;
    }
    @keyframes cnSlideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .cn-menu.open { display: flex; }
    .cn-links {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        gap: 2px;
    }
    .cn-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
    }
    .cn-link.active::after { display: none; }
    .cn-link.active { background: rgba(255,255,255,0.06); }
    .cn-profile { width: 100%; margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }
    .cn-profile-btn { width: 100%; border-radius: 12px; padding: 8px 12px; }
    .cn-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid var(--cn-border);
        margin-top: 6px;
        border-radius: 12px;
    }
    .cn-scrolled .cn-inner { height: 56px; }
}

/* ── Client Project Page ─────────────────────────────────────────────── */

/* Hero */
.cp-hero {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
}
.cp-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.cp-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.3;
}
.cp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.cp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #64748b;
}
.cp-meta-item i {
    font-size: 12px;
    color: #94a3b8;
}
.cp-days {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.cp-days-ok { background: #f0fdf4; color: #16a34a; }
.cp-days-soon { background: #fffbeb; color: #d97706; }
.cp-days-overdue { background: #fef2f2; color: #dc2626; }

/* Actions */
.cp-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.cp-action-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.cp-action-btn i { font-size: 13px; }
.cp-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.cp-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Tags */
.cp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.cp-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

/* Team strip in hero */
.cp-team-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.cp-team-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.cp-team-label i {
    color: #94a3b8;
    margin-right: 4px;
}
.cp-team-avatars {
    display: flex;
    align-items: center;
}
.cp-avatar-wrap {
    display: inline-block;
    margin-left: -6px;
}
.cp-avatar-wrap:first-child { margin-left: 0; }
.cp-avatar,
.cp-avatar-wrap img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Content area */
.cp-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 28px;
}
.cp-tab-body {
    margin-top: 16px;
}

/* Progress Cards */
.cp-progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.cp-pcard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}
.cp-pcard-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}
.cp-pcard-info {
    margin-bottom: 10px;
}
.cp-pcard-value {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}
.cp-pcard-label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cp-pcard-bar {
    width: 100%;
    height: 5px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.cp-pcard-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Team Section */
.cp-team-section {
    margin-bottom: 28px;
}
.cp-section-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-section-heading i {
    color: #94a3b8;
    font-size: 14px;
}
.cp-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.cp-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.15s ease;
}
.cp-member-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.cp-member-avatar { margin-bottom: 10px; }
.cp-member-img,
.cp-member-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cp-member-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

/* Details / Custom Fields */
.cp-details-section {
    margin-bottom: 28px;
}
.cp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.cp-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
}
.cp-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #94a3b8;
}
.cp-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

/* Description */
.cp-description-section {
    margin-bottom: 28px;
}
.cp-description-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}
.cp-description-body p { margin-bottom: 8px; }
.cp-description-body p:last-child { margin-bottom: 0; }
.cp-empty-text {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

/* Finance Section */
.cp-finance-section {
    margin-bottom: 28px;
}
.cp-finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
.cp-finance-card {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.cp-finance-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.cp-finance-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 2px;
}
.cp-finance-money {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .cp-hero { padding: 16px; }
    .cp-hero-top { flex-direction: column; }
    .cp-actions { width: 100%; }
    .cp-action-btn { flex: 1; justify-content: center; }
    .cp-content { padding: 16px; }
    .cp-progress-cards { grid-template-columns: 1fr; }
    .cp-team-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-finance-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Image Gallery ───────────────────────────────────────────────────── */
.cp-gallery {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.cp-gallery-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cp-gallery-label i {
    color: #94a3b8;
}
.cp-gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.cp-gallery-scroll::-webkit-scrollbar {
    height: 6px;
}
.cp-gallery-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.cp-gallery-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.cp-gallery-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    display: block;
    height: 120px;
}
.cp-gallery-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.cp-gallery-item img {
    height: 120px;
    width: auto;
    min-width: 100px;
    object-fit: cover;
    display: block;
}

/* Loading skeleton */
.cp-gallery-loading {
    display: flex;
    gap: 10px;
}
.cp-gallery-skeleton {
    width: 140px;
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: cpShimmer 1.5s infinite;
    flex-shrink: 0;
}
@keyframes cpShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .cp-gallery-item { height: 90px; }
    .cp-gallery-item img { height: 90px; min-width: 80px; }
    .cp-gallery-skeleton { height: 90px; width: 100px; }
}

/* ── Dashboard Mosaic Gallery ────────────────────────────────────────── */
.cd-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
}
.cd-mosaic-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    transition: all 0.25s ease;
}
.cd-mosaic-item:hover {
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cd-mosaic-item img,
.cd-mosaic-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cd-mosaic-item:hover img,
.cd-mosaic-item:hover video {
    transform: scale(1.08);
}
/* Video play button overlay */
.cd-mosaic-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    z-index: 2;
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.cd-mosaic-item:hover .cd-mosaic-play {
    background: rgba(0,0,0,0.7);
    transform: translate(-50%, -50%) scale(1.1);
}
.cd-mosaic-featured {
    grid-column: span 2;
    grid-row: span 2;
}
.cd-mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cd-mosaic-item:hover .cd-mosaic-overlay {
    opacity: 1;
}
.cd-mosaic-overlay span {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Mosaic loading skeleton */
.cd-mosaic-loading {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
}
.cd-mosaic-skeleton {
    border-radius: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: cpShimmer 1.5s infinite;
}
.cd-mosaic-skeleton:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .cd-mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
    .cd-mosaic-loading { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
}

/* ── Audio Player ──────────────────────────────────────────────────── */
.cd-audio-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cd-audio-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.cd-audio-track:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.cd-audio-track.cd-audio-active {
    background: #f5f3ff;
    border-color: #c4b5fd;
}
.cd-audio-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-audio-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.cd-audio-active .cd-audio-icon {
    animation: cdAudioPulse 1.5s ease-in-out infinite;
}
@keyframes cdAudioPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.cd-audio-meta {
    flex: 1;
    min-width: 0;
}
.cd-audio-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-audio-project {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.cd-audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-audio-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cd-audio-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #8b5cf6;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.cd-audio-play:hover { background: #7c3aed; transform: scale(1.08); }
.cd-audio-active .cd-audio-play { background: #6d28d9; }
.cd-audio-progress {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.cd-audio-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 3px;
    transition: width 0.1s linear;
}
.cd-audio-time {
    font-size: 12px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
}

@media (max-width: 768px) {
    .cd-audio-track { padding: 10px 14px; }
    .cd-audio-icon { width: 32px; height: 32px; font-size: 12px; }
    .cd-audio-name { font-size: 13px; }
}

/* ── Lightbox ────────────────────────────────────────────────────────── */
.cd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cd-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.cd-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cd-lb-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cd-lb-content img,
.cd-lb-content video {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.cd-lightbox.open .cd-lb-content img,
.cd-lightbox.open .cd-lb-content video {
    animation: cdLbZoom 0.3s ease;
}
@keyframes cdLbZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.cd-lb-caption {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}
.cd-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
.cd-lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.cd-lb-prev,
.cd-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cd-lb-prev { left: 16px; }
.cd-lb-next { right: 16px; }
.cd-lb-prev:hover,
.cd-lb-next:hover {
    background: rgba(255, 255, 255, 0.25);
}
.cd-mosaic-item,
.cp-gallery-item {
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════ */
/* ── CREATIVE HOME (cx-) ─────────────────────────────────────────────  */
/* ══════════════════════════════════════════════════════════════════════ */

/* Hero */
.cx-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    border-radius: 0 0 28px 28px;
    padding: 52px 40px 44px;
    margin: -20px -15px 0;
    overflow: hidden;
}
/* Hero skeleton shimmer */
.cx-hero-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%) !important;
    background-size: 200% 100% !important;
    animation: cxShimmer 1.8s ease infinite !important;
    opacity: 1 !important;
}
@keyframes cxShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero video */
.cx-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.cx-hero-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.cx-hero-has-video .cx-hero-vid { opacity: 0.45; }
.cx-hero-has-video .cx-hero-bg { opacity: 0 !important; }

.cx-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4);
    transition: opacity 1.2s ease;
}
.cx-hero.cx-hero-has-img .cx-hero-bg {
    opacity: 1;
    background-image: var(--hero-img);
}
.cx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(51,65,85,0.3), transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(71,85,105,0.2), transparent 50%);
    z-index: 1;
}
.cx-hero-content {
    position: relative;
    z-index: 2;
}
.cx-hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.cx-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-weight: 500;
}

/* Announcements in hero */
.cx-announcements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.cx-ann {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.cx-ann:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
}
.cx-ann i { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Hero media button */
.cx-hero-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.cx-hero-media-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.cx-hero-media-btn i { font-size: 14px; }

/* Body */
.cx-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

/* Section */
.cx-section {
    margin-bottom: 32px;
}
.cx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cx-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.cx-link {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}
.cx-link:hover { color: #1e293b; text-decoration: none; }

/* ── Project Cards (visual) ──────────────────────────────────────────── */
.cx-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.cx-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.cx-pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

/* Project image area */
.cx-pcard-img {
    height: 120px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.cx-pcard.cx-pcard-has-img .cx-pcard-img {
    height: 160px;
}
.cx-pcard-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

/* Project body */
.cx-pcard-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cx-pcard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.cx-pcard-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}
.cx-pcard-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cx-pcard-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.cx-pcard-meta i {
    margin-right: 4px;
    font-size: 11px;
}
.cx-pcard-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.cx-pcard-team {
    display: flex;
}
.cx-pcard-avatar,
.cx-pcard-team img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.cx-pcard-team img:first-child { margin-left: 0; }
.cx-pcard-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cx-pcard-bar {
    width: 60px;
    height: 5px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.cx-pcard-fill {
    height: 100%;
    background: #0f172a;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.cx-pcard-percent {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
}

/* ── Unpaid banner ───────────────────────────────────────────────────── */
.cx-unpaid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    margin-bottom: 24px;
}
.cx-unpaid-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}
.cx-unpaid-left i { font-size: 16px; }
.cx-unpaid-amount {
    font-size: 20px;
    font-weight: 800;
    color: #92400e;
    text-decoration: none;
}
.cx-unpaid-amount:hover {
    color: #78350f;
    text-decoration: none;
}

/* ── Compact info bar ────────────────────────────────────────────────── */
.cx-info-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    flex-wrap: wrap;
}
.cx-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: background 0.15s;
    flex: 1;
    min-width: 120px;
}
.cx-info-item:hover {
    background: #e2e8f0;
    text-decoration: none;
    color: #1e293b;
}
.cx-info-item i {
    font-size: 16px;
    flex-shrink: 0;
}
.cx-info-num {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.cx-info-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.cx-info-link {
    flex: none;
    min-width: auto;
}
.cx-info-link .cx-info-label {
    color: #0f172a;
    font-weight: 600;
}

/* ── Page background ─────────────────────────────────────────────────── */
body.customers {
    background: #f1f5f9 !important;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cx-hero { padding: 36px 20px 32px; border-radius: 0 0 20px 20px; }
    .cx-hero-title { font-size: 26px; }
    .cx-projects { grid-template-columns: 1fr; }
    .cx-unpaid { flex-direction: column; gap: 8px; text-align: center; }
    .cx-info-bar { flex-direction: column; }
    .cx-info-item { width: 100%; }
}
