* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #1e2130;
    --bg-hover: #252838;
    --border: #2a2d3a;
    --text: #e4e6f0;
    --text-secondary: #8b8fa3;
    --text-muted: #5c6078;
    --accent: #4f6ef7;
    --accent-hover: #3d5ce5;
    --accent-glow: rgba(79, 110, 247, 0.15);
    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.12);
    --orange: #fb923c;
    --orange-bg: rgba(251, 146, 60, 0.12);
    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.12);
    --purple: #a78bfa;
    --purple-bg: rgba(167, 139, 250, 0.12);
    --blue-bg: rgba(79, 110, 247, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.25);
    --transition: 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

.app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.logo-text {
    font-weight: 600;
    font-size: 15px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-bottom: 2px;
    position: relative;
    font-size: 14px;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.badge {
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.menu-btn svg {
    width: 24px;
    height: 24px;
}

.search-bar {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
}

.search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.top-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Pages */
.page {
    display: none;
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    width: 100%;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--red-bg);
    color: var(--red);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.text-btn:hover {
    text-decoration: underline;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon.blue { background: var(--blue-bg); color: var(--accent); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }
.stat-icon.orange { background: var(--orange-bg); color: var(--orange); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-trend {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.stat-trend.up {
    color: var(--green);
    background: var(--green-bg);
}

.stat-trend.down {
    color: var(--red);
    background: var(--red-bg);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

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

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

/* Activity List */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.blue { background: var(--accent); }
.activity-dot.green { background: var(--green); }
.activity-dot.orange { background: var(--orange); }
.activity-dot.purple { background: var(--purple); }

.activity-text {
    font-size: 13px;
    flex: 1;
}

.activity-text strong {
    color: var(--text);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Pipeline Stages */
.pipeline-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pipeline-stage:last-child {
    margin-bottom: 0;
}

.pipeline-label {
    font-size: 13px;
    width: 90px;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.pipeline-bar-container {
    flex: 1;
    height: 28px;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.pipeline-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.pipeline-bar.lead { background: var(--accent); }
.pipeline-bar.proposal { background: var(--purple); }
.pipeline-bar.in-progress { background: var(--orange); }
.pipeline-bar.review { background: #06b6d4; }
.pipeline-bar.complete { background: var(--green); }

.pipeline-count {
    font-size: 13px;
    font-weight: 600;
    width: 30px;
    text-align: right;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.message-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    cursor: default;
    position: relative;
}

.message-cell:hover {
    white-space: normal;
    overflow: visible;
    background: var(--bg-card);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    max-width: 320px;
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-new { background: var(--blue-bg); color: var(--accent); }
.status-contacted { background: var(--purple-bg); color: var(--purple); }
.status-qualified { background: var(--green-bg); color: var(--green); }
.status-closed { background: var(--red-bg); color: var(--red); }
.status-active { background: var(--green-bg); color: var(--green); }
.status-draft { background: var(--orange-bg); color: var(--orange); }
.status-published { background: var(--green-bg); color: var(--green); }

.action-btns {
    display: flex;
    gap: 6px;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: calc(100vh - 180px);
}

.kanban-column {
    min-width: 260px;
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.column-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.column-dot.lead { background: var(--accent); }
.column-dot.proposal { background: var(--purple); }
.column-dot.in-progress { background: var(--orange); }
.column-dot.review { background: #06b6d4; }
.column-dot.complete { background: var(--green); }

.column-header h4 {
    font-size: 13px;
    font-weight: 600;
}

.column-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 1px 8px;
    border-radius: 10px;
}

.column-cards {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: grab;
    transition: all var(--transition);
}

.kanban-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 110, 247, 0.15);
}

.kanban-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: none;
    border-style: dashed;
    border-color: var(--accent);
}

.kanban-card-ghost {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: 0 12px 40px rgba(79, 110, 247, 0.3), 0 0 0 1px rgba(79, 110, 247, 0.2);
    transform: rotate(2deg) scale(1.04);
    transition: transform 0.15s ease;
    max-width: 260px;
}

.kanban-card-ghost .kanban-card-title {
    color: var(--text);
}

.kanban-card-ghost .kanban-card-client {
    color: var(--text-secondary);
}

.drop-indicator {
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 4px 0;
    box-shadow: 0 0 10px rgba(79, 110, 247, 0.5);
    animation: dropPulse 1s ease infinite;
}

@keyframes dropPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(79, 110, 247, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 20px rgba(79, 110, 247, 0.8); }
}

.kanban-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.kanban-card-client {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-card-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-secondary);
}

.kanban-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.client-card:hover {
    border-color: var(--accent);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.client-card-name {
    font-weight: 600;
    font-size: 14px;
}

.client-card-company {
    font-size: 12px;
    color: var(--text-secondary);
}

.client-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.client-detail svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Content List */
.content-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition);
}

.content-item:hover {
    border-color: var(--accent);
}

.content-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--blue-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.content-icon svg {
    width: 18px;
    height: 18px;
}

.content-info {
    flex: 1;
}

.content-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.content-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter select */
select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

select:focus {
    border-color: var(--accent);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
}

.settings-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.toggle-group {
    margin-bottom: 14px;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 13px;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    width: 42px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background var(--transition);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform var(--transition);
}

.toggle-label input:checked + .toggle-switch {
    background: var(--accent);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(18px);
}

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

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 13px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    min-width: 260px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 200;
        transition: left var(--transition);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .menu-btn {
        display: block;
    }

    .page {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kanban-board {
        min-height: auto;
    }

    .kanban-column {
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        display: none;
    }
}

/* Revenue Page */
.revenue-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.timeframe-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tab-btn {
    padding: 8px 18px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.chart-card {
    margin-bottom: 0;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 340px;
    padding: 10px 0;
}

#revenueChart {
    width: 100%;
    height: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Stripe badge */
.stripe-badge {
    background: linear-gradient(135deg, #635bff, #7a73ff);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.stripe-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stripe-status.succeeded { background: var(--green-bg); color: var(--green); }
.stripe-status.paid { background: var(--green-bg); color: var(--green); }
.stripe-status.pending { background: var(--orange-bg); color: var(--orange); }
.stripe-status.failed { background: var(--red-bg); color: var(--red); }
.stripe-status.in_transit { background: var(--blue-bg); color: var(--accent); }

.status-stripe { background: rgba(99, 91, 255, 0.12); color: #635bff; }

/* Drag and drop visual feedback */
.kanban-column.drag-over {
    background: var(--accent-glow);
    border-color: var(--accent);
    box-shadow: inset 0 0 20px rgba(79, 110, 247, 0.08), 0 0 0 1px var(--accent);
    transition: all 0.2s ease;
}

.kanban-column.drag-over .column-header {
    color: var(--accent);
}
