.align-items-center {
   align-items: center; 
}
.daily-limit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.stat-box {
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.progress {
    background-color: #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    font-size: 14px;
    line-height: 30px;
    transition: width 0.6s ease;
    background-color: var(--green);
    height: inherit;
}

.countdown-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    margin: 1rem 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 576px) {
    .countdown-value {
        font-size: 1.5rem;
    }
    .countdown-separator {
        font-size: 1.25rem;
    }
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}
.overall-progress-card {
    background-color: var(--gray-light);
    font-size: 13px;
}
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}
.text-bold {
    font-weight:bold;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 32px;
    background-color: var(--light);
    border-radius: var(--radius-large);
}

.question-card {
    transition: all 0.3s ease;
}

.answer-option {
    transition: all 0.2s ease;
    background-color: white;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
}

.answer-option:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.answer-option input[type="radio"]:checked + label,
.answer-option input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #0d6efd;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.cursor-pointer {
    cursor: pointer;
}

.question-nav-dots .badge {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-card {
    animation: fadeIn 0.5s ease;
}

.quiz-result-container {
    max-width: 800px;
    margin: 0 auto;
}

.score-display {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.card.border-success {
    background-color: #f8fff9;
}

.card.border-danger {
    background-color: #fff8f8;
}
/* Карточка с достижением */
.achievement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Бейджи уровней */
.achievement-badge {
    display:flex;
}
.badge {
    border-radius: 5px;
    position:relative;

}

.badge:after {
    content:'';
    position: absolute;
    left: 50%;
    bottom: -12px;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top: 6px solid #000000;
}

.badge-newbie {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%) !important;
    color: white;
    
}
.badge-newbie:after {
    left: 0%;
    bottom: -12px;
    margin-left: 3px;
}

.badge-learner {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white;
     left: calc(25% - 40px);
}

.badge-knowledgeable {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white;
    left: calc(50% - 37px);
}

.badge-expert {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    left: calc(75% - 40px);
}

.badge-master {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white;
    animation: pulse-gold 2s infinite;
    left: calc(100% - 70px);
}
.badge-master:after {
    left: 90%;
    bottom: -12px;
    margin-left: -6px;
   
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 10px rgba(245, 87, 108, 0.5); }
    50% { box-shadow: 0 0 20px rgba(245, 87, 108, 0.8); }
}

/* Прогресс-бар с маркерами */
.achievement-progress {
    border-radius: 10px;
    overflow: visible;
}

.level-marker {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 30px;
    z-index: 10;
}

.marker-dot {
    position: absolute;
    top: 0px;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c757d;
}

.level-marker:nth-child(1) .marker-dot { border-color: #4facfe; }  /* Ученик */
.level-marker:nth-child(2) .marker-dot { border-color: #11998e; }  /* Знаток */
.level-marker:nth-child(3) .marker-dot { border-color: #667eea; }  /* Эксперт */
.level-marker:nth-child(4) .marker-dot { border-color: #f5576c; }  /* Мастер */

/* Подсказки при наведении */
.level-marker:hover::after {
    content: attr(title);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 20;
}


