/* ============================================
   QUANTUM ECHO - MAIN STYLESHEET
   ============================================ */

/* --------------------------------------------
   CSS VARIABLES
   -------------------------------------------- */
   :root {
    /* Colors */
    --bg-dark: #0f1724;
    --bg-sidebar: #1a2332;
    --bg-card: #1e2a3a;
    --bg-hover: #2a3a4a;
    
    --border: #2a3a52;
    --border-light: #3a4a62;
    
    --text: #e8eaed;
    --text-muted: #7a8ca3;
    --text-dark: #0f1724;
    
    --primary: #4ecdc4;
    --primary-hover: #3dbdb5;
    
    --success: #4ecdc4;
    --warning: #f4a261;
    --danger: #e63946;
    --info: #7a8ca3;
    
    /* Performance colors */
    --perf-high: #4ecdc4;
    --perf-medium: #f4d35e;
    --perf-low: #e9724c;
    --perf-critical: #e63946;
    
    /* Spacing */
    --sidebar-width: 240px;
    --header-height: 60px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: 0.2s ease;
}

/* --------------------------------------------
   RESET & BASE
   -------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   APP LAYOUT
   -------------------------------------------- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    min-height: 100vh;
}

/* --------------------------------------------
   SIDEBAR
   -------------------------------------------- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}

.sidebar-user {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.sidebar-user:hover {
    background: var(--bg-hover);
}

.sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    margin: 0 auto 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-avatar svg {
    width: 100%;
    height: 100%;
}

.sidebar-name {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

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

/* Navigation */
.nav-menu {
    flex: 1;
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.nav-item.active {
    background: var(--bg-hover);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    opacity: 1;
}

/* Credits (Operator) */
.sidebar-credits {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
}

/* --------------------------------------------
   PAGE HEADER
   -------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.page-subtitle {
    font-weight: 400;
    color: var(--text-muted);
}

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

/* --------------------------------------------
   BUTTONS
   -------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
}

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

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

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

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

.btn-danger:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-hover);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
}

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

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.form-label .required {
    color: var(--danger);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.form-input.error {
    border-color: var(--danger);
}

.form-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237a8ca3' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.radio-input,
.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Phone input */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    width: 70px;
    text-align: center;
}

/* Search input */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 36px;
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* --------------------------------------------
   TABS
   -------------------------------------------- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

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

/* Profile card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-hover);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.info-section h3,
.info-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.info-label {
    color: var(--text-muted);
    width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text);
}

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

.data-table thead {
    background: var(--bg-sidebar);
}

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

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

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

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

/* Table header with filter/sort */
.header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    color: var(--primary);
    cursor: pointer;
}

.sort-icons {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    line-height: 1;
    color: var(--text-muted);
}

.sort-icons span {
    cursor: pointer;
}

.sort-icons span:hover {
    color: var(--primary);
}

/* Cell variations */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-hover);
}

.cell-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
}

/* --------------------------------------------
   BADGES & STATUS
   -------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-primary {
    background: var(--primary);
    color: var(--text-dark);
}

.badge-secondary {
    background: var(--bg-hover);
    color: var(--text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: rgba(78, 205, 196, 0.15);
    color: var(--success);
}

.status-active::before {
    background: var(--success);
}

.status-inactive {
    background: rgba(122, 140, 163, 0.15);
    color: var(--text-muted);
}

.status-inactive::before {
    background: var(--text-muted);
}

.status-blocked {
    background: rgba(230, 57, 70, 0.15);
    color: var(--danger);
}

.status-blocked::before {
    background: var(--danger);
}

.status-online {
    background: rgba(78, 205, 196, 0.15);
    color: var(--success);
}

.status-online::before {
    background: var(--success);
}

.status-offline {
    color: var(--text-muted);
}

/* Role badges */
.role-badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-hover);
    color: var(--text);
    border-radius: var(--radius-sm);
    margin-right: 4px;
}

.role-badge.manager {
    background: rgba(78, 205, 196, 0.15);
    color: var(--primary);
}

/* Performance badge */
.perf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.perf-high {
    background: rgba(78, 205, 196, 0.15);
    color: var(--perf-high);
}

.perf-medium {
    background: rgba(244, 211, 94, 0.15);
    color: var(--perf-medium);
}

.perf-low {
    background: rgba(233, 114, 76, 0.15);
    color: var(--perf-low);
}

.perf-critical {
    background: rgba(230, 57, 70, 0.15);
    color: var(--perf-critical);
}

/* Feature tags */
.feature-tag {
    display: inline-flex;
    padding: 4px 8px;
    font-size: 11px;
    background: var(--bg-hover);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    margin-right: 4px;
}

.feature-more {
    color: var(--primary);
    font-size: 11px;
    font-weight: 500;
}

/* --------------------------------------------
   PAGINATION
   -------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
}

/* --------------------------------------------
   MODALS
   -------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 700px;
}

.modal-xl {
    max-width: 900px;
}

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

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* Confirm modal */
.modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.modal-icon.warning {
    background: rgba(244, 162, 97, 0.15);
    border-radius: 50%;
}

/* --------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.toast.error .toast-icon {
    background: var(--danger);
}

.toast.warning .toast-icon {
    background: var(--warning);
}

.toast-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

/* --------------------------------------------
   CHARTS SECTION
   -------------------------------------------- */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

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

.chart-tabs {
    display: flex;
    gap: 4px;
}

.chart-tab {
    padding: 8px 16px;
    font-size: 13px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.chart-tab:hover {
    color: var(--text);
}

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

.chart-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

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

.legend-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary);
}

.legend-item:nth-child(2)::before {
    background: var(--text-muted);
}

/* Donut chart container */
.donut-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.donut-legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* Performance legend colors */
.perf-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.perf-legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.perf-legend-item:nth-child(1)::before { background: var(--perf-high); }
.perf-legend-item:nth-child(2)::before { background: var(--perf-medium); }
.perf-legend-item:nth-child(3)::before { background: var(--perf-low); }
.perf-legend-item:nth-child(4)::before { background: var(--perf-critical); }

/* --------------------------------------------
   BOTTOM GRID (Dashboard)
   -------------------------------------------- */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Circular progress */
.circular-stats {
    display: flex;
    gap: 24px;
}

.circular-stat {
    text-align: center;
}

.circular-progress {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress .bg {
    fill: none;
    stroke: var(--bg-hover);
    stroke-width: 6;
}

.circular-progress .progress {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.circular-progress .value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

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

/* --------------------------------------------
   AUTH LAYOUT
   -------------------------------------------- */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    padding: 24px 32px;
}

.auth-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-links {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* --------------------------------------------
   ONBOARDING / PRICING
   -------------------------------------------- */
.onboarding-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
}

.breadcrumb-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
}

.breadcrumb-back:hover {
    background: var(--bg-hover);
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Pricing cards */
.pricing-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 320px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover,
.pricing-card.featured {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(78, 205, 196, 0.1) 100%);
}

.price {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.price-currency {
    font-size: 24px;
    font-weight: 400;
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 16px;
}

.plan-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.plan-features {
    text-align: left;
    margin-bottom: 24px;
}

.plan-features .feature-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.plan-features .feature-row:last-child {
    border-bottom: none;
}

.plan-features .feature-value {
    font-weight: 600;
    color: var(--primary);
}

/* Checkout */
.checkout-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.checkout-summary {
    width: 280px;
    padding: 32px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    text-align: center;
}

.checkout-form {
    flex: 1;
    padding: 32px;
}

.checkout-form h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.card-inputs {
    display: grid;
    grid-template-columns: 1fr 60px 60px 80px;
    gap: 12px;
}

.billing-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.billing-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 12px;
}

/* --------------------------------------------
   TREATMENT PLAYER
   -------------------------------------------- */
.player-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.treatment-code {
    text-align: center;
    font-family: monospace;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.visualization-container {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
}

.visualization-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
}

.channel-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    width: 40px;
}

.time-display {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

/* --------------------------------------------
   SURVEYS
   -------------------------------------------- */
.survey-card {
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.survey-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 16px;
}

.survey-question {
    margin-bottom: 16px;
}

.question-text {
    font-size: 14px;
    margin-bottom: 12px;
}

.rating-scale {
    display: flex;
    gap: 8px;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rating-radio {
    width: 32px;
    height: 32px;
    appearance: none;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.rating-radio:hover {
    border-color: var(--primary);
}

.rating-radio:checked {
    background: var(--primary);
    border-color: var(--primary);
}

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

/* --------------------------------------------
   EXPANDABLE ROWS (Store)
   -------------------------------------------- */
.expand-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.expand-btn.expanded {
    transform: rotate(90deg);
}

.expanded-content {
    display: none;
    background: var(--bg-hover);
}

.expanded-content.show {
    display: table-row;
}

.expanded-inner {
    display: flex;
    gap: 24px;
    padding: 20px;
}

.expanded-image {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.expanded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanded-details {
    flex: 1;
    display: flex;
    gap: 32px;
}

.detail-section {
    flex: 1;
}

.detail-section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-label {
    color: var(--text-muted);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    font-size: 12px;
    color: var(--text);
    padding: 4px 0;
}

.invoice-section {
    width: 180px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.invoice-label {
    color: var(--text-muted);
}

.invoice-value {
    font-weight: 600;
}

/* --------------------------------------------
   TEAM AVATARS
   -------------------------------------------- */
.team-avatars {
    display: flex;
}

.team-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.team-avatar:first-child {
    margin-left: 0;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------
   DROPDOWN
   -------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
    width: 100%;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 4px;
    z-index: 50;
    display: none;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item.selected {
    color: var(--primary);
}

/* Filter dropdown in table headers */
.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 4px;
    z-index: 50;
    display: none;
}

.filter-dropdown.open {
    display: block;
}

.filter-dropdown-header {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.filter-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-dropdown-item:hover {
    background: var(--bg-hover);
}

.filter-dropdown-item.selected {
    background: var(--bg-hover);
    color: var(--primary);
}

.filter-dropdown-footer {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.filter-btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

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

.filter-btn-apply {
    background: var(--primary);
    color: var(--text-dark);
}

/* --------------------------------------------
   SESSION FLOW BREADCRUMB
   -------------------------------------------- */
.session-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.session-breadcrumb .breadcrumb-item {
    color: var(--text-muted);
}

.session-breadcrumb .breadcrumb-item.active {
    color: var(--text);
    font-weight: 500;
}

.session-breadcrumb .breadcrumb-sep {
    color: var(--text-muted);
}

/* --------------------------------------------
   TAGS SECTION (Session inputs)
   -------------------------------------------- */
.tags-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.tags-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.tags-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover,
.tag.selected {
    border-color: var(--primary);
    color: var(--primary);
}

/* Receptors grid */
.receptors-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.receptors-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.receptors-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.receptor-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.receptor-item:hover,
.receptor-item.selected {
    border-color: var(--primary);
}

.receptor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------
   FREQUENCY PANEL
   -------------------------------------------- */
.frequency-settings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.settings-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.setting-label {
    font-size: 12px;
    color: var(--text-muted);
    width: 50px;
}

.setting-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    text-align: center;
}

.setting-unit {
    font-size: 12px;
    color: var(--text-muted);
    width: 30px;
}

.bottom-settings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bottom-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.bottom-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bottom-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
}

/* --------------------------------------------
   RESONANCE VALUES
   -------------------------------------------- */
.resonance-value {
    font-weight: 600;
    font-size: 13px;
}

.resonance-positive {
    color: var(--success);
}

.resonance-negative {
    color: var(--danger);
}

/* --------------------------------------------
   UTILITIES
   -------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .frequency-settings,
    .bottom-settings {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        flex-direction: column;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .checkout-card {
        flex-direction: column;
    }
    
    .checkout-summary {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .card-inputs,
    .billing-row {
        grid-template-columns: 1fr;
    }
}