/* Stop Smoking - Component Styles */

/* Welcome Screen */
.welcome-hero {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.welcome-icon-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3) 0%, rgba(0, 217, 165, 0.3) 100%);
    animation: pulse-ring 2s ease-out infinite;
}

.welcome-icon-bg::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.5) 0%, rgba(0, 217, 165, 0.5) 100%);
    animation: pulse-ring 2s ease-out infinite 0.3s;
}

.welcome-icon {
    font-size: 80px;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(0, 217, 165, 0.4));
}

.welcome-particles {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.welcome-particles .particle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
}

.welcome-particles .particle:nth-child(1) {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.welcome-particles .particle:nth-child(2) {
    top: 20%;
    right: 0;
    animation-delay: 1s;
}

.welcome-particles .particle:nth-child(3) {
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.welcome-particles .particle:nth-child(4) {
    bottom: 0;
    left: 10%;
    animation-delay: 3s;
}

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.welcome-title {
    font-size: var(--font-size-hero);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #00d9a5 0%, #6c5ce7 50%, #00d9a5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.welcome-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    max-width: 320px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-card);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-md);
}

.feature-text {
    font-size: var(--font-size-md);
    color: var(--text-primary);
    font-weight: 500;
}

/* Date Picker */
.date-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.picker-column {
    width: 60px;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.picker-items {
    position: absolute;
    width: 100%;
    transition: transform 0.2s ease-out;
}

.picker-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.picker-item.selected {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
}

.picker-separator {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    font-weight: 600;
}

.time-sep {
    margin-left: var(--spacing-md);
}

/* Highlight for center of picker */
.picker-column::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: -1;
}

/* Cigarettes Input */
.cigarettes-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.btn-adjust {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: var(--font-size-xxl);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cigarettes-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cigarettes-count {
    font-size: var(--font-size-hero);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cigarettes-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Price Input */
.price-input-group {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.currency-select {
    width: 120px;
    flex-shrink: 0;
}

.price-input {
    flex: 1;
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-align: center;
}

/* Congrats Screen */
.congrats-icon {
    font-size: 100px;
    margin-bottom: var(--spacing-lg);
}

.congrats-title {
    font-size: var(--font-size-hero);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.congrats-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.initial-stats {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.stat-preview {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.stat-preview .stat-icon {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.stat-preview .stat-value {
    font-size: var(--font-size-md);
    font-weight: 600;
}

/* Dashboard */
.dashboard {
    padding-top: var(--spacing-md);
}

.dashboard.dashboard-hidden {
    padding-top: 0;
    min-height: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.app-title {
    font-size: var(--font-size-xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Timer */
.main-timer {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-glow);
}

.timer-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-days {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
}

.timer-label {
    font-size: var(--font-size-md);
    opacity: 0.8;
}

.timer-time {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-top: var(--spacing-sm);
    font-family: monospace;
}

.timer-subtitle {
    font-size: var(--font-size-md);
    opacity: 0.8;
    margin-top: var(--spacing-sm);
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: var(--font-size-xxl);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.stat-card .stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-xs);
}

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

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-sm);
    border-top: 1px solid var(--bg-card);
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: color 0.2s;
    border-radius: var(--radius-md);
}

.nav-btn.active {
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
}

.nav-icon {
    font-size: var(--font-size-xl);
}

.nav-label {
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.timeline-stats {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-xs) 0;
    opacity: 0.8;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.timeline-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.timeline-item.completed {
    border-left: 4px solid var(--accent-success);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, var(--bg-card) 100%);
}

.timeline-item.upcoming {
    border: 1px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(116, 93, 255, 0.15) 0%, var(--bg-card) 100%);
}

.timeline-item.upcoming.pulse-glow {
    animation: slideInUp 0.4s ease forwards, pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(116, 93, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(116, 93, 255, 0.6), 0 0 30px rgba(116, 93, 255, 0.3);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item.locked {
    opacity: 0.5;
}

.timeline-indicator {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.timeline-indicator.completed {
    background: linear-gradient(135deg, var(--accent-success) 0%, #27ae60 100%);
}

.timeline-icon {
    font-size: 24px;
}

.timeline-indicator.completed .timeline-icon {
    filter: grayscale(0.3) brightness(1.1);
}

.timeline-check {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    border: 2px solid var(--bg-card);
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: var(--font-size-md);
}

.timeline-time {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.timeline-lock {
    font-size: 20px;
    opacity: 0.7;
}

.timeline-progress {
    height: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--spacing-sm);
}

.timeline-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Timeline Toggle Button */
.timeline-toggle-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px dashed var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

.timeline-toggle-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.timeline-toggle-btn:active {
    transform: scale(0.98);
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Achievements */
.achievements-filters {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.filter-btn {
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.achievement-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s;
    overflow: hidden;
    --progress: 0%;
}

/* Progress fill as background (bottom to top) */
.achievement-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--progress);
    background: linear-gradient(to top, 
        rgba(108, 92, 231, 0.5) 0%, 
        rgba(162, 155, 254, 0.25) 50%,
        transparent 100%);
    transition: height 0.5s ease-out;
    z-index: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* Unlocked achievement - full glow */
.achievement-card.unlocked::before {
    height: 100%;
    background: linear-gradient(to top, 
        rgba(0, 217, 165, 0.25) 0%, 
        rgba(0, 217, 165, 0.1) 50%,
        transparent 100%);
}

.achievement-card:hover {
    transform: scale(1.05);
}

.achievement-card.locked {
    opacity: 0.7;
}

/* Premium locked - blur effect */
.achievement-card.premium-locked {
    opacity: 1;
    cursor: pointer;
}

.achievement-card.premium-locked .achievement-icon,
.achievement-card.premium-locked .achievement-name {
    filter: blur(6px);
    user-select: none;
}

.achievement-card.premium-locked .achievement-progress {
    display: none;
}

.achievement-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Premium badge for unlocked */
.achievement-card.premium.unlocked::after {
    content: '⭐';
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    font-size: var(--font-size-sm);
    z-index: 10;
}

.achievement-icon {
    font-size: 36px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.achievement-name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* Progress bar at bottom (optional subtle indicator) */
.achievement-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.achievement-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: width 0.3s ease;
}

/* Premium */
.premium-content {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.premium-header {
    margin-bottom: var(--spacing-xl);
}

.premium-icon {
    font-size: 64px;
    display: block;
    margin-bottom: var(--spacing-md);
}

.premium-header h2 {
    font-size: var(--font-size-xxl);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-features {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.feature-check {
    color: var(--accent-success);
    font-weight: bold;
}

.pricing-cards {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.pricing-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover,
.pricing-card.selected {
    border-color: var(--accent-primary);
}

.pricing-card.popular {
    border-color: var(--accent-warning);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #000;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.pricing-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.pricing-price {
    font-size: var(--font-size-xxl);
    font-weight: 800;
}

.pricing-period {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.pricing-savings {
    font-size: var(--font-size-xs);
    color: var(--accent-success);
    margin-top: var(--spacing-sm);
}

.premium-note {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-md);
}

/* Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--bg-card);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chat-message {
    max-width: 80%;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-primary);
}

.chat-message.assistant {
    align-self: flex-start;
    background: var(--bg-card);
}

.chat-input-container {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-card);
}

.chat-input {
    flex: 1;
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    cursor: pointer;
}

/* Milestone Modal */
.milestone-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.milestone-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.milestone-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-height: 85vh;
    overflow-y: auto;
}

.milestone-modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.milestone-modal-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.milestone-modal-icon.completed {
    filter: drop-shadow(0 4px 12px rgba(0, 217, 165, 0.4));
}

.milestone-modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.milestone-modal-time {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.milestone-modal-status {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.milestone-modal-status.completed {
    background: rgba(0, 217, 165, 0.2);
    color: var(--accent-success);
}

.milestone-modal-status.in-progress {
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent-secondary);
}

.milestone-modal-progress {
    height: 6px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.milestone-modal-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.milestone-modal-desc {
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.milestone-modal-btn {
    width: 100%;
}

.milestone-modal-btn.btn-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 600;
}

.achievement-modal-status.premium {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.achievement-modal-progress {
    height: 6px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.achievement-modal-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.milestone-modal.closing .milestone-modal-content {
    animation: scaleOut 0.2s ease forwards;
}

.milestone-modal.closing .milestone-modal-backdrop {
    animation: fadeOut 0.2s ease forwards;
}

@keyframes scaleOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}
