:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --accent: #10b981;
    --accent-light: #34d399;
    --background: #faf5ff;
    --surface: #ffffff;
    --surface-alt: #f3e8ff;
    --text-primary: #1e1b4b;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e9d5ff;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.2);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

img {
    max-width: 100%;
}

/* Floating Background Elements */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--pink);
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--accent);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(0, -50px) rotate(0deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(-5deg);
    }
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Header */
.header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.4);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.xp-bar {
    width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    width: 65%;
    animation: xpPulse 2s infinite;
}

@keyframes xpPulse {
    0%, 100% {
        box-shadow: 0 0 5px #fbbf24;
    }
    50% {
        box-shadow: 0 0 15px #fbbf24;
    }
}

.user-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

.user-avatar:hover {
    transform: scale(1.1) rotate(10deg);
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.user-level {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Mascot */
.mascot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    z-index: 1000;
    animation: mascotBounce 3s infinite;
    transition: transform 0.3s;
}

.mascot:hover {
    transform: scale(1.2);
}

.mascot-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.mascot:hover .mascot-bubble {
    opacity: 1;
    visibility: visible;
}

@keyframes mascotBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Card Base */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--pink), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Daily Quote Card */
.quote-card {
    grid-column: span 12;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f97316 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
}

.quote-card::before {
    display: none;
}

.quote-decoration {
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.quote-decoration.left {
    top: -40px;
    left: 20px;
}

.quote-decoration.right {
    bottom: -80px;
    right: 20px;
    transform: rotate(180deg);
}

.quote-content {
    position: relative;
    z-index: 1;
}

.quote-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Fredoka', sans-serif;
}

.quote-meaning {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.quote-date {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-refresh {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-refresh:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(180deg);
}

/* Stats Cards */
.stats-row {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
}

.stat-icon.level {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    animation: iconPulse 2s infinite;
}

.stat-icon.exercise {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.stat-icon.subscription {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-icon.streak {
    background: linear-gradient(135deg, #ef4444, #f97316);
    animation: firePulse 1s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

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

.stat-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-family: 'Fredoka', sans-serif;
}

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

/* Homework Card */
.homework-card {
    grid-column: span 8;
}

.homework-list {
    list-style: none;
}

.homework-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--surface-alt), #faf5ff);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.homework-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    background: white;
}

.homework-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.homework-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.homework-item:hover .homework-icon {
    transform: rotate(10deg) scale(1.1);
}

.homework-icon.math {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.homework-icon.turkish {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.homework-icon.science {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.homework-icon.english {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.homework-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.homework-deadline {
    font-size: 0.8rem;
    color: var(--pink);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

a.btn {
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-success:hover {
    transform: scale(1.05);
}

.btn.btn-sm {
    font-size: 0.7rem;
}

/* Progress Card */
.progress-card {
    grid-column: span 4;
}

.progress-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.progress-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.progress-circle svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.3));
}

.progress-circle-bg {
    fill: none;
    stroke: var(--surface-alt);
    stroke-width: 14;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 1.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fredoka', sans-serif;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border);
}

.progress-stat {
    text-align: center;
}

.progress-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Fredoka', sans-serif;
}

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

/* Quiz Card */
.quiz-card {
    grid-column: span 6;
}

.quiz-list {
    display: grid;
    gap: 0.75rem;
}

.quiz-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quiz-item:hover {
    border-color: var(--cyan);
    transform: translateX(8px);
    background: white;
}

.quiz-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--cyan), #0891b2);
    transition: transform 0.3s;
}

.quiz-item:hover .quiz-icon {
    transform: rotate(-10deg) scale(1.1);
}

.quiz-title {
    font-weight: 700;
    color: var(--text-primary);
}

.quiz-questions {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.quiz-badge {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.quiz-badge.new {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    animation: badgePulse 2s infinite;
}

.quiz-badge.completed {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.quiz-badge.inprogress {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

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

/* Achievements Card */
.achievements-card {
    grid-column: span 6;
}

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

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.achievement-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s;
}

.achievement:hover .achievement-icon {
    transform: scale(1.15) rotate(10deg);
}

.achievement-icon.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.achievement-icon.gold::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    animation: glow 2s infinite;
}

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

.achievement-icon.silver {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    box-shadow: 0 6px 20px rgba(148, 163, 184, 0.5);
}

.achievement-icon.bronze {
    background: linear-gradient(135deg, #fdba74, #ea580c);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.achievement-icon.locked {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: var(--text-muted);
    opacity: 0.6;
}

.achievement-icon.locked::before {
    content: '?';
    font-size: 1.5rem;
    color: var(--text-muted);
}

.achievement-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Books Card */
.books-card {
    grid-column: span 5;
}

.books-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--surface-alt), #fdf4ff);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.book-item:hover {
    border-color: var(--pink);
    transform: translateX(5px);
}

.book-cover {
    width: 52px;
    height: 68px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.3s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.book-item:hover .book-cover {
    transform: rotate(-5deg);
}

.book-cover.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.book-cover.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.book-cover.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.book-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

.book-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reading-form {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--border);
}

.reading-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--surface-alt);
}

.reading-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.reading-stats {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reading-stats-icon {
    font-size: 2rem;
}

.reading-stats-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.reading-stats-text strong {
    color: #d97706;
}

/* Comment Card */
.comment-card {
    grid-column: span 4;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #a7f3d0;
}

.comment-card::before {
    display: none;
}

.comment-content {
    display: flex;
    gap: 1rem;
}

.comment-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: avatarFloat 3s infinite ease-in-out;
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.comment-text {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-author {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dictionary Card */
.dictionary-card {
    grid-column: span 3;
}

.dictionary-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dictionary-search input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--surface-alt);
}

.dictionary-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.dictionary-search button {
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.dictionary-search button:hover {
    transform: scale(1.05);
}

.word-result {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--surface-alt), #faf5ff);
    border-radius: var(--radius-sm);
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-result.active {
    display: block;
}

.word-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.word-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--border);
    border-radius: 4px;
    display: inline-block;
}

.word-meaning {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.word-example {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px dashed var(--border);
}

/* Subscription Banner */
.subscription-banner {
    grid-column: span 12;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    border: none;
}

.subscription-banner::before {
    display: none;
}

.subscription-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.subscription-info {
    position: relative;
    z-index: 1;
}

.subscription-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-family: 'Fredoka', sans-serif;
}

.subscription-info p {
    opacity: 0.9;
}

.subscription-days {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.days-count {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.days-label {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, var(--text-primary), #312e81);
    color: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
    animation: toastBounce 0.5s ease;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

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

.modal-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: var(--surface-alt);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Level Up Animation */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 27, 75, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.level-up-overlay.active {
    opacity: 1;
    visibility: visible;
}

.level-up-content {
    text-align: center;
    color: white;
}

.level-up-star {
    font-size: 8rem;
    animation: starSpin 1s ease;
}

@keyframes starSpin {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.level-up-text {
    font-size: 3rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    margin-top: 1rem;
    animation: levelUpPop 0.5s ease 0.3s both;
}

.level-up-number {
    font-size: 6rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: levelUpPop 0.5s ease 0.5s both;
}

@keyframes levelUpPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.exercise-categories-container {
    display: flex;
    flex-wrap: wrap;
}

.exercise-categories-container .exercise-category {
    width: calc(33.3% - 30px);
    margin: 15px;
}

.exercise-categories-container .exercise-category h3 {
    font-size: 20px;
}

.exercises-container {
    display: flex;
    flex-wrap: wrap;
}

.exercises-container > .exercise {
    width: 100%;
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    background: #fff;
    padding: 5px 10px;
    color: #000;

    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exercises-container > .exercise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--pink), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.exercises-container > .exercise:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: #fff;
}

.exercises-container > .exercise:hover::before {
    opacity: 1;
}

.exercises-container > .exercise .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exercises-container > .exercise .description {
    margin-bottom: 20px;
    font-size: 14px;
    color: #808080;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 67px;
}

.level-placement-exam-area {
    position: relative;
}

.level-placement-exam-area > div {
    height: calc(100vh - 155px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

.level-placement-exam-area .starter-card {
    text-align: center;
    max-width: 100%;
    width: 500px;
    margin: auto;
    background: #fff;
    padding: 30px 60px;
    border-radius: 30px;
    box-shadow: 0 0 30px #eae6fd;
}

.level-placement-exam-area .starter-card h2 {
    font-size: 40px;
}

.level-placement-exam-area .starter-card p {
    font-size: 14px;
    margin-bottom: 30px;
    color: #626262;
}

.level-placement-exam-area .starter-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    gap: 10px;
    font-weight: 600;
}

.level-placement-exam-area .starter-card ul li {
    background: #eae6fd;
    padding: 10px;
    flex: 1;
    font-size: 14px;
    border-radius: 10px;
    color: #42357e;
}

.level-placement-exam-area .starter-card ul li span {
    display: block;
    font-size: 25px;
}

.level-placement-exam-area > .test-reading {
    display: flex;
    flex-direction: column;
}

.level-placement-exam-area > .test-reading .text-content {
    height: calc(100% - 60px);
    overflow: auto;
}

.level-placement-exam-area > .test-reading .text-footer {
    height: 60px;
    padding-top: 10px;
}

.level-placement-exam-area > .quizz-content {
    display: flex;
    flex-direction: column;
}

.level-placement-exam-area > .quizz-content .quizz-header {
    height: 70px;
}

.level-placement-exam-area > .quizz-content .quizz-questions {
    height: calc(100% - 120px);
    overflow: auto;
    text-align: left;
    width: 100%;
    padding: 30px;
}

.level-placement-exam-area > .quizz-content .quizz-questions .question {
    margin-bottom: 30px;
}

.level-placement-exam-area > .quizz-content .quizz-questions .question .title {
    font-weight: 600;
    font-size: 20px;
}

.level-placement-exam-area > .quizz-content .quizz-questions .question label {
    user-select: none;
    cursor: pointer;
}

.level-placement-exam-area > .quizz-content .quizz-footer {
    height: 70px;
    width: 100%;
    padding-top: 10px;
}

.level-placement-exam-area .finish-card-content {
    text-align: center;
    max-width: 100%;
    width: 500px;
    margin: auto;
    background: #fff;
    padding: 30px 60px;
    border-radius: 30px;
    box-shadow: 0 0 30px #eae6fd;
}

.level-placement-exam-area .finish-card-content .title {
    font-size: 40px;
}

.level-placement-exam-area .finish-card-content .description {
    font-size: 14px;
    margin-bottom: 30px;
    color: #626262;
}

.loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    background: rgba(255, 255, 255, 0.7);
    align-items: center;
    justify-content: center;
    display: none;
}

body.page-loading .loader {
    display: flex;
}

.loader > span:first-child {
    width: 150px;
    height: 150px;
    background-image: url(/assets/front/images/loader-out.png);
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    animation-name: spin;
    animation-duration: 5000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.loader > span:last-child {
    width: 100px;
    height: 100px;
    background-image: url(/assets/front/images/robo.png);
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    top: 50%;
    /*animation: realistic-jump 0.6s infinite alternate;*/
    margin-left: -110px;

}

body.page-loading {
    overflow: hidden;
}

.books-card .card-header {
    justify-content: space-between;
}

.books-card .card-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

@keyframes realistic-jump {
    0%, 100% {
        transform: translateY(10px) scale(1.1, 0.9);
    }
    50% {
        transform: translateY(-30px) scale(0.9, 1.1);
    }
}

.books-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
    overflow: auto;
    margin-bottom: 20px;
}

.books-nav > div {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.575rem;
    background: linear-gradient(135deg, var(--surface-alt), #fdf4ff);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 700;
    color: #7d7d7d;
    user-select: none;
    white-space: nowrap;
    flex-direction: column;
}

.books-nav > div.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;

}

.books-content .tab-content:not(.active) {
    display: none;
}

.level-placement-exam-area .finish-stats {
    margin-bottom: 30px;
    text-align: center;
}

.level-placement-exam-area .progress-circle{
    margin: auto;
    margin-bottom: 20px;
}

.level-placement-exam-area .finish-stats .stats-summary{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.level-placement-exam-area .progress-label{
    white-space: nowrap;
    font-size: 10px;
}

.level-placement-exam-area .finish-stats .stats-summary .stat-title{
    font-size: 14px;
    font-weight: 600;
}

.level-placement-exam-area .finish-stats .stats-summary .value{
    font-weight: 700;
}

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

    .homework-card,
    .progress-card,
    .quiz-card,
    .achievements-card,
    .books-card,
    .comment-card {
        grid-column: span 6;
    }

    .dictionary-card {
        grid-column: span 12;
    }

    .exercise-categories-container .exercise-category {
        width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .exercise-categories-container .exercise-category {
        width: 100%;
        margin: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-container {
        padding: 1rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .quote-card,
    .homework-card,
    .progress-card,
    .quiz-card,
    .achievements-card,
    .books-card,
    .comment-card,
    .dictionary-card,
    .subscription-banner {
        grid-column: span 12;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subscription-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .homework-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .homework-info {
        flex-direction: column;
    }

    .mascot {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .days-count {
        font-size: 3rem;
    }

    .login-screen .form-group {
        width: 100%;
    }

    .login-screen {
        padding: 15px;
    }

    .login-screen .form-group button {
        white-space: nowrap;
        font-size: 14px;
    }

    .auth-screen .logo {
        width: 250px;
        text-align: center;
    }

    .auth-screen .logo a {
        display: inline-block;
    }

    .login-screen .form-group input {
        font-size: 14px;
        width: 100%;
        flex: unset;
    }

    .login-screen .auth-header {
        font-size: 11px;
    }
}

