/* =====================================================
   CUSTOMER DASHBOARD v2.0 - DesiDex Design System
   ===================================================== */

:root {
    --cdash-primary-900: #0f766e;
    --cdash-primary-600: #14b8a6;
    --cdash-primary-400: #2dd4bf;
    --cdash-primary-50: #f0fdfa;
    --cdash-gray-900: #111827;
    --cdash-gray-600: #4b5563;
    --cdash-gray-500: #6b7280;
    --cdash-gray-400: #9ca3af;
    --cdash-gray-300: #d1d5db;
    --cdash-gray-200: #e5e7eb;
    --cdash-gray-100: #f3f4f6;
    --cdash-gray-50: #f9fafb;
    --cdash-danger: #ef4444;
    --cdash-warning: #f59e0b;
    --cdash-success: #10b981;
    --cdash-info: #3b82f6;
}

/* Page Layout */
.cdash-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cdash-gray-50) 0%, #e0f2fe 100%);
    padding: 30px 20px 60px;
}

.cdash-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   HERO BANNER v2.1 - Constellation Animation
   ===================================================== */
.cdash-hero {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 24px;
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.25);
}

.cdash-constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cdash-hero-bg { display: none; }

.cdash-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cdash-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cdash-hero-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cdash-hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.25);
}

.cdash-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.cdash-verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: 2px solid white;
    color: white;
}

.cdash-hero-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: white;
    line-height: 1.2;
}

.cdash-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cdash-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.cdash-meta-badge svg { flex-shrink: 0; }
.cdash-meta-badge--rating svg { color: #fbbf24; }
.cdash-meta-value { font-weight: 700; }
.cdash-meta-label { opacity: 0.75; }

.cdash-meta-badge--level { background: rgba(255, 255, 255, 0.2); }
.cdash-meta-badge--newbie { background: rgba(255, 255, 255, 0.2); }
.cdash-meta-badge--reliable { background: rgba(34, 197, 94, 0.35); }
.cdash-meta-badge--trusted { background: rgba(59, 130, 246, 0.35); }
.cdash-meta-badge--premium { background: rgba(168, 85, 247, 0.35); }

.cdash-meta-badge--live { background: rgba(34, 197, 94, 0.25); }

.cdash-pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: cdash-pulse-anim 1.5s ease-in-out infinite;
}

@keyframes cdash-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.cdash-hero-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cdash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.cdash-btn--primary {
    background: white;
    color: #0f766e;
    padding: 12px 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cdash-btn--primary:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #0f766e;
    text-decoration: none;
}

.cdash-btn--primary svg { color: #14b8a6; }

.cdash-btn--glass {
    width: 46px;
    height: 46px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.cdash-btn--glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.cdash-hero-progress {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
}

.cdash-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.cdash-progress-info span { opacity: 0.85; }

.cdash-progress-info a {
    color: white;
    font-weight: 600;
    opacity: 0.9;
    text-decoration: none;
}

.cdash-progress-info a:hover {
    opacity: 1;
    text-decoration: underline;
}

.cdash-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.cdash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width 0.5s ease;
}

@media (max-width: 768px) {
    .cdash-hero { padding: 24px 20px; }
    
    .cdash-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .cdash-hero-right { width: 100%; }
    .cdash-btn--primary { flex: 1; }
    .cdash-hero-info h1 { font-size: 1.25rem; }
    .cdash-hero-meta { gap: 8px; }
    
    .cdash-meta-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Удаляем старые стили кругов и частиц */
.cdash-hero-circle, .cdash-hero-particles { display: none; }


/* /* =====================================================
   ALERT
   ===================================================== */
.cdash-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
}

.cdash-alert--danger .cdash-alert-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cdash-danger), #f87171);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.cdash-alert-content {
    flex: 1;
}

.cdash-alert-content strong {
    display: block;
    color: var(--cdash-gray-900);
    margin-bottom: 2px;
}

.cdash-alert-content p {
    margin: 0;
    color: var(--cdash-gray-600);
    font-size: 0.9rem;
}

.cdash-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cdash-danger);
    color: white !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s;
}

.cdash-alert-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* =====================================================
   STATS GRID
   ===================================================== */
.cdash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.cdash-stat {
    background: white;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    border: 1px solid var(--cdash-gray-200);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cdash-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.cdash-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cdash-stat--primary .cdash-stat-icon {
    background: linear-gradient(135deg, var(--cdash-primary-600), var(--cdash-primary-400));
    color: white;
}

.cdash-stat--warning .cdash-stat-icon {
    background: linear-gradient(135deg, var(--cdash-warning), #fbbf24);
    color: white;
}

.cdash-stat--info .cdash-stat-icon {
    background: linear-gradient(135deg, var(--cdash-info), #60a5fa);
    color: white;
}

.cdash-stat--success .cdash-stat-icon {
    background: linear-gradient(135deg, var(--cdash-success), #34d399);
    color: white;
}

.cdash-stat--completed .cdash-stat-icon {
    background: linear-gradient(135deg, var(--cdash-gray-500), var(--cdash-gray-400));
    color: white;
}

.cdash-stat--draft .cdash-stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

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

.cdash-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cdash-gray-900);
    line-height: 1;
}

.cdash-stat-label {
    font-size: 0.8rem;
    color: var(--cdash-gray-500);
    margin-top: 4px;
}

.cdash-stat-pulse {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: var(--cdash-success);
    border-radius: 50%;
    animation: cdash-pulse-anim 1.5s ease-in-out infinite;
}

/* =====================================================
   GRID LAYOUT
   ===================================================== */
.cdash-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.cdash-grid-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cdash-grid-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =====================================================
   CARDS
   ===================================================== */
.cdash-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--cdash-gray-200);
    overflow: hidden;
}

.cdash-card--attention {
    border-color: var(--cdash-warning);
    border-width: 2px;
}

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

.cdash-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cdash-gray-900);
}

.cdash-card-title i {
    color: var(--cdash-primary-600);
    font-size: 1.1rem;
}

.cdash-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cdash-primary-600) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cdash-card-link:hover {
    gap: 10px;
    color: var(--cdash-primary-900) !important;
}

.cdash-card-body {
    padding: 20px 24px;
}

.cdash-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

/* =====================================================
   ATTENTION ITEMS
   ===================================================== */
.cdash-attention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin: -4px -8px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cdash-attention-item:hover {
    background: var(--cdash-gray-50);
}

.cdash-attention-item + .cdash-attention-item {
    border-top: 1px solid var(--cdash-gray-100);
}

.cdash-attention-info h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cdash-gray-900);
}

.cdash-attention-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cdash-action-hint {
    font-size: 0.8rem;
    color: var(--cdash-warning);
    font-weight: 500;
}

.cdash-attention-action i {
    color: var(--cdash-gray-400);
}

/* Stage badges */
.cdash-stage {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cdash-stage--running {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: var(--cdash-success);
}

.cdash-stage--selecting_finalists, .cdash-stage--frozen_finalists {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.cdash-stage--final, .cdash-stage--frozen_final {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--cdash-info);
}

.cdash-stage--winner, .cdash-stage--frozen_winner {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.cdash-stage--completed {
    background: var(--cdash-gray-100);
    color: var(--cdash-gray-500);
}

.cdash-stage--draft {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.cdash-stage--upcoming {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

/* =====================================================
   DEADLINES
   ===================================================== */
.cdash-deadlines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cdash-deadline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--cdash-gray-50);
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cdash-deadline-item:hover {
    background: var(--cdash-primary-50);
    transform: translateX(4px);
}

.cdash-deadline-date {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cdash-primary-900), var(--cdash-primary-600));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.cdash-deadline-day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.cdash-deadline-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

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

.cdash-deadline-info h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cdash-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdash-deadline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cdash-deadline-time {
    font-size: 0.8rem;
    color: var(--cdash-gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cdash-deadline-countdown {
    text-align: center;
    padding: 8px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--cdash-gray-200);
}

.cdash-countdown-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cdash-primary-900);
    line-height: 1;
}

.cdash-countdown-label {
    font-size: 0.7rem;
    color: var(--cdash-gray-500);
}

.cdash-countdown--urgent .cdash-countdown-value {
    color: var(--cdash-danger);
}

.cdash-countdown--expired {
    background: #fee2e2;
    border-color: var(--cdash-danger);
}

/* =====================================================
   CONTESTS LIST
   ===================================================== */
.cdash-contests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cdash-contest-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--cdash-gray-50);
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cdash-contest-item:hover {
    background: var(--cdash-primary-50);
}

.cdash-contest-thumb {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cdash-contest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cdash-contest-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

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

.cdash-contest-info h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cdash-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdash-contest-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cdash-contest-entries {
    font-size: 0.8rem;
    color: var(--cdash-gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cdash-contest-budget {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cdash-contest-budget i {
    font-size: 0.9rem;
}

.cdash-contest-arrow {
    color: var(--cdash-gray-400);
    transition: all 0.2s;
}

.cdash-contest-item:hover .cdash-contest-arrow {
    color: var(--cdash-primary-600);
    transform: translateX(4px);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.cdash-empty {
    text-align: center;
    padding: 40px 20px;
}

.cdash-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cdash-primary-50), #ccfbf1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cdash-primary-600);
}

.cdash-empty h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--cdash-gray-900);
}

.cdash-empty p {
    margin: 0 0 20px;
    color: var(--cdash-gray-500);
    font-size: 0.9rem;
}

.cdash-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cdash-primary-900), var(--cdash-primary-600));
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s;
}

.cdash-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

/* =====================================================
   FINANCE CARD
   ===================================================== */
.cdash-finance-total {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--cdash-primary-50), #ccfbf1);
    border-radius: 14px;
    margin-bottom: 16px;
}

.cdash-finance-label {
    display: block;
    font-size: 0.85rem;
    color: var(--cdash-gray-600);
    margin-bottom: 6px;
}

.cdash-finance-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cdash-primary-900);
}

.cdash-finance-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cdash-finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--cdash-gray-100);
    font-size: 0.9rem;
}

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

.cdash-finance-item span:first-child {
    color: var(--cdash-gray-600);
}

.cdash-finance-item span:last-child {
    font-weight: 600;
    color: var(--cdash-gray-900);
}

.cdash-finance-item--draft span:last-child {
    color: #7c3aed;
}

/* =====================================================
   QUICK ACTIONS
   ===================================================== */
.cdash-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cdash-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    background: var(--cdash-gray-50);
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cdash-quick-action:hover {
    background: var(--cdash-primary-50);
    transform: translateY(-2px);
}

.cdash-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.cdash-quick-icon--primary {
    background: linear-gradient(135deg, var(--cdash-primary-900), var(--cdash-primary-600));
}

.cdash-quick-icon--info {
    background: linear-gradient(135deg, var(--cdash-info), #60a5fa);
}

.cdash-quick-icon--warning {
    background: linear-gradient(135deg, var(--cdash-warning), #fbbf24);
}

.cdash-quick-icon--success {
    background: linear-gradient(135deg, var(--cdash-success), #34d399);
}

.cdash-quick-action span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cdash-gray-700);
    text-align: center;
}

/* =====================================================
   TIPS
   ===================================================== */
.cdash-tips {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 20px;
}

.cdash-tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #b45309;
}

.cdash-tips-header i {
    color: var(--cdash-warning);
}

.cdash-tips p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cdash-gray-700);
    line-height: 1.5;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .cdash-grid {
        grid-template-columns: 1fr;
    }
    
    .cdash-grid-side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cdash-page {
        padding: 20px 16px;
    }
    
    .cdash-hero {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .cdash-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cdash-hero-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cdash-hero-right {
        width: 100%;
    }
    
    .cdash-hero-btn {
        flex: 1;
        justify-content: center;
    }
    
    .cdash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cdash-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .cdash-deadline-item {
        flex-wrap: wrap;
    }
    
    .cdash-deadline-countdown {
        width: 100%;
        margin-top: 8px;
    }
    
    .cdash-grid-side {
        grid-template-columns: 1fr;
    }
}

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

/* =====================================================
   FIXES v2.1
   ===================================================== */

/* Аватар placeholder - делаем контрастным */
.cdash-avatar-placeholder {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
}

/* Кнопка настроек - добавляем текст если иконка не загрузилась */
.cdash-hero-btn--outline {
    min-width: 52px;
    min-height: 52px;
}

.cdash-hero-btn--outline i {
    font-size: 1.2rem;
}

/* Если Font Awesome не загружен, показываем текст */
.cdash-hero-btn--outline::before {
    content: none;
}

/* Убедимся что иконки видны */
.cdash-hero-btn i,
.cdash-avatar-placeholder i {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

/* =====================================================
   FIXES v2.2
   ===================================================== */

/* Убираем декоративные круги/линии */
.cdash-hero::before,
.cdash-hero::after {
    display: none !important;
}

/* Кнопка настроек - увеличиваем и центрируем иконку */
.cdash-hero-btn--outline {
    font-size: 1.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
}

/* Убираем линию над прогресс-баром */
.cdash-progress-section {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
}

/* =====================================================
   CONSTELLATION CANVAS - Hero Animation
   ===================================================== */
.cdash-constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Скрываем старые круги и частицы */
.cdash-hero-bg,
.cdash-hero-circle,
.cdash-hero-particles {
    display: none !important;
}

/* Обновлённые мета-бейджи */
.cdash-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cdash-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.cdash-meta-badge svg {
    flex-shrink: 0;
}

.cdash-meta-badge--rating svg {
    color: #fbbf24;
}

.cdash-meta-value {
    font-weight: 700;
}

.cdash-meta-label {
    opacity: 0.75;
}

.cdash-meta-badge--level {
    background: rgba(255, 255, 255, 0.2);
    text-transform: capitalize;
}

.cdash-meta-badge--live {
    background: rgba(34, 197, 94, 0.25);
}

.cdash-pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Новые стили кнопок */
.cdash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
}

.cdash-btn--primary {
    background: white;
    color: #0f766e !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cdash-btn--primary:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #0f766e !important;
}

.cdash-btn--primary svg {
    color: #14b8a6;
}

.cdash-btn--glass {
    width: 46px;
    height: 46px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

.cdash-btn--glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white !important;
}
