/* =====================================================
   MOTORS365 - Dealer Portal Styles
   ===================================================== */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: #334155;
    --border-light: #475569;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Loading State */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   AUTH PAGES
   ===================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 48px;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-input {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.auth-error {
    color: var(--danger);
    font-size: 0.875rem;
    text-align: center;
    min-height: 1.25rem;
}

.auth-success {
    color: #22c55e;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

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

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

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

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* =====================================================
   DEALER LAYOUT
   ===================================================== */

.dealer-layout {
    display: flex;
    min-height: 100vh;
}

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

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    height: 32px;
}

.sidebar-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 1rem 0.25rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.text-muted {
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

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

.nav-item.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-right: 3px solid var(--primary);
}

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

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

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-company {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Main Content */
.dealer-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* =====================================================
   PAGE ELEMENTS
   ===================================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-grid.small {
    grid-template-columns: repeat(3, 1fr);
}

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

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

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

.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.stat-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
}

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

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

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

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.data-table td {
    font-size: 0.875rem;
}

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

.loading-row {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem !important;
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-badge.completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-badge.processing { background: rgba(59, 130, 246, 0.15); color: var(--primary, #3b82f6); }
.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-badge.failed { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-badge.active { background: rgba(34, 197, 94, 0.15); color: var(--success); }

.plan-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    text-transform: capitalize;
}

.type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: 0.5rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-input {
    min-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 0.875rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.team-member {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.member-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.member-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.team-limit-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--info);
}

/* API Docs */
.api-docs h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.api-docs h4:first-child {
    margin-top: 0;
}

.code-block {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8125rem;
    overflow-x: auto;
}

.api-docs code:not(.code-block) {
    padding: 0.125rem 0.375rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.endpoint:last-child {
    border-bottom: none;
}

.endpoint .method {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
}

.endpoint .method.get { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.endpoint .method.post { background: rgba(59, 130, 246, 0.15); color: var(--info); }

.api-disabled-notice {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.api-disabled-notice .notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.api-disabled-notice h3 {
    margin-bottom: 0.5rem;
}

.api-disabled-notice p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Plan Info */
.plan-info {
    margin-bottom: 1.5rem;
}

.current-plan {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.plan-status {
    font-size: 0.8125rem;
    color: var(--success);
}

.plan-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

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

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

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

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

/* Plan Actions & Upgrade Modal */
.plan-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.upgrade-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.plan-option {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.plan-option.current {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.plan-option h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.plan-option .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-option .plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-option ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.plan-option li {
    padding: 0.25rem 0;
}

.plan-option li::before {
    content: '✓ ';
    color: var(--success);
}

.current-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .upgrade-plans {
        grid-template-columns: 1fr;
    }
}

/* Full Appraisal Detail Modal */
.appraisal-detail-full {
    max-height: 70vh;
    overflow-y: auto;
}

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

.appraisal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.appraisal-header p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 3px solid;
}

.score-circle.score-good { border-color: var(--success); }
.score-circle.score-medium { border-color: var(--gold); }
.score-circle.score-poor { border-color: var(--error); }

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.recommendation-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.recommendation-box.positive { background: rgba(34, 197, 94, 0.15); border-left: 3px solid var(--success); }
.recommendation-box.warning { background: rgba(245, 158, 11, 0.15); border-left: 3px solid var(--gold); }
.recommendation-box.negative { background: rgba(239, 68, 68, 0.15); border-left: 3px solid var(--error); }

.recommendation-box strong { display: block; margin-bottom: 0.25rem; }
.recommendation-box p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
.recommendation-box small { display: block; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); }

.analysis-section {
    margin-bottom: 1.25rem;
}

.analysis-section h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.valuation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.val-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.val-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.val-range {
    font-weight: 600;
    font-size: 0.875rem;
}

.valuation-unavailable {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px dashed var(--border);
}

.valuation-unavailable p {
    margin: 0;
    color: var(--text-secondary);
}

.valuation-unavailable small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.breakdown-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.breakdown-item small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.risk-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.risk-item {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid;
}

.risk-item.risk-critical { background: rgba(239, 68, 68, 0.15); border-color: var(--error); }
.risk-item.risk-high { background: rgba(245, 158, 11, 0.15); border-color: var(--gold); }
.risk-item.risk-medium { background: rgba(59, 130, 246, 0.1); border-color: var(--info); }

.risk-item strong { font-size: 0.875rem; }
.risk-item p { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--text-secondary); }

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.insights-list li span:first-child {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.insight-positive span:first-child { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.insight-warning span:first-child { background: rgba(245, 158, 11, 0.2); color: var(--gold); }
.insight-neutral span:first-child { background: var(--bg-primary); color: var(--text-secondary); }

.mot-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mot-stat {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.mot-stat strong {
    display: block;
    font-size: 1.25rem;
}

.mot-stat span {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maintenance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    border-left: 3px solid var(--border);
}

.maintenance-item.urgency-high { border-color: var(--error); }
.maintenance-item.urgency-medium { border-color: var(--gold); }
.maintenance-item.urgency-low { border-color: var(--success); }

.maint-name { flex: 1; }
.maint-due { color: var(--text-secondary); margin: 0 1rem; }
.maint-cost { font-weight: 600; }

/* Known Issues */
.known-issues {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.issue-item {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid;
    background: var(--bg-primary);
}

.issue-item.severity-high { border-color: var(--error); }
.issue-item.severity-medium { border-color: var(--gold); }
.issue-item.severity-low { border-color: var(--info); }

.issue-item strong { font-size: 0.875rem; }
.issue-item p { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--text-secondary); }

/* Negotiation Points */
.negotiation-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.negotiation-item {
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.neg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neg-saving {
    font-weight: 600;
    color: var(--success);
}

.negotiation-item small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Viewing Checklist */
.checklist-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-category {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.checklist-category summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
}

.checklist-category summary:hover {
    background: var(--border);
}

.checklist-category ul {
    list-style: none;
    padding: 0 1rem 0.75rem;
    margin: 0;
}

.checklist-category li {
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
}

.checklist-category li:last-child {
    border-bottom: none;
}

.checklist-category li.priority-high::before {
    content: '●';
    color: var(--error);
    margin-right: 0.5rem;
}

.checklist-category li.priority-medium::before {
    content: '●';
    color: var(--gold);
    margin-right: 0.5rem;
}

.checklist-category li.priority-low::before {
    content: '●';
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

/* MOT History */
.mot-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mot-test {
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border-left: 3px solid;
}

.mot-test.pass { border-color: var(--success); }
.mot-test.fail { border-color: var(--error); }

.mot-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.mot-result {
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.mot-test.pass .mot-result { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.mot-test.fail .mot-result { background: rgba(239, 68, 68, 0.2); color: var(--error); }

.mot-mileage {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.mot-advisories, .mot-failures {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.mot-advisories strong { color: var(--gold); }
.mot-failures strong { color: var(--error); }

.mot-advisories ul, .mot-failures ul {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

.mot-advisories li, .mot-failures li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.mot-advisories li::before, .mot-failures li::before {
    content: '–';
    position: absolute;
    left: 0;
}

.mot-more {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    color: var(--primary);
}

/* Page Subtitle */
.page-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Appraisal Detail Grid */
.appraisal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-sidebar .card {
    margin: 0;
}

/* Vehicle Details Grid */
.vehicle-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.detail-item strong {
    font-size: 1rem;
}

/* Card Header with Score */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
}

.card-header .score-circle {
    width: 50px;
    height: 50px;
}

.card-header .score-value {
    font-size: 1.125rem;
}

/* Valuation List */
.valuation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.val-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.val-row:last-child {
    border-bottom: none;
}

.val-row span {
    color: var(--text-secondary);
}

/* Loading Page */
.loading-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .appraisal-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .vehicle-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dealer-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .dealer-sidebar.open {
        transform: translateX(0);
    }
    
    .dealer-main {
        margin-left: 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =====================================================
   UPGRADE PAGE
   ===================================================== */

.upgrade-page {
    max-width: 1200px;
    margin: 0 auto;
}

.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.plan-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-card.current {
    border-color: var(--success);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-features {
    flex: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.plan-features li.disabled {
    color: var(--text-muted);
}

.plan-features .check {
    color: var(--success);
    font-weight: bold;
}

.plan-features .x {
    color: var(--text-muted);
}

.plan-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.plan-footer .btn {
    width: 100%;
}

.current-plan-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--success);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.upgrade-benefits {
    margin-top: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .upgrade-plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =====================================================
   INTEGRATIONS PAGE
   ===================================================== */

.integrations-disabled-notice,
.api-disabled-notice {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.integrations-disabled-notice .notice-icon,
.api-disabled-notice .notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.integrations-disabled-notice h3,
.api-disabled-notice h3 {
    margin-bottom: 0.5rem;
}

.integrations-disabled-notice p,
.api-disabled-notice p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.integration-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.integration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.integration-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.provider-badge {
    display: inline-block;
    background: var(--bg-hover);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.webhook-url {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    word-break: break-all;
}

.integration-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-item {
    font-size: 0.875rem;
}

.detail-item .label {
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.integration-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge.pending_setup {
    background: var(--warning);
    color: #000;
}

.status-badge.error {
    background: var(--danger);
}

.status-badge.paused {
    background: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin: 0.25rem 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-item input {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 640px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .integration-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* DMS Provider Card Selection */
.dms-provider-selection {
    padding: 1rem 0;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.selection-header h4 {
    margin: 0;
    font-size: 1.125rem;
}

.selection-header p {
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.dms-provider-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dms-provider-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.dms-provider-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.dms-provider-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.dms-provider-card .provider-logo {
    width: 64px;
    height: 40px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.dms-provider-card h5 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.dms-provider-card p {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.dms-provider-card .auth-type {
    display: inline-block;
    background: var(--bg-hover);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dms-config-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.dms-config-form h4 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.dms-setup-help {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dms-setup-help strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.dms-setup-help a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.dms-setup-help a:hover {
    text-decoration: underline;
}

.dms-config-form .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .dms-provider-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .selection-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   REFERRAL PROGRAMME STYLES
   ===================================================== */

.page-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-badge.gold {
    background: rgba(212, 168, 85, 0.15);
    color: #d4a855;
    border: 1px solid rgba(212, 168, 85, 0.3);
}

.nav-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
}

.nav-badge.gold {
    background: rgba(212, 168, 85, 0.2);
    color: #d4a855;
}

.stat-icon.gold {
    background: rgba(212, 168, 85, 0.15);
    color: #d4a855;
}

.referral-hero-card {
    border: 1px solid rgba(212, 168, 85, 0.2);
    background: linear-gradient(135deg, rgba(212, 168, 85, 0.05) 0%, rgba(30, 41, 59, 1) 100%);
}

.referral-share h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.referral-share .text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.referral-link-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.referral-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    font-size: 0.875rem;
}

.referral-code-display {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.referral-code-display code {
    background: rgba(212, 168, 85, 0.1);
    color: #d4a855;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.slug-prefix {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.slug-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    max-width: 200px;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.earning-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.earning-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.earning-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.earning-value.highlight {
    color: #22c55e;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 85, 0.15);
    color: #d4a855;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-muted {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

@media (max-width: 768px) {
    .referral-link-group {
        flex-direction: column;
    }
    
    .referral-link-input {
        width: 100%;
    }
    
    .earnings-grid {
        grid-template-columns: 1fr;
    }
    
    .slug-input {
        max-width: 100%;
    }
}

/* ============================================
   DEALER LOGO - Sidebar & Upload
   ============================================ */

.dealer-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg-main, #0f172a);
    border: 1px solid var(--border, #334155);
    flex-shrink: 0;
}

/* Logo upload area on settings page */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 2px dashed var(--border, #334155);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.logo-upload-area.dragover {
    border-color: var(--primary, #3b82f6);
    background: rgba(59, 130, 246, 0.05);
}

.logo-preview {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: var(--bg-main, #0f172a);
    border: 1px solid var(--border, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted, #64748b);
}

.logo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo-upload-status {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.logo-upload-status.error {
    color: #ef4444;
}

.logo-upload-status.success {
    color: #22c55e;
}

.logo-upload-status.uploading {
    color: var(--primary, #3b82f6);
}

@media (max-width: 640px) {
    .logo-upload-area {
        flex-direction: column;
        text-align: center;
    }
}
