/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.streak-indicator {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.streak-indicator i {
    margin-right: 8px;
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Logout Button */
.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.welcome-message h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    font-size: 4rem;
    color: #6366f1;
    margin-bottom: 10px;
}

.level-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-right: 20px;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompts-card .stat-icon {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.age-card .stat-icon {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
    color: white;
}

.subscription-card .stat-icon {
    background: linear-gradient(45deg, #fa709a, #fee140);
    color: white;
}

.personality-card .stat-icon {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    color: #333;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscription-tier {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscription-benefit {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.subscription-benefit i {
    margin-right: 5px;
    color: #ffd700;
}

.milestone {
    display: flex;
    align-items: center;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
}

.milestone i {
    margin-right: 5px;
}

/* Progress Bar */
.stat-progress {
    margin-top: 10px;
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
}

/* Completion Ring */
.completion-ring {
    width: 60px;
    height: 60px;
    margin-top: 10px;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.circle-fill {
    fill: none;
    stroke: #667eea;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 30px;
}

.achievements-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.achievement {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.achievement:hover {
    transform: translateY(-3px);
}

.achievement.locked {
    opacity: 0.5;
}

.achievement i {
    font-size: 2.5rem;
    margin-right: 15px;
    color: #ffd700;
}

.achievement.locked i {
    color: #ccc;
}

.achievement-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.achievement-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Actions Section */
.actions-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.action-btn.primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.action-btn i {
    font-size: 2rem;
    margin-right: 15px;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-message {
        margin-bottom: 20px;
    }
    
    .welcome-message h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .achievements-grid,
    .action-buttons {
        grid-template-columns: 1fr;
    }
}