@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');

:root {
    /* ============================================
       BASE COLORS - LIGHT MODE (DEFAULT)
       ============================================ */
    /* Gradient: Soft Blue to Soft Pink/Lavender */
    --wp-lingo-bg: #ffffff; /*linear-gradient(135deg, #e0e7ff 0%, #fae8ff 50%, #fce7f3 100%);*/

    /* Solid Colors for clear visibility against gradient */
    --wp-lingo-bg-light: #ffffff;
    --wp-lingo-border: #cbd5e1;
    --wp-lingo-text: #1e293b;
    --wp-lingo-text-muted: #64748b;

    /* Accent Gradient - Vibrant Purple/Blue */
    --wp-lingo-accent: #8b5cf6;
    --wp-lingo-accent-secondary: #06b6d4;
    --wp-lingo-accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --wp-lingo-accent-gradient-hover: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);

    /* Correct - Emerald Green Gradient (Softened for elegance) */
    --wp-lingo-correct: #10b981;
    --wp-lingo-correct-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Incorrect - Coral/Rose Gradient */
    --wp-lingo-incorrect: #f43f5e;
    --wp-lingo-incorrect-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

    /* Progress Bar for Light Mode */
    --wp-lingo-progress-bg: #f1f5f9;
    --wp-lingo-progress-fill: var(--wp-lingo-correct);
    --wp-lingo-progress-gradient: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);

    /* Special Accents */
    --wp-lingo-gold: #fbbf24;
    --wp-lingo-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

    /* SOLID CARD STYLE for readability */
    --wp-lingo-glass: #ffffff;
    --wp-lingo-glass-border: #cbd5e1;
    --wp-lingo-glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Global Body Styles */
html {
    font-size: 18px;
}

body {
    background: var(--wp-lingo-bg) !important;
    min-height: 100vh;
    background-attachment: fixed !important;
    background-size: cover !important;
    margin: 0;
    font-size: 18px;
    /* Base font size increased */
    line-height: 1.6;
    color: var(--wp-lingo-text);
}

/* Global Heading Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wp-lingo-text);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.25em;
}

h6 {
    font-size: 1.1em;
}

/* ============================================
   GLOBAL IMAGE/EMOJI RESET FOR PLUGIN
   Prevents "black border" flash on refresh
   ============================================ */
.wp-lingo-stat-card img,
.wp-lingo-stat-card .emoji,
.wp-lingo-path img,
.wp-lingo-path .emoji,
.wp-lingo-path-node img,
.wp-lingo-path-node .emoji,
.wp-lingo-quiz-container img,
.wp-lingo-quiz-container .emoji,
.wp-lingo-dashboard img,
.wp-lingo-dashboard .emoji,
.wp-lingo-phases-list-container img,
.wp-lingo-phases-list-container .emoji,
img.emoji {
    /* This is the key fix for the black border on Chrome/Edge during loading */
    color: transparent !important;

    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;

    /* Ensure it behaves like an icon */
    display: inline-block !important;
    line-height: 1 !important;
}

/* ============================================
   DARK MODE OVERRIDE
   ============================================ */
body.wp-lingo-dark-mode {
    /* Base Colors - Modern Palette (Dark Mode - Softened) */
    --wp-lingo-bg: #13132b;
    --wp-lingo-bg-light: #1e1e38;
    --wp-lingo-border: rgba(255, 255, 255, 0.1);
    --wp-lingo-text: #ffffff;
    --wp-lingo-text-muted: #a0a0b8;

    /* Progress Bar Gradient */
    --wp-lingo-progress-bg: rgba(255, 255, 255, 0.1);

    /* Glassmorphism */
    --wp-lingo-glass: rgba(255, 255, 255, 0.05);
    --wp-lingo-glass-border: rgba(255, 255, 255, 0.1);
    --wp-lingo-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Note: .wp-lingo-light-mode class is kept in JS for backwards compatibility but has no CSS rules */

/* --- Theme Toggle Button Styles --- */
.wp-lingo-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wp-lingo-theme-toggle:hover {
    background: var(--wp-lingo-accent);
    border-color: var(--wp-lingo-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.wp-lingo-theme-toggle:hover .theme-icon {
    color: white;
}

.wp-lingo-theme-toggle:active {
    transform: translateY(0) scale(0.95);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.wp-lingo-theme-toggle:focus {
    outline: none;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.wp-lingo-theme-toggle:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
}

.wp-lingo-theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

body.wp-lingo-dark-mode .wp-lingo-theme-toggle:active {
    background: rgba(99, 102, 241, 0.2);
}

body.wp-lingo-dark-mode .wp-lingo-theme-toggle:focus {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

body.wp-lingo-dark-mode .wp-lingo-theme-toggle:focus:not(:focus-visible) {
    box-shadow: none;
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.2);
}

.wp-lingo-theme-toggle .theme-icon {
    font-size: 1.25em;
    transition: all 0.3s ease;
    position: absolute;
}

/* Light mode is default: show moon icon (clicking will switch to dark) */
.wp-lingo-theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.wp-lingo-theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark mode: show sun icon (clicking will switch to light) */
body.wp-lingo-dark-mode .wp-lingo-theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.wp-lingo-dark-mode .wp-lingo-theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Dark mode toggle button style */
body.wp-lingo-dark-mode .wp-lingo-theme-toggle {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: var(--wp-lingo-border, rgba(99, 102, 241, 0.2));
}

body.wp-lingo-dark-mode .wp-lingo-theme-toggle:hover {
    background: var(--wp-lingo-accent);
    border-color: var(--wp-lingo-accent);
}

/* Small Toggle Variant */
.wp-lingo-theme-toggle.small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.wp-lingo-theme-toggle.small .theme-icon {
    font-size: 1em;
}

/* Toggle with Label */
.wp-lingo-theme-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wp-lingo-theme-toggle-label {
    font-weight: 600;
    color: var(--wp-lingo-text);
    font-size: 0.9em;
}

.wp-lingo-quiz-container {
    position: relative;
    max-width: 900px;
    /* Wider for better UX */
    margin: 2em auto;
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    background: var(--wp-lingo-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
    box-shadow: var(--wp-lingo-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Practice Mode Variation - Light mode is default */
.wp-lingo-quiz-container.wp-lingo-practice-mode {
    background: #ffffff;
    border: 2px solid #ddd;
    border-top: 5px solid var(--wp-lingo-accent);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

/* Dark mode override for practice */
body.wp-lingo-dark-mode .wp-lingo-quiz-container.wp-lingo-practice-mode {
    background: var(--wp-lingo-glass);
    border-color: var(--wp-lingo-accent);
    border-top: none;
}

.wp-lingo-quiz-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.wp-lingo-quiz-header h3 {
    margin-top: 0;
    color: var(--wp-lingo-text);
    font-size: 1.5em;
    text-align: center;
    flex-basis: 100%;
    margin-bottom: 15px;
}

.wp-lingo-stats-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.wp-lingo-global-points-display,
.wp-lingo-session-points-display,
.wp-lingo-lives-display,
.wp-lingo-current-score {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--wp-lingo-text);
    font-size: 1.1em;
}

.wp-lingo-global-points-display,
.wp-lingo-session-points-display,
.wp-lingo-lives-display {
    margin-right: 20px;
}

.wp-lingo-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
}

.wp-lingo-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--wp-lingo-progress-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-lingo-progress-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--wp-lingo-progress-gradient);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.wp-lingo-progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px 10px 0 0;
}

.wp-lingo-quiz-body {
    margin: 20px 0;
    padding: 0 20px;
}

.wp-lingo-question-title {
    font-size: 1.4em;
    color: var(--wp-lingo-text);
    margin-bottom: 20px;
}

.wp-lingo-answer-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wp-lingo-answer-options li {
    padding: 18px;
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1em;
    color: var(--wp-lingo-text);
    background: var(--wp-lingo-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.wp-lingo-answer-options li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.wp-lingo-answer-options li:hover::before {
    left: 100%;
}

.wp-lingo-answer-options li:hover {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.wp-lingo-answer-options li.selected {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.wp-lingo-quiz-footer {
    padding: 20px;
    border-top: 1px solid var(--wp-lingo-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.5);
    /* Much lighter, subtle background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Back Button in Quiz */
.wp-lingo-prev-btn {
    background: transparent !important;
    /* Remove gradient */
    color: var(--wp-lingo-text-muted) !important;
    box-shadow: none !important;
    padding: 10px 18px !important;
    min-width: unset;
    border: 1px solid var(--wp-lingo-glass-border) !important;
    border-radius: 12px;
}

.wp-lingo-prev-btn:hover {
    background: var(--wp-lingo-bg-light) !important;
    color: var(--wp-lingo-accent) !important;
    border-color: var(--wp-lingo-accent) !important;
    transform: translateX(-3px) !important;
}

.wp-lingo-prev-btn::before {
    display: none;
    /* Remove gloss effect */
}

.wp-lingo-feedback-banner {
    padding: 24px 32px;
    color: white;
    font-weight: 800;
    font-size: 1.2em;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.wp-lingo-feedback-banner.visible {
    display: flex;
    animation: wpLingoFeedbackSlideUp 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes wpLingoFeedbackSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.wp-lingo-feedback-banner.correct {
    background: var(--wp-lingo-correct-gradient);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.wp-lingo-feedback-banner.incorrect {
    background: var(--wp-lingo-incorrect-gradient);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.wp-lingo-feedback-banner .feedback-text {
    flex-grow: 1;
}

.wp-lingo-feedback-banner.incorrect .feedback-text {
    display: flex;
    flex-direction: column;
}

.correct-answer-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.correct-answer-text {
    font-size: 1.1em;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Next button alignment in feedback banner */
.wp-lingo-feedback-banner #wp-lingo-next-btn {
    flex-shrink: 0;
    align-self: center;
}

.wp-lingo-feedback-banner.incorrect #wp-lingo-next-btn {
    width: auto;
    margin-top: 10px;
    align-self: center;
    padding-left: 40px;
    padding-right: 40px;
}

.wp-lingo-answer-options.reveal li {
    cursor: default;
    opacity: 0.7;
}

.wp-lingo-answer-options.reveal li.correct-answer {
    border-color: var(--wp-lingo-correct);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.2));
    opacity: 1;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.wp-lingo-answer-options.reveal li.incorrect-selection {
    border-color: var(--wp-lingo-incorrect);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(251, 113, 133, 0.2));
    opacity: 1;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
}

.wp-lingo-button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background: var(--wp-lingo-accent-gradient);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.wp-lingo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 14px 14px 0 0;
}

.wp-lingo-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wp-lingo-text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.wp-lingo-button:hover:not(:disabled) {
    background: var(--wp-lingo-accent-gradient-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.wp-lingo-button:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

#wp-lingo-next-btn {
    color: white;
}

/* This is the original search string */

/* Exit Button Styles */
.wp-lingo-quiz-header {
    position: relative;
    /* Needed for absolute positioning of the exit button */
    gap: 20px;
    /* Add space between items */
}

.wp-lingo-exit-button {
    color: var(--wp-lingo-text-muted);
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wp-lingo-glass);
}

.wp-lingo-exit-button:hover {
    color: white;
    background: rgba(244, 63, 94, 0.3);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.wp-lingo-exit-button span {
    display: block;
    line-height: 0.5;
    /* Adjust vertical alignment of the 'X' */
}

/* Mute button in quiz header */
.wp-lingo-mute-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-left: 6px;
}

.wp-lingo-mute-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.1);
}

.wp-lingo-mute-btn:active {
    transform: scale(0.95);
}

/* Show/hide the correct icon based on muted state */
.wp-lingo-mute-btn .mute-icon-off {
    display: none;
}

.wp-lingo-mute-btn[aria-pressed="true"] .mute-icon-on {
    display: none;
}

.wp-lingo-mute-btn[aria-pressed="true"] .mute-icon-off {
    display: block;
}

.wp-lingo-progress-bar {
    flex-grow: 1;
    /* Make the progress bar take up the remaining space */
}

#wp-lingo-next-btn.correct {
    background: var(--wp-lingo-correct-gradient);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}

#wp-lingo-next-btn.incorrect {
    background: var(--wp-lingo-incorrect-gradient);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.5);
}

.wp-lingo-results-screen,
.wp-lingo-game-over-screen {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.wp-lingo-game-over-screen h3,
.wp-lingo-results-screen h3 {
    margin-bottom: 5px;
}

.wp-lingo-game-over-screen p,
.wp-lingo-results-screen p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.wp-lingo-game-over-screen .wp-lingo-button,
.wp-lingo-results-screen .wp-lingo-button {
    width: 100%;
    max-width: 320px;
    margin: 5px 0;
}

@media (max-width: 600px) {
    .wp-lingo-answer-options {
        grid-template-columns: 1fr;
    }

    .wp-lingo-quiz-header {
        flex-direction: column;
    }

    .wp-lingo-lives-display,
    .wp-lingo-current-score {
        margin-bottom: 10px;
    }
}

.wp-lingo-character-area {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.wp-lingo-character {
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-position 0.3s steps(1);
}

.lottie-correct,
.lottie-incorrect {
    width: 100%;
    height: 100%;
}

.wp-lingo-character-initial-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fill in the Blanks Styles */
.fib-sentence {
    font-size: 1.25em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--wp-lingo-text);
    font-weight: 500;
    line-height: 1.8;
}

/* Ensure good visibility in dark mode */
body.wp-lingo-dark-mode .fib-sentence {
    color: #ffffff;
}

.fib-blank {
    display: inline-block;
    min-width: 100px;
    border-bottom: 2px dashed var(--wp-lingo-border);
    padding: 5px;
    vertical-align: middle;
}

.fib-word-bank {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.fib-word {
    list-style: none;
    padding: 12px 22px;
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--wp-lingo-glass);
    color: var(--wp-lingo-text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fib-word:hover {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.fib-blank .fib-word {
    list-style: none;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    padding: 8px 16px;
    border: 2.5px solid var(--wp-lingo-accent);
    background: var(--wp-lingo-bg-light);
    border-radius: 12px;
    font-weight: 800;
    color: var(--wp-lingo-accent);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    text-shadow: none;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fib-blank .fib-word.correct-answer {
    border-color: var(--wp-lingo-correct);
    background: rgba(16, 185, 129, 0.1);
    color: var(--wp-lingo-correct);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px) scale(1.05);
}

.fib-blank .fib-word.incorrect-selection {
    border-color: var(--wp-lingo-incorrect);
    background: rgba(244, 63, 94, 0.1);
    color: var(--wp-lingo-incorrect);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
    transform: translateY(-2px);
}

.wp-lingo-question-area:has(.fib-sentence) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sc-sentence-area {
    min-height: 60px;
    border-bottom: 2px solid var(--wp-lingo-glass-border);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

.sc-word-bank {
    margin-top: 20px;
}

/* ========================================
   SORTING QUESTION STYLES
   ======================================== */
.sorting-container {
    max-width: 500px;
    margin: 0 auto;
}

.sorting-hint {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.sorting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sorting-item {
    padding: 14px 18px;
    margin: 12px 0;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--wp-lingo-text);
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.sorting-item:hover {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.sorting-item.dragging {
    opacity: 0.7;
    transform: scale(1.02);
    cursor: grabbing;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.sorting-item.selected {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2));
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.sorting-item.was-reordered {
    border-color: var(--wp-lingo-accent-secondary);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--wp-lingo-accent-secondary);
}

.sorting-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--wp-lingo-accent-secondary);
    color: white;
    border-radius: 50%;
    font-size: 0.85em;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(6, 182, 212, 0.3);
}

.sorting-text {
    flex-grow: 1;
    font-weight: 500;
}

.sorting-handle {
    color: var(--wp-lingo-text-muted);
    font-size: 1.2em;
    cursor: grab;
}

.sorting-item.correct-answer {
    border-color: var(--wp-lingo-correct);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.2));
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.sorting-item.incorrect-selection {
    border-color: var(--wp-lingo-incorrect);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(251, 113, 133, 0.2));
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

/* ========================================
   MATCHING PAIRS QUESTION STYLES
   ======================================== */
.matching-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.matching-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}

.matching-column-heading {
    margin: 0 0 5px 0;
    text-align: center;
    font-size: 0.9em;
    font-weight: 800;
    color: var(--wp-lingo-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.matching-item {
    padding: 14px 20px;
    background: var(--wp-lingo-glass);
    border: 2px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--wp-lingo-text);
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.match-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.matching-item:hover {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    transform: scale(1.02);
}

.matching-item-left.selected {
    border-color: var(--wp-lingo-accent);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    }
}

.matching-item.matched {
    opacity: 0.9;
    border-style: solid;
    border-width: 2px;
}

.matching-item.correct-answer {
    border-color: var(--wp-lingo-correct) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.2));
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.matching-item.incorrect-selection {
    border-color: var(--wp-lingo-incorrect) !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(251, 113, 133, 0.2));
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

/* Responsive matching for mobile */
@media (max-width: 500px) {
    .matching-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 10px 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .matching-column {
        flex-direction: column !important;
        min-width: 0;
        gap: 10px;
        display: flex;
    }

    .matching-item {
        padding: 10px 8px;
        font-size: 0.85em;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
        width: 100%;
        box-sizing: border-box;
    }
}

@keyframes jump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.character-jump {
    animation: jump 0.5s ease;
}

.character-shake {
    animation: shake 0.5s ease;
}


/* Pop In Animation for elements */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Glow Animation */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    }
}

/* Speed Bonus Display in feedback */
.speed-bonus-display {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-left: 8px;
    animation: bounceIn 0.3s ease-out;
}

/* Results Screen Animations */
.wp-lingo-results-screen {
    animation: fadeSlideIn 0.5s ease-out;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced feedback banner animations - Removed to prevent UI glitches */

/* ========================================
   PHASES LIST STYLES
   ======================================== */
.wp-lingo-phases-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.wp-lingo-phase-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: var(--wp-lingo-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: var(--wp-lingo-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Ensure content stays within bounds */
    box-sizing: border-box;
    width: 100%;
    /* Staggered animation */
    animation: phaseSlideIn 0.5s ease-out backwards;
    animation-delay: calc(var(--phase-index, 0) * 0.05s);
}

@keyframes phaseSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Shimmer effect on hover */
.wp-lingo-phase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.wp-lingo-phase-item:hover::before {
    left: 100%;
}

.wp-lingo-phase-item:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--wp-lingo-accent);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25);
}

/* Phase Number Badge */
.phase-number-badge {
    align-self: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--wp-lingo-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.6em;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease;
}

.wp-lingo-phase-item:hover .phase-number-badge {
    transform: scale(1.1) rotate(-3deg);
}

.phase-num {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.phase-check {
    font-size: 1.5em;
}

/* Phase Content */
.phase-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
}

.wp-lingo-phase-title {
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--wp-lingo-text);
    line-height: 1.3;
    /* Force text to wrap and stay within bounds */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.wp-lingo-phase-description {
    margin: 0 0 10px 0;
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phase-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    margin-bottom: 10px;
}

.phase-lessons-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.phase-progress-text {
    font-weight: 600;
    color: var(--wp-lingo-accent);
}

/* Phase Progress Bar */
.phase-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.phase-progress-fill {
    height: 100%;
    background: var(--wp-lingo-progress-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.phase-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px;
}

/* Phase Arrow - Hidden in vertical layout */
.phase-arrow {
    display: none;
}

/* Phase Status Styles */
.wp-lingo-phase-item.phase-not-started .phase-number-badge {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.3);
}

.wp-lingo-phase-item.phase-in-progress .phase-number-badge {
    background: var(--wp-lingo-accent-gradient);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6);
    }
}

.wp-lingo-phase-item.phase-completed .phase-number-badge {
    background: var(--wp-lingo-correct-gradient);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.wp-lingo-phase-item.phase-completed .phase-progress-fill {
    background: var(--wp-lingo-correct-gradient);
}

.wp-lingo-phase-item.phase-completed .phase-progress-text {
    color: var(--wp-lingo-correct);
}

/* Locked Phase Styles */
.wp-lingo-phase-item.phase-locked {
    cursor: not-allowed;
    opacity: 0.85;
    border-color: rgba(148, 163, 184, 0.3);
}

.wp-lingo-phase-item.phase-locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(148, 163, 184, 0.3);
}

.wp-lingo-phase-item.phase-locked .phase-number-badge {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.wp-lingo-phase-item.phase-locked .phase-lock {
    font-size: 1.3em;
}

.wp-lingo-phase-item.phase-locked .wp-lingo-phase-title {
    color: var(--wp-lingo-text-muted);
}

.phase-locked-message {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Placement test button in phase card */
.wp-lingo-placement-test-btn.phase-level {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wp-lingo-placement-test-btn.phase-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Dark mode adjustments for phases */
body.wp-lingo-dark-mode .wp-lingo-phase-item {
    background: var(--wp-lingo-glass);
    border-color: var(--wp-lingo-glass-border);
    box-shadow: var(--wp-lingo-glass-shadow);
}

body.wp-lingo-dark-mode .wp-lingo-phase-item:hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

body.wp-lingo-dark-mode .phase-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .wp-lingo-phases-list-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .wp-lingo-phase-item {
        padding: 16px;
    }

    .phase-number-badge {
        width: 48px;
        height: 48px;
        font-size: 1.2em;
    }

    .phase-arrow {
        display: none;
    }
}



/* ========================================
   TREASURE MAP PATH STYLES - MODERN
   ======================================== */

/* ========================================
   TREASURE MAP PATH STYLES - MODERN
   ======================================== */

.wp-lingo-path-topic-title {
    font-size: 1.3em;
    color: var(--wp-lingo-text);
    margin: 40px auto 30px;
    text-align: center;
    background: var(--wp-lingo-bg-light);
    /* Solid background to cover content behind */
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    /* Restore sticky */
    top: 40px;
    z-index: 50;
    /* Higher z-index to stay on top */
    width: 90%;
    /* Fixed relative width */
    max-width: 600px;
    /* Max fixed size */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Fixed top mask: hides nodes scrolling above the sticky section titles */
.wp-lingo-path-container::before,
.wp-lingo-path::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--wp-lingo-bg);
    z-index: 49;
    pointer-events: none;
}

/* Section title color variants — solid colors from plugin palette */
.wp-lingo-path-topic-title.section-color-1 { background: #8b5cf6; color: #ffffff; border-color: #7c3aed; }
.wp-lingo-path-topic-title.section-color-2 { background: #06b6d4; color: #ffffff; border-color: #0891b2; }
.wp-lingo-path-topic-title.section-color-3 { background: #10b981; color: #ffffff; border-color: #059669; }
.wp-lingo-path-topic-title.section-color-4 { background: #f59e0b; color: #ffffff; border-color: #d97706; }
.wp-lingo-path-topic-title.section-color-5 { background: #f43f5e; color: #ffffff; border-color: #e11d48; }

.wp-lingo-path-subsection-title {
    font-size: 1.1em;
    color: var(--wp-lingo-text-muted);
    margin: 10px 0;
    text-align: center;
}

/* Fix ghost spacing from empty ULs generated by recursion */
.wp-lingo-path:empty {
    display: none;
    padding: 0;
    margin: 0;
}

.wp-lingo-path {
    list-style: none;
    padding: 20px 0 40px 0;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Helper to debug path flow if needed, but keeping clean for now */

.wp-lingo-path-node {
    margin: 40px 0;
    position: relative;
    z-index: 1;
    /* Low z-index so tooltip stays on top of path but below sticky header normally */
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    justify-content: center;
}

.wp-lingo-path-node:hover {
    z-index: 150;
}

/* --- ZIG-ZAG CONNECTOR LINES REMOVED AS REQUESTED --- */
.wp-lingo-path-node::before {
    display: none !important;
}

/* Winding "Slalom" Pattern Position Offsets */
.wp-lingo-path-node:nth-child(4n+1) {
    transform: translateX(0);
}

.wp-lingo-path-node:nth-child(4n+2) {
    transform: translateX(-50px);
}

.wp-lingo-path-node:nth-child(4n+3) {
    transform: translateX(0);
}

.wp-lingo-path-node:nth-child(4n+4) {
    transform: translateX(50px);
}

/* Mobile Adjustments */
@media (max-width: 400px) {

    /* Reduce offsets to 25px */
    .wp-lingo-path-node:nth-child(4n+2) {
        transform: translateX(-25px);
    }

    .wp-lingo-path-node:nth-child(4n+4) {
        transform: translateX(25px);
    }

    /* Adjust topic title width for mobile */
    .wp-lingo-path-topic-title {
        width: 95%;
        font-size: 1.1em;
    }
}

.wp-lingo-path-node a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
}

/* Node Styles - Soft Pastel Modern update */
.wp-lingo-path-node-icon {
    width: var(--wp-lingo-path-node-size, 70px);
    height: var(--wp-lingo-path-node-size, 70px);
    border-radius: 50%;
    background: var(--wp-lingo-bg-light);
    border: 4px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* Node Label - UPDATED for better multi-line handling and sizing */
.wp-lingo-path-node-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    font-weight: bold;
    color: var(--wp-lingo-text);
    background: var(--wp-lingo-glass);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9em;

    /* Text Wrapping Fixes */
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 200px;
    /* Cap width to prevent screen overflow */
    line-height: 1.4;

    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid var(--wp-lingo-glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    z-index: 100;
}

/* Show label on hover */
.wp-lingo-path-node a:hover .wp-lingo-path-node-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-15px);
    pointer-events: auto;
}

/* Hide label when popup is active to avoid overlap */
.wp-lingo-path-node a.popup-active .wp-lingo-path-node-label {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Make sure locked labels are visible but muted, not completely broken */
.wp-lingo-path-node.node-locked .wp-lingo-path-node-label {
    opacity: 0;
    /* Hidden by default, show on hover */
}

.wp-lingo-path-node.node-locked a:hover .wp-lingo-path-node-label {
    opacity: 0.8;
    /* Slightly transparent for locked items */
}


/* Hover Effects - Slight Lift */
.wp-lingo-path-node a:hover .wp-lingo-path-node-icon {
    transform: translateY(4px) !important;
    /* Press DOWN slightly on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.wp-lingo-path-node a:active .wp-lingo-path-node-icon {
    transform: translateY(8px) !important;
    /* Press DOWN fully on click */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* --- STATE STYLES (Soft Pastels) --- */

/* LOCKED: Glassy Ghost */
.wp-lingo-path-node.node-locked .wp-lingo-path-node-icon {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
}

.wp-lingo-path-node.node-locked a:hover .wp-lingo-path-node-icon {
    transform: none;
    /* No movement locked */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* UNLOCKED (ACTIVE): Soft Lavender/Violet */
.wp-lingo-path-node:not(.node-locked):not(.node-completed) .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.wp-lingo-path-node:not(.node-locked):not(.node-completed) a:hover .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.wp-lingo-path-node:not(.node-locked):not(.node-completed) a:active .wp-lingo-path-node-icon {
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* COMPLETED: Soft Gold/Amber */
.wp-lingo-path-node.node-completed .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.wp-lingo-path-node.node-completed a:hover .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.wp-lingo-path-node.node-completed a:active .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.5);
}

/* Icon Content */
.wp-lingo-path-node-icon::after {
    font-size: 0.6em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Icons in pseudo-elements */
.wp-lingo-path-node.node-locked .wp-lingo-path-node-icon::after {
    content: var(--wp-lingo-path-locked-icon, '🔒');
}

.wp-lingo-path-node:not(.node-locked):not(.node-completed) .wp-lingo-path-node-icon::after {
    content: var(--wp-lingo-path-unlocked-icon, '⭐');
}

.wp-lingo-path-node.node-completed .wp-lingo-path-node-icon::after {
    content: var(--wp-lingo-path-completed-icon, '✅');
}

/* Custom Icon Support */
.wp-lingo-path-node.has-custom-icon .wp-lingo-path-node-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Subsections */
.wp-lingo-path-subsection {
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Create the 'spine' effect where path continues between sections */
.wp-lingo-path-nested {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
}

/* Crown Indicator (REFINED SIZE & POSITION) */
.wp-lingo-crown-indicator {
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: var(--wp-lingo-gold-gradient, linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%));
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    border: 2px solid white !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    transform: none !important;
    display: inline-block !important;
    min-width: unset !important;
    min-height: unset !important;
    white-space: nowrap;
}

/* Notice Styles */

/* Node style adjustment for preview nodes */
.wp-lingo-path-node.node-preview .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

.wp-lingo-path-node.node-preview a:hover .wp-lingo-path-node-icon {
    background: linear-gradient(135deg, #cffafe 0%, #67e8f9 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

/* Responsive adjustments for preview badge */
@media (max-width: 400px) {
    .wp-lingo-preview-badge {
        font-size: 10px;
        padding: 4px 10px;
        top: -40px;
    }
}

/* Notice Styles */
.wp-lingo-notice {
    padding: 18px;
    margin: 20px;
    border-left: 4px solid var(--wp-lingo-accent);
    background: var(--wp-lingo-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--wp-lingo-text);
    border-radius: 12px;
    box-shadow: var(--wp-lingo-glass-shadow);
}

.wp-lingo-notice.error {
    border-left-color: var(--wp-lingo-incorrect);
    background: rgba(244, 63, 94, 0.1);
}

.wp-lingo-notice p {
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* --- Path Node Pop-up Styles --- */
.wp-lingo-path-popup {
    position: absolute;
    z-index: 100;
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.wp-lingo-path-popup.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wp-lingo-popup-content {
    display: flex;
    padding: 10px;
    gap: 10px;
}

.wp-lingo-popup-button {
    display: inline-block;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: var(--wp-lingo-glass);
    color: var(--wp-lingo-text);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-lingo-popup-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.wp-lingo-popup-button.start-quiz {
    background: var(--wp-lingo-accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.wp-lingo-popup-button.start-quiz:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

/* Blitz Mode Button */
.wp-lingo-popup-button.blitz-mode {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    animation: blitz-button-pulse 2s ease-in-out infinite;
}

.wp-lingo-popup-button.blitz-mode:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    transform: translateY(-2px);
    animation: none;
}

@keyframes blitz-button-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(249, 115, 22, 0.7);
    }
}

.wp-lingo-popup-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--wp-lingo-bg-light);
}

/* --- Modal Styles --- */
.wp-lingo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wp-lingo-modal-content {
    background: var(--wp-lingo-bg-light);
    margin: 8% auto;
    padding: 35px;
    border: 1px solid var(--wp-lingo-glass-border);
    width: 85%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wp-lingo-modal-close {
    color: var(--wp-lingo-text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wp-lingo-modal-close:hover,
.wp-lingo-modal-close:focus {
    color: white;
    background: rgba(244, 63, 94, 0.3);
    text-decoration: none;
    cursor: pointer;
}

.wp-lingo-modal-content h2 {
    margin-top: 0;
    color: var(--wp-lingo-text);
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-guide-content {
    line-height: 1.7;
    color: var(--wp-lingo-text);
}

/* When results are active, make the container a flexbox */
.wp-lingo-quiz-container.results-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    /* Give it some minimum height */
}

.wp-lingo-results-screen {
    text-align: center;
    padding: 20px;
    flex-grow: 1;
    /* Allow it to grow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wp-lingo-points-feedback {
    line-height: 1.8;
    font-size: 1.2em;
    color: var(--wp-lingo-text);
}

.wp-lingo-points-feedback h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-points-feedback hr {
    margin: 15px 0;
    border: none;
    height: 1px;
    background: var(--wp-lingo-glass-border);
}

.wp-lingo-points-feedback strong {
    font-size: 1.3em;
    color: var(--wp-lingo-accent);
}

/* --- User Dashboard --- */
.wp-lingo-dashboard {
    max-width: 900px;
    margin: 2em auto;
    padding: 25px;
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    box-shadow: var(--wp-lingo-glass-shadow);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wp-lingo-stat-card {
    background: var(--wp-lingo-glass);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--wp-lingo-glass-border);
    position: relative;
    overflow: hidden;
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); Remove transition */
    cursor: default;
    /* Ensure cursor doesn't look clickable */
    pointer-events: none;
    /* Disable all hover effects */
}

.wp-lingo-stat-card .stat-card-label {
    font-size: 0.95em;
    font-weight: bold;
    color: var(--wp-lingo-text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-lingo-stat-card .stat-card-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    line-height: 1.2;
}

.wp-lingo-stat-card .stat-card-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 5em;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.wp-lingo-stat-card img,
.wp-lingo-stat-card .emoji {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Specific Card Colors - Modern Gradients */
.wp-lingo-stat-card.points {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    box-shadow: inset 0 -3px 0 rgba(251, 191, 36, 0.5);
}

.wp-lingo-stat-card.gems {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(34, 211, 238, 0.1));
    box-shadow: inset 0 -3px 0 rgba(6, 182, 212, 0.5);
}

.wp-lingo-stat-card.streak {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.1));
    box-shadow: inset 0 -3px 0 rgba(249, 115, 22, 0.5);
}

.wp-lingo-stat-card.lives {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(251, 113, 133, 0.1));
    box-shadow: inset 0 -3px 0 rgba(244, 63, 94, 0.5);
}

.wp-lingo-stat-card.freezes {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
    box-shadow: inset 0 -3px 0 rgba(99, 102, 241, 0.5);
}

.wp-lingo-stat-card.review-pending {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.1));
    /* Red-ish for urgency */
    box-shadow: inset 0 -3px 0 rgba(239, 68, 68, 0.5);
}

.wp-lingo-stat-card.review-clean {
    border-bottom: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    /* Green for success */
    box-shadow: inset 0 -3px 0 rgba(16, 185, 129, 0.5);
}

/* ========================================
   STREAK WIDGET STYLES
   ======================================== */

/* Card Style */
.wp-lingo-streak-widget.card {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.wp-lingo-streak-widget.card .streak-widget-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.wp-lingo-streak-widget.card .streak-main-icon {
    font-size: 3em;
    line-height: 1;
}

.wp-lingo-streak-widget.card .streak-info {
    text-align: left;
}

.wp-lingo-streak-widget.card .streak-value-large {
    font-size: 2.5em;
    font-weight: 800;
    line-height: 1;
    color: var(--wp-lingo-text);
}

.wp-lingo-streak-widget.card .streak-label {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-lingo-streak-widget.card .streak-widget-status {
    margin-bottom: 12px;
}

.wp-lingo-streak-widget.card .status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-lingo-streak-widget.card .status-badge.streak-safe {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.wp-lingo-streak-widget.card .status-badge.streak-at_risk {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
    animation: streak-pulse 1.5s ease-in-out infinite;
}

.wp-lingo-streak-widget.card .status-badge.streak-broken {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.wp-lingo-streak-widget.card .streak-widget-message {
    font-size: 1em;
    color: var(--wp-lingo-text);
    margin-bottom: 16px;
}

.wp-lingo-streak-widget.card .streak-widget-action {
    margin-top: 16px;
}

.wp-lingo-streak-widget.card .streak-freeze-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.wp-lingo-streak-widget.card .streak-freeze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.wp-lingo-streak-widget.card .streak-widget-warning {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f97316;
    font-weight: 600;
    margin-top: 16px;
    animation: streak-pulse 2s ease-in-out infinite;
}

.wp-lingo-streak-widget.card .streak-widget-encouragement {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--wp-lingo-text-muted);
    font-size: 0.9em;
    margin-top: 16px;
}

.wp-lingo-streak-widget.card .streak-widget-freezes {
    margin-top: 16px;
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
}

/* Status-based card backgrounds */
.wp-lingo-streak-widget.card.streak-safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.wp-lingo-streak-widget.card.streak-at_risk {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.05));
    border-color: rgba(249, 115, 22, 0.4);
    animation: streak-card-pulse 2s ease-in-out infinite;
}

.wp-lingo-streak-widget.card.streak-broken {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(156, 163, 175, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
}

.wp-lingo-streak-widget.card.streak-broken .streak-main-icon {
    filter: grayscale(0.5);
    opacity: 0.7;
}

/* Compact Style (for headers/menus) */
.wp-lingo-streak-widget.compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    font-weight: 700;
}

.wp-lingo-streak-widget.compact .streak-icon {
    font-size: 1.1em;
}

.wp-lingo-streak-widget.compact .streak-value {
    font-size: 1em;
    color: var(--wp-lingo-text);
}

.wp-lingo-streak-widget.compact.streak-safe {
    border-color: rgba(16, 185, 129, 0.4);
}

.wp-lingo-streak-widget.compact.streak-at_risk {
    border-color: rgba(249, 115, 22, 0.5);
    animation: streak-pulse 1.5s ease-in-out infinite;
}

.wp-lingo-streak-widget.compact.streak-broken {
    border-color: rgba(239, 68, 68, 0.3);
    opacity: 0.7;
}

.wp-lingo-streak-widget.compact .streak-freeze-btn-mini {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 1em;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.wp-lingo-streak-widget.compact .streak-freeze-btn-mini:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Animations */
@keyframes streak-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes streak-card-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(249, 115, 22, 0.15);
    }
}

/* Inline streak styles (for [wp_lingo_user_streak] shortcode) */
.wp-lingo-streak-inline {
    font-weight: 700;
}

.wp-lingo-streak-inline.streak-status-safe {
    color: #10b981;
}

.wp-lingo-streak-inline.streak-status-at_risk {
    color: #f97316;
    animation: streak-pulse 1.5s ease-in-out infinite;
}

.wp-lingo-streak-inline.streak-status-broken {
    color: #9ca3af;
}

/* --- Streak Widget: Next Milestone Section --- */
.wp-lingo-streak-widget.card .streak-widget-milestone {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.streak-widget-milestone .milestone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.streak-widget-milestone .milestone-icon {
    font-size: 1.2em;
}

.streak-widget-milestone .milestone-title {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.streak-widget-milestone .milestone-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.streak-widget-milestone .milestone-target {
    font-size: 1.5em;
    font-weight: 800;
    color: #f59e0b;
}

.streak-widget-milestone .milestone-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.streak-widget-milestone .milestone-reward {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9em;
}

.streak-widget-milestone .milestone-days-left {
    color: var(--wp-lingo-text-muted);
}

.streak-widget-milestone .milestone-gems {
    color: #06b6d4;
    font-weight: 700;
}

/* --- Streak Widget: Repair Section --- */
.wp-lingo-streak-widget.card .streak-widget-repair {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    animation: streak-card-pulse 2s ease-in-out infinite;
}

.streak-widget-repair .repair-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.streak-widget-repair .repair-icon {
    font-size: 1.3em;
}

.streak-widget-repair .repair-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--wp-lingo-text);
}

.streak-widget-repair .repair-info {
    text-align: center;
    margin-bottom: 12px;
}

.streak-widget-repair .repair-info p {
    margin: 0 0 8px 0;
    color: var(--wp-lingo-text);
    font-size: 0.95em;
}

.streak-widget-repair .repair-timer {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    animation: streak-pulse 1.5s ease-in-out infinite;
}

.streak-widget-repair .streak-repair-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.streak-widget-repair .streak-repair-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* ========================================
   STREAK BROKEN MODAL
   ======================================== */
.wp-lingo-streak-broken-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.streak-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.streak-modal-content {
    position: relative;
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.streak-modal-icon {
    font-size: 4em;
    line-height: 1;
    margin-bottom: 16px;
    animation: iconShake 0.5s ease 0.3s;
}

@keyframes iconShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.streak-modal-title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 20px 0;
}

.streak-modal-lost-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.streak-modal-lost-value .lost-value-number {
    font-size: 4em;
    font-weight: 900;
    color: #ef4444;
    line-height: 1;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.streak-modal-lost-value .lost-value-label {
    font-size: 1em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Repair Option */
.streak-modal-repair-option p {
    color: var(--wp-lingo-text);
    margin: 0 0 16px 0;
    font-size: 1em;
}

.streak-modal-timer {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 12px;
    animation: streak-pulse 1.5s ease-in-out infinite;
}

.streak-modal-cost {
    color: var(--wp-lingo-text);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
}

.streak-modal-cost .insufficient-gems {
    color: #ef4444;
    font-size: 0.85em;
    font-weight: 400;
}

.streak-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.streak-modal-actions .wp-lingo-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.streak-repair-btn-modal {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.streak-repair-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.streak-modal-start-fresh {
    background: var(--wp-lingo-glass);
    color: var(--wp-lingo-text);
    border: 1px solid var(--wp-lingo-glass-border) !important;
}

.streak-modal-start-fresh:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Fresh Start View */
.streak-modal-fresh-start p {
    color: var(--wp-lingo-text);
    margin: 0 0 12px 0;
}

.streak-modal-encouragement {
    color: #f59e0b !important;
    font-weight: 600;
    font-size: 1.1em;
}

.streak-modal-fresh-start .streak-modal-start-fresh {
    margin-top: 16px;
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    color: white;
    border: none !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.streak-modal-fresh-start .streak-modal-start-fresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}


/* ========================================
   SMALL STAT CARD VARIANT
   ======================================== */
/* ========================================
   SMALL STAT CARD VARIANT (Header/Menu Friendly)
   ======================================== */
.wp-lingo-stat-card.size-small {
    padding: 6px 16px;
    border-radius: 12px;
    min-height: 44px;
    /* Match standard button height */
    height: 44px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    /* Flatter for headers */
    position: relative;
    overflow: hidden;
}

.wp-lingo-stat-card.size-small:hover {
    transform: none !important;
}

/* Common small text adjustments */
.wp-lingo-stat-card.size-small .stat-card-label {
    display: none;
    /* Hide label for compact header view by default */
}

.wp-lingo-stat-card.size-small .stat-card-value {
    font-size: 1.25em;
    line-height: 1;
    margin: 0;
    font-weight: 700;
    /* Standard bold */
    z-index: 2;
}

/* --- Style 1 Small (Colored Background variant) --- */
/* Flex alignment handled by common rules, icon is absolute */

/* Restore the absolute icon for Style 1 Small - Watermark effect */
.wp-lingo-stat-card.style-1.size-small .stat-card-icon {
    position: absolute;
    right: -8px;
    bottom: -6px;
    transform: rotate(-15deg);
    font-size: 2.5em;
    opacity: 0.2;
    /* Faded watermark look */
    margin: 0;
    width: auto;
    height: auto;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.wp-lingo-stat-card.style-1.size-small .xp-text {
    font-size: 0.6em;
    font-weight: 900;
}

/* Center value since icon is background */
.wp-lingo-stat-card.style-1.size-small .stat-card-value {
    order: unset;
    margin-right: 0;
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    /* Specific size adjustment */
}


/* --- Style 2 Small (Bordered Pill) --- */
.wp-lingo-stat-card.style-2.size-small {
    padding: 6px 14px;
    flex-direction: row;
    border-width: 2px;
    /* Make it pop a bit more */
    box-shadow: none !important;
    /* No shadow for style 2 small */
}

.wp-lingo-stat-card.style-2.size-small:hover {
    box-shadow: none !important;
}

.wp-lingo-stat-card.style-2.size-small .stat-card-emoji {
    font-size: 1.25em;
    line-height: 1;
    margin: 0;
}

.wp-lingo-stat-card.style-2.size-small .stat-card-value {
    font-size: 1.1em;
    margin: 0;
    font-weight: 800;
}

.wp-lingo-stat-card.style-2.size-small .stat-card-sublabel {
    display: none;
}

/* Optional: Show label in specific cases or on hover? 
   For now, we hide it to ensure it fits in a header/menu bar as requested. 
*/


.wp-lingo-dashboard-achievements h3 {
    font-size: 1.5em;
    color: var(--wp-lingo-text);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--wp-lingo-glass-border);
    padding-bottom: 12px;
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-user-achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-lingo-user-achievements-list li a {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--wp-lingo-glass);
    border-radius: 12px;
    border: 1px solid var(--wp-lingo-glass-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-lingo-user-achievements-list li a:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--wp-lingo-accent);
    transform: translateX(5px);
}

.wp-lingo-user-achievements-list li img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--wp-lingo-accent);
}

.wp-lingo-user-achievements-list li span {
    font-weight: bold;
    color: var(--wp-lingo-text);
}

/* --- Phase List Styles --- */
.wp-lingo-phases-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-lingo-phase-item {
    display: block;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.wp-lingo-phase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wp-lingo-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-lingo-phase-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--wp-lingo-accent);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25);
}

.wp-lingo-phase-item:hover::before {
    opacity: 1;
}

.wp-lingo-phase-title {
    font-size: 1.4em;
    color: var(--wp-lingo-text);
    margin: 0 0 12px 0;
}

.wp-lingo-phase-description {
    font-size: 1em;
    color: var(--wp-lingo-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Leaderboard Styles --- */
.wp-lingo-leaderboard-container {
    max-width: 600px;
    margin: 2em auto;
    padding: 25px;
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    box-shadow: var(--wp-lingo-glass-shadow);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-leaderboard-container h3 {
    font-size: 1.6em;
    margin: 0 0 20px 0;
    text-align: center;
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: leaderboard-rank;
}

.wp-lingo-leaderboard-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wp-lingo-leaderboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--wp-lingo-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-lingo-leaderboard-item:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--wp-lingo-accent);
}

.wp-lingo-leaderboard-item:hover::before {
    opacity: 1;
}

/* Top 3 special styles */
.wp-lingo-leaderboard-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
}

.wp-lingo-leaderboard-item:nth-child(1) .rank {
    background: var(--wp-lingo-gold-gradient);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.wp-lingo-leaderboard-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1));
    border-color: rgba(192, 192, 192, 0.3);
}

.wp-lingo-leaderboard-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.wp-lingo-leaderboard-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1));
    border-color: rgba(205, 127, 50, 0.3);
}

.wp-lingo-leaderboard-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #cd7f32, #b8733d);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.wp-lingo-leaderboard-item .rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wp-lingo-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    color: white;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.wp-lingo-leaderboard-item .name {
    flex-grow: 1;
    font-weight: bold;
    color: var(--wp-lingo-text);
    font-size: 1.1em;
}

.wp-lingo-leaderboard-item .points {
    font-weight: bold;
    color: var(--wp-lingo-accent);
    font-size: 1.1em;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    white-space: nowrap;
}

.wp-lingo-leaderboard-item .points small {
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 2px;
}

/* --- Enhanced Leaderboard Styles --- */
.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-lingo-leaderboard-enhanced .leaderboard-icon {
    font-size: 1.2em;
}

.wp-lingo-leaderboard-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    font-size: 0.85em;
    color: #f97316;
}

.wp-lingo-leaderboard-countdown .countdown-icon {
    font-size: 1em;
}

.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wp-lingo-leaderboard-enhanced .leaderboard-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wp-lingo-leaderboard-enhanced .leaderboard-rank .medal {
    font-size: 1.8em;
}

.wp-lingo-leaderboard-enhanced .leaderboard-rank .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wp-lingo-glass);
    border: 2px solid var(--wp-lingo-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95em;
    color: var(--wp-lingo-text-muted);
}

.wp-lingo-leaderboard-enhanced .leaderboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--wp-lingo-glass-border);
    flex-shrink: 0;
    object-fit: cover;
}

/* Top 3 avatar borders */
.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-item:nth-child(1) .leaderboard-avatar {
    border-color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-item:nth-child(2) .leaderboard-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
}

.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-item:nth-child(3) .leaderboard-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.4);
}

.wp-lingo-leaderboard-enhanced .leaderboard-info {
    flex-grow: 1;
    min-width: 0;
}

.wp-lingo-leaderboard-enhanced .leaderboard-info .name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: var(--wp-lingo-text);
    font-size: 1em;
    margin-bottom: 4px;
}

.wp-lingo-leaderboard-enhanced .you-badge {
    font-size: 0.65em;
    padding: 2px 8px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.wp-lingo-leaderboard-enhanced .streak-mini {
    font-size: 0.8em;
    color: #f97316;
    margin-left: 4px;
}

.wp-lingo-leaderboard-enhanced .progress-bar-mini {
    width: 100%;
    height: 4px;
    background: var(--wp-lingo-glass);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.wp-lingo-leaderboard-enhanced .progress-bar-mini .progress-fill {
    height: 100%;
    background: var(--wp-lingo-accent-gradient);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Current user highlight */
.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-item.is-current-user {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 139, 250, 0.15));
    border-color: var(--wp-lingo-accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.wp-lingo-leaderboard-enhanced .wp-lingo-leaderboard-item.is-current-user .leaderboard-avatar {
    border-color: var(--wp-lingo-accent);
}

/* Separator */
.wp-lingo-leaderboard-separator {
    text-align: center;
    padding: 12px 0;
    color: var(--wp-lingo-text-muted);
    font-size: 1.5em;
    letter-spacing: 6px;
}

/* Current user outside top */
.wp-lingo-leaderboard-current-user {
    margin-top: 0;
}

.wp-lingo-leaderboard-current-user .wp-lingo-leaderboard-item {
    margin-bottom: 0;
}

/* Empty state */
.wp-lingo-leaderboard-empty {
    text-align: center;
    padding: 40px 20px;
}

.wp-lingo-leaderboard-empty .empty-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.wp-lingo-leaderboard-empty p {
    margin: 0 0 8px 0;
    color: var(--wp-lingo-text);
    font-size: 1.1em;
}

.wp-lingo-leaderboard-empty .empty-hint {
    color: var(--wp-lingo-text-muted);
    font-size: 0.95em;
}

/* --- Store Styles --- */
.wp-lingo-store-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 30px;
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    box-shadow: var(--wp-lingo-glass-shadow);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-store-container h2 {
    font-size: 1.8em;
    margin: 0 0 25px 0;
    text-align: center;
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-store-balance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.wp-lingo-balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-border);
    border-radius: 16px;
    min-height: 100px;
}

.wp-lingo-balance-item span:first-child {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-lingo-balance-item span:last-child {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--wp-lingo-text);
}

#wp-lingo-user-gems {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-store-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wp-lingo-store-item {
    background: var(--wp-lingo-bg-light);
    /* Use the solid/high-opacity bg */
    border: 1px solid var(--wp-lingo-border);
    /* Use the stronger border */
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.wp-lingo-store-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wp-lingo-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-lingo-store-item:hover {
    transform: translateY(-5px);
    border-color: var(--wp-lingo-accent);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.wp-lingo-store-item:hover::before {
    opacity: 1;
}

.wp-lingo-store-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: var(--wp-lingo-text);
}

.wp-lingo-store-item p {
    margin: 0 0 auto 0;
    color: var(--wp-lingo-text-muted);
    line-height: 1.5;
    font-size: 0.95em;
    flex-grow: 1;
}

.wp-lingo-store-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-store-item-price {
    font-size: 1.4em;
    font-weight: bold;
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-store-item .wp-lingo-button {
    padding: 12px 24px;
    font-size: 0.95em;
}

/* Store Responsive */
@media (max-width: 600px) {

    .wp-lingo-store-balance,
    .wp-lingo-store-items {
        grid-template-columns: 1fr;
    }

    .wp-lingo-store-container {
        padding: 20px;
    }
}

/* --- Phase List Styles --- */
.wp-lingo-phases-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 10px;
}

.wp-lingo-phase-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    background: var(--wp-lingo-bg-light);
    /* Solid background for cleaner look */
    border: 1px solid var(--wp-lingo-border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark mode specific background */
body.wp-lingo-dark-mode .wp-lingo-phase-item {
    background: var(--wp-lingo-glass);
    border-color: var(--wp-lingo-glass-border);
    box-shadow: var(--wp-lingo-glass-shadow);
}

/* Top Gradient Border - Visible on Hover or Active */
.wp-lingo-phase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wp-lingo-accent-gradient);
    opacity: 0;
    transform: scaleX(0.95);
    transform-origin: center;
    transition: all 0.3s ease;
}

.wp-lingo-phase-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.5);
    /* Accent color hint */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wp-lingo-phase-item:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.wp-lingo-phase-title {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--wp-lingo-text);
    margin: 0 0 8px 0;
    transition: color 0.2s ease;
    /* Fix for alignment: reserve space for 2 lines and align to top */
    min-height: 3.2em;
    display: flex;
    flex-direction: column;
    /* Allow text to stack naturally */
    justify-content: flex-start;
    /* Align to TOP */
    align-items: center;
    /* Center horizontally */
    text-align: center;
}

.wp-lingo-phase-item:hover .wp-lingo-phase-title {
    color: var(--wp-lingo-accent);
}

.wp-lingo-phase-description {
    font-size: 0.95em;
    color: var(--wp-lingo-text-muted);
    margin: 0 0 15px 0;
    /* Add margin bottom */
    line-height: 1.5;
    flex-grow: 1;
    /* Push the stats down */
}

/* Phase Content Structure for Alignment */
.phase-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.phase-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    margin-top: auto;
    /* Ensure it stays at bottom */
}

/* Phase Progress Bar - Fix Visibility */
.phase-progress-bar {
    height: 8px;
    background-color: #e2e8f0;
    /* Visible track color for Light Mode (Slate-200) */
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
    width: 100%;
}

.phase-progress-fill {
    height: 100%;
    background: var(--wp-lingo-accent-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides for Progress Bar */
body.wp-lingo-dark-mode .phase-progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Phase List Responsive */
@media (max-width: 600px) {
    .wp-lingo-phases-list-container {
        grid-template-columns: 1fr;
    }
}



/* --- Practice Button Shortcode --- */
.wp-lingo-practice-button-container {
    text-align: center;
    margin: 20px 0;
}

.wp-lingo-practice-button-container .wp-lingo-button {
    width: 100%;
    max-width: 400px;
    padding: 16px 24px;
    font-size: 1.1em;
}

/* --- Item Cost Shortcode --- */
.wp-lingo-item-cost {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--wp-lingo-accent);
    border-radius: 20px;
    color: var(--wp-lingo-text);
    font-weight: bold;
    font-family: inherit;
}

.wp-lingo-item-cost::after {
    content: ' 💎';
    margin-left: 5px;
}

/* --- Purchase Button Individual Shortcode --- */
.wp-lingo-purchase-btn {
    /* Inherits from .wp-lingo-button but ensures it looks good standalone */
    min-width: 120px;
}

/* --- New CSS-Only Path Node Styles (Enhanced Ring 3D) --- */
.wp-lingo-path ul.wp-lingo-path {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 24px;
    /* More space between nodes */
}

.wp-lingo-path-node {
    margin: 10px 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Remove default link styles */
.wp-lingo-path-node a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wp-lingo-path-node-icon {
    width: 80px;
    /* Slightly larger */
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    /* Bigger icon */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    /* Create the "Ring" effect using border */
    border-width: 4px;
    border-style: solid;
}

.wp-lingo-path-node-label {
    margin-top: 12px;
    font-weight: 800;
    /* Bolder text */
    color: var(--wp-lingo-text-muted);
    font-size: 0.95em;
    text-align: center;
    max-width: 200px;
    line-height: 1.3;
}

/* Dark Mode Label */
body.wp-lingo-dark-mode .wp-lingo-path-node-label {
    color: var(--wp-lingo-text-muted);
}

/* --- LOCKED STATE --- */
.wp-lingo-path-node.node-locked .wp-lingo-path-node-icon {
    background-color: #e2e8f0;
    /* Slate 200 - Visible on white */
    border-color: #cbd5e1;
    /* Slate 300 ring */
    box-shadow: 0 4px 0 #94a3b8;
    /* Slate 400 depth */
    color: #94a3b8;
    /* Muted icon color */
}

/* Dark mode adjustment for locked */
body.wp-lingo-dark-mode .wp-lingo-path-node.node-locked .wp-lingo-path-node-icon {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.2);
}

/* --- COMPLETED STATE --- (Success / Emerald - Crown Style) */
.wp-lingo-path-node.node-completed .wp-lingo-path-node-icon {
    /* "Violet-like" gradient but in Green (Light to Dark) */
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    border-color: #059669;
    box-shadow: 0 6px 0 #047857;
    color: white;
}

/* Restore Hover Effect for Completed Nodes */
.wp-lingo-path-node.node-completed a:hover .wp-lingo-path-node-icon {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
    box-shadow: 0 6px 0 #047857, 0 10px 20px rgba(16, 185, 129, 0.3);
}

.wp-lingo-path-node.node-completed:active .wp-lingo-path-node-icon {
    transform: translateY(5px);
    box-shadow: 0 0 0 #064e3b;
}

/* --- UNLOCKED / ACTIVE STATE --- (Main Gradient - "Juicy" Button) */
/* --- UNLOCKED / ACTIVE STATE --- (Main Gradient - "Juicy" Button) */
/* --- UNLOCKED / ACTIVE STATE --- (Main Gradient - "Juicy" Button) */
.wp-lingo-path-node.node-unlocked .wp-lingo-path-node-icon {
    /* Pure Violet Gradient */
    background: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 100%);

    /* Remove physical border to kill the square artifact */
    border: none;

    /* 1. White Ring (Inset)
       2. Dark Deep "Lip" (Solid Shadow)
       3. Glow (Soft Shadow) */
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.4),
        0 6px 0 #4c1d95,
        0 10px 20px rgba(124, 58, 237, 0.4);

    color: white;
}

/* "Estás aquí" Animation Bubble - Only shows on current (next to complete) lesson */
.wp-lingo-path-node.node-current::after {
    content: "¡Estás aquí! 👋";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 50px;
    /* Offset to the right of the ~80px icon */
    transform: translateY(-50%);
    background: #ffffff;
    color: var(--wp-lingo-accent);
    padding: 8px 14px;
    border-radius: 16px;
    border: 2px solid var(--wp-lingo-accent);
    font-size: 0.9em;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    z-index: 100;
    pointer-events: none;
    animation: wpLingoBubbleBounce 2s ease-in-out infinite;
}

/* Bubble Tail */
.wp-lingo-path-node.node-current::before {
    content: '';
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 40px;
    /* Position betwen icon and bubble */
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid var(--wp-lingo-accent);
    transform: translateY(-50%);
    z-index: 99;
    animation: wpLingoBubbleBounce 2s ease-in-out infinite;
}

@keyframes wpLingoBubbleBounce {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -8px;
    }
}

.wp-lingo-path-node.node-unlocked:active .wp-lingo-path-node-icon {
    transform: translateY(6px);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 0 0 #0e7490;
    animation: none;
}

/* Inner Icon Alignment */
.node-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-style: normal;
}

/* Crown/Level Indicator */
.wp-lingo-crown-indicator {
    position: absolute;
    top: -5px;
    right: -20px;
    background: #fbbf24;
    color: #78350f;
    font-size: 0.75em;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 0 #d97706;
    z-index: 20;
    transform: rotate(15deg);
    border: 1px solid #f59e0b;
}

/* --- Tooltip Styles for Achievements --- */
.wp-lingo-tooltip-container {
    cursor: help;
}

/* 3D Card Effect */
.achievement-card {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.2),
        /* Solid shadow */
        0 8px 15px rgba(0, 0, 0, 0.1) !important;
    transform: perspective(1000px) rotateX(0deg) !important;
}

.wp-lingo-tooltip-container:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
        0 10px 0 rgba(0, 0, 0, 0.2),
        /* Thicker shadow on hover */
        0 20px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
}

.wp-lingo-tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--wp-lingo-bg, #0f0f23);
    border: 1px solid var(--wp-lingo-border, rgba(255, 255, 255, 0.2));
    color: var(--wp-lingo-text, #fff);

    /* Improved Visibility */
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    /* Larger text */
    line-height: 1.5;
    letter-spacing: 0.3px;
    width: max-content;
    max-width: 280px;
    /* Wider */

    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    visibility: hidden;
    z-index: 101;
    backdrop-filter: blur(10px);
}

/* Tooltip Arrow */
.wp-lingo-tooltip-container::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 10px solid transparent;
    border-top-color: var(--wp-lingo-bg, #0f0f23);
    margin-bottom: -18px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    visibility: hidden;
    z-index: 101;
}

.wp-lingo-tooltip-container:hover::after,
.wp-lingo-tooltip-container:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Animations for Value Changes */
@keyframes wpLingoPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        color: #10b981;
        /* Green */
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wpLingoDrop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
        color: #f43f5e;
        /* Red */
    }

    100% {
        transform: scale(1);
    }
}

.wp-lingo-pop {
    animation: wpLingoPop 0.4s ease;
}

.wp-lingo-drop {
    animation: wpLingoDrop 0.4s ease;
}

/* --- Lesson Page Content Styles (Global Helper for Builders) --- */
.wp-lingo-lesson-content {
    max-width: 900px;
    margin: 2em auto;
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--wp-lingo-glass-shadow);
    color: var(--wp-lingo-text);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
}

/* Dark Mode Variation */
body.wp-lingo-dark-mode .wp-lingo-lesson-content {
    background: var(--wp-lingo-glass);
    border-color: var(--wp-lingo-glass-border);
    color: var(--wp-lingo-text);
}

/* Deep targeting for headings to match Bricks/Elementor nested structures */
.wp-lingo-lesson-content h1,
.wp-lingo-lesson-content .brxe-post-title,
.wp-lingo-lesson-content .brxe-heading {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 800;
    line-height: 1.2;
    color: var(--wp-lingo-text);
}

.wp-lingo-lesson-content h1,
.wp-lingo-lesson-content .brxe-post-title {
    font-size: 2.5em;
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1em;
    display: inline-block;
    /* Fix for gradients on block elements sometimes */
    width: 100%;
}

.wp-lingo-lesson-content h2,
.wp-lingo-lesson-content .brxe-heading h2 {
    font-size: 2em;
    border-bottom: 2px solid var(--wp-lingo-glass-border);
    padding-bottom: 10px;
    color: var(--wp-lingo-text);
}

.wp-lingo-lesson-content h3 {
    font-size: 1.5em;
    color: var(--wp-lingo-text);
}

/* Deep targeting for paragraphs and rich text content */
.wp-lingo-lesson-content p,
.wp-lingo-lesson-content .brxe-text,
.wp-lingo-lesson-content .brxe-post-content p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    color: var(--wp-lingo-text-muted);
}

body.wp-lingo-dark-mode .wp-lingo-lesson-content p,
body.wp-lingo-dark-mode .wp-lingo-lesson-content .brxe-text,
body.wp-lingo-dark-mode .wp-lingo-lesson-content .brxe-post-content p {
    color: var(--wp-lingo-text-muted);
}

.wp-lingo-lesson-content ul,
.wp-lingo-lesson-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.wp-lingo-lesson-content li {
    margin-bottom: 0.5em;
    color: var(--wp-lingo-text-muted);
}

body.wp-lingo-dark-mode .wp-lingo-lesson-content li {
    color: var(--wp-lingo-text-muted);
}

/* Links */
.wp-lingo-lesson-content a {
    color: var(--wp-lingo-accent);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed var(--wp-lingo-accent);
    transition: all 0.2s;
}

.wp-lingo-lesson-content a:hover {
    color: #06b6d4;
    border-bottom-style: solid;
}

/* Start Quiz CTA Area */
.wp-lingo-start-quiz-cta {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--wp-lingo-glass-border);
    text-align: center;
}

/* Ensure images are responsive within content */
.wp-lingo-lesson-content img,
.wp-lingo-lesson-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Blockquotes */
.wp-lingo-lesson-content blockquote {
    background: var(--wp-lingo-glass);
    border-left: 4px solid var(--wp-lingo-accent);
    margin: 20px 0;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--wp-lingo-text);
}

/* Responsive */
@media (max-width: 600px) {
    .wp-lingo-lesson-content {
        padding: 20px;
        margin: 1em;
    }

    .wp-lingo-lesson-content h1 {
        font-size: 1.8em;
    }
}

/* --- Daily Challenge Styles --- */
.wp-lingo-daily-challenge-container {
    max-width: 500px;
    margin: 1.5em auto;
    padding: 24px;
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    box-shadow: var(--wp-lingo-glass-shadow);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 2px solid var(--wp-lingo-glass-border);
    position: relative;
    overflow: hidden;
}

.wp-lingo-daily-challenge-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.wp-lingo-daily-challenge-container.challenge-completed::before {
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.wp-lingo-daily-challenge-container.challenge-claimed::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #8b5cf6);
    animation: none;
}

.daily-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.daily-challenge-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.daily-challenge-icon {
    font-size: 2.5em;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.challenge-claimed .daily-challenge-icon {
    animation: none;
}

.daily-challenge-title-group {
    display: flex;
    flex-direction: column;
}

.daily-challenge-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp-lingo-text-muted);
    font-weight: bold;
}

.daily-challenge-title {
    margin: 0;
    font-size: 1.3em;
    color: var(--wp-lingo-text);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.daily-challenge-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    font-size: 0.85em;
    color: #ef4444;
    font-weight: bold;
    white-space: nowrap;
}

.daily-challenge-countdown .countdown-icon {
    font-size: 1em;
}

.daily-challenge-description {
    margin: 0 0 20px 0;
    color: var(--wp-lingo-text-muted);
    font-size: 1em;
    line-height: 1.5;
}

.daily-challenge-progress-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.daily-challenge-progress-bar {
    flex-grow: 1;
    height: 16px;
    background: var(--wp-lingo-glass);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--wp-lingo-glass-border);
}

.daily-challenge-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.daily-challenge-progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.challenge-completed .daily-challenge-progress-bar .progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.daily-challenge-progress-text {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    white-space: nowrap;
}

.daily-challenge-progress-text .progress-current {
    color: #f59e0b;
}

.challenge-completed .daily-challenge-progress-text .progress-current {
    color: #10b981;
}

.daily-challenge-progress-text .progress-separator {
    color: var(--wp-lingo-text-muted);
    margin: 0 2px;
}

.daily-challenge-rewards {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
}

.daily-challenge-rewards .reward-label {
    color: var(--wp-lingo-text-muted);
    font-size: 0.9em;
}

.daily-challenge-rewards .reward-item {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.95em;
}

.daily-challenge-rewards .reward-xp {
    background: rgba(251, 191, 36, 0.2);
    color: #f59e0b;
}

.daily-challenge-rewards .reward-gems {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.daily-challenge-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1em;
}

.daily-challenge-status.in-progress {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.daily-challenge-status.claimed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.daily-challenge-status .status-icon {
    font-size: 1.2em;
}

.wp-lingo-claim-challenge-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    animation: claim-pulse 1.5s ease-in-out infinite;
}

@keyframes claim-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.wp-lingo-claim-challenge-btn:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    animation: none;
}

.wp-lingo-claim-challenge-btn .btn-icon {
    font-size: 1.3em;
}

/* Guest state */
.wp-lingo-daily-challenge-guest {
    text-align: center;
    padding: 40px 24px;
}

.wp-lingo-daily-challenge-guest .daily-challenge-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.wp-lingo-daily-challenge-guest h3 {
    margin: 0 0 8px 0;
    color: var(--wp-lingo-text);
}

.wp-lingo-daily-challenge-guest p {
    margin: 0;
    color: var(--wp-lingo-text-muted);
}

/* Responsive */
@media (max-width: 500px) {
    .daily-challenge-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .daily-challenge-countdown {
        align-self: flex-start;
    }

    .daily-challenge-progress-section {
        flex-direction: column;
        align-items: stretch;
    }

    .daily-challenge-progress-text {
        text-align: center;
    }
}

/* --- Daily Challenge Completion Notification (Quiz Results) --- */
.daily-challenge-complete-notification {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    animation: dc-notify-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dc-notify-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dc-notify-icon {
    font-size: 3em;
    animation: dc-icon-bounce 1s ease-in-out infinite;
}

@keyframes dc-icon-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.dc-notify-content {
    flex: 1;
}

.dc-notify-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #f59e0b;
    margin-bottom: 8px;
}

.dc-notify-rewards {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.dc-notify-xp {
    padding: 4px 12px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.95em;
}

.dc-notify-gems {
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.95em;
}

.dc-notify-hint {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    font-style: italic;
}

/* --- New Challenge Available State (Countdown Expired) --- */
.daily-challenge-countdown.new-challenge-available {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    animation: new-challenge-pulse 2s ease-in-out infinite;
}

@keyframes new-challenge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.15);
    }
}

.countdown-new-challenge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-refresh-link {
    color: #10b981;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.countdown-refresh-link:hover {
    color: #34d399;
}

/* --- Blitz Mode Styles --- */
.wp-lingo-blitz-mode {
    position: relative;
}

.wp-lingo-blitz-timer-container {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.15));
    border: 2px solid rgba(249, 115, 22, 0.5);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.wp-lingo-blitz-timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ef4444, #f97316);
    background-size: 200% 100%;
    animation: blitz-shimmer 1s linear infinite;
}

@keyframes blitz-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.blitz-timer-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blitz-timer-header .blitz-icon {
    font-size: 1.8em;
    animation: blitz-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes blitz-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.15);
        filter: brightness(1.3);
    }
}

.blitz-timer-header .blitz-label {
    font-weight: 900;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blitz-timer-bar {
    flex-grow: 1;
    height: 12px;
    background: var(--wp-lingo-glass);
    border-radius: 6px;
    overflow: hidden;
    min-width: 120px;
    border: 1px solid var(--wp-lingo-glass-border);
}

.blitz-timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 6px;
    transition: width 0.1s linear, background 0.3s ease;
    position: relative;
}

/* Timer color states */
.blitz-timer-fill.time-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.blitz-timer-fill.time-critical {
    background: linear-gradient(90deg, #ef4444, #f87171);
    animation: timer-critical-pulse 0.3s ease-in-out infinite alternate;
}

@keyframes timer-critical-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.blitz-timer-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Courier New', monospace;
}

.blitz-time-remaining {
    font-size: 2em;
    font-weight: bold;
    color: #10b981;
    min-width: 45px;
    text-align: center;
    transition: color 0.3s ease;
}

.blitz-time-remaining.time-warning {
    color: #f59e0b;
}

.blitz-time-remaining.time-critical {
    color: #ef4444;
    animation: time-shake 0.1s ease-in-out infinite;
}

@keyframes time-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

.blitz-time-label {
    font-size: 1em;
    color: var(--wp-lingo-text-muted);
}

.blitz-bonus-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.blitz-bonus-indicator .bonus-label {
    color: var(--wp-lingo-text-muted);
}

.blitz-bonus-indicator .bonus-value {
    font-weight: bold;
    color: #10b981;
    transition: all 0.2s ease;
}

.blitz-bonus-indicator.high-bonus {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.blitz-bonus-indicator.low-bonus {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
}

.blitz-bonus-indicator.low-bonus .bonus-value {
    color: #f59e0b;
}

.blitz-bonus-indicator.no-bonus {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.blitz-bonus-indicator.no-bonus .bonus-value {
    color: #ef4444;
}

/* Time's up animation */
.wp-lingo-blitz-mode.time-expired .wp-lingo-blitz-timer-container {
    animation: times-up-shake 0.5s ease-in-out;
    border-color: #ef4444;
}

@keyframes times-up-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Blitz feedback banner enhancement */
.wp-lingo-blitz-mode .wp-lingo-feedback-banner .speed-bonus-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    font-size: 0.9em;
    margin-left: 8px;
}

.wp-lingo-blitz-mode .wp-lingo-feedback-banner .speed-bonus-display.no-bonus {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 600px) {
    .wp-lingo-blitz-timer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .blitz-timer-header {
        justify-content: center;
    }

    .blitz-timer-display {
        justify-content: center;
    }

    .blitz-bonus-indicator {
        justify-content: center;
    }
}

/* ========================================
   CALENDAR WIDGET STYLES
   ======================================== */
.wp-lingo-calendar-widget {
    font-family: inherit;
    width: 100%;
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--wp-lingo-glass-shadow);
    border: 1px solid var(--wp-lingo-glass-border);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wp-lingo-glass-border);
}

.calendar-header h4 {
    margin: 0;
    color: var(--wp-lingo-text);
    font-size: 1.1em;
    font-weight: bold;
    text-transform: capitalize;
}

.calendar-legend {
    display: flex;
    gap: 10px;
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wp-lingo-glass-border);
}

.dot.active {
    background: #f97316;
    /* Naranja fuego */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.weekday {
    text-align: center;
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    font-weight: bold;
    padding-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9em;
    color: var(--wp-lingo-text);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    /* Slight background for all days */
    transition: all 0.2s ease;
}

.calendar-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.active {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.calendar-day.active:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    transform: scale(1.1);
    z-index: 2;
}

.calendar-day.today {
    border: 2px solid var(--wp-lingo-accent);
}

.calendar-day.future {
    opacity: 0.3;
    pointer-events: none;
    background: none;
}

.calendar-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    padding-top: 15px;
    border-top: 1px solid var(--wp-lingo-glass-border);
}

.calendar-footer strong {
    color: var(--wp-lingo-accent);
}

/* Enhanced Calendar - Streak Break Days */
.calendar-day.streak-break {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.calendar-day.streak-break:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: scale(1.1);
    z-index: 2;
}

.calendar-day.frozen {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.calendar-day.frozen:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    transform: scale(1.1);
    z-index: 2;
}

.dot.frozen {
    background: #0ea5e9;
}

.dot.streak-break {
    background: #ef4444;
}

/* Calendar footer stats */
.calendar-footer .calendar-stat {
    display: inline-block;
    margin: 0 10px;
}

.calendar-footer .calendar-stat.breaks {
    color: #ef4444;
}

.calendar-footer .calendar-stat.breaks strong {
    color: #ef4444;
}

/* ========================================
   STREAK STATS WIDGET
   ======================================== */

/* Card Style */
.wp-lingo-streak-stats.card {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 24px;
}

.wp-lingo-streak-stats.card .streak-stats-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    color: var(--wp-lingo-text);
    font-weight: 700;
}

.wp-lingo-streak-stats.card .streak-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.wp-lingo-streak-stats.card .streak-stat-item {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.wp-lingo-streak-stats.card .streak-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.wp-lingo-streak-stats.card .streak-stat-item .stat-icon {
    font-size: 1.8em;
    line-height: 1;
    margin-bottom: 8px;
}

.wp-lingo-streak-stats.card .streak-stat-item .stat-value {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    line-height: 1;
}

.wp-lingo-streak-stats.card .streak-stat-item .stat-label {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Specific item colors */
.wp-lingo-streak-stats.card .streak-stat-item.current .stat-value {
    color: #f97316;
}

.wp-lingo-streak-stats.card .streak-stat-item.best .stat-value {
    color: #fbbf24;
}

.wp-lingo-streak-stats.card .streak-stat-item.total .stat-value {
    color: #06b6d4;
}

.wp-lingo-streak-stats.card .streak-stat-item.weekly .stat-value {
    color: #10b981;
}

/* Consistency bar */
.wp-lingo-streak-stats.card .streak-consistency {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
}

.streak-consistency .consistency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.streak-consistency .consistency-label {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    font-weight: 600;
}

.streak-consistency .consistency-value {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--wp-lingo-accent);
}

.streak-consistency .consistency-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.streak-consistency .consistency-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.streak-consistency .consistency-hint {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    text-align: center;
}

/* Compact Style */
.wp-lingo-streak-stats.compact {
    display: inline-flex;
    gap: 16px;
    padding: 12px 20px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
}

.wp-lingo-streak-stats.compact .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wp-lingo-streak-stats.compact .stat-icon {
    font-size: 1.1em;
}

.wp-lingo-streak-stats.compact .stat-value {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--wp-lingo-text);
}

.wp-lingo-streak-stats.compact .stat-label {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
}

/* Responsive for streak stats grid */
@media (max-width: 600px) {
    .wp-lingo-streak-stats.card .streak-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   STREAK MULTIPLIER WIDGET
   ======================================== */

.wp-lingo-streak-multiplier-widget {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.wp-lingo-streak-multiplier-widget.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.05));
    border-color: rgba(249, 115, 22, 0.4);
}

.wp-lingo-streak-multiplier-widget .multiplier-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wp-lingo-streak-multiplier-widget .multiplier-icon {
    font-size: 1.5em;
}

.wp-lingo-streak-multiplier-widget .multiplier-value {
    font-size: 2em;
    font-weight: 900;
    color: var(--wp-lingo-text);
}

.wp-lingo-streak-multiplier-widget.active .multiplier-value {
    color: #f97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.wp-lingo-streak-multiplier-widget .multiplier-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp-lingo-text-muted);
    margin-bottom: 12px;
}

.wp-lingo-streak-multiplier-widget .multiplier-bonus {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.wp-lingo-streak-multiplier-widget .multiplier-tier {
    font-size: 0.85em;
    color: #f97316;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.wp-lingo-streak-multiplier-widget .multiplier-next {
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-streak-multiplier-widget .multiplier-max {
    font-size: 0.9em;
    color: #fbbf24;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid var(--wp-lingo-glass-border);
}

/* ========================================
   STATISTICS DASHBOARD STYLES
   ======================================== */

.wp-lingo-stats-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: var(--wp-lingo-text);
}

/* Stats Header */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.user-level {
    display: flex;
    align-items: center;
    gap: 16px;
}

.level-badge {
    width: 64px;
    height: 64px;
    background: var(--wp-lingo-accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    position: relative;
}

.level-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--wp-lingo-accent-gradient);
    z-index: -1;
    opacity: 0.3;
    animation: pulse-glow 2s infinite;
}

.level-number {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.level-label {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-progress-bar {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: var(--wp-lingo-progress-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.level-xp {
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
}

.total-xp-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
}

.xp-icon {
    font-size: 1.5em;
}

.xp-amount {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xp-label {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Metrics Grid */
.stats-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .stats-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .stats-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    margin-top: 4px;
}

.metric-sub {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    opacity: 0.7;
    margin-top: 4px;
}

.metric-card.accuracy .metric-value {
    color: var(--wp-lingo-correct);
}

.metric-card.streak .metric-value {
    color: #f97316;
}

/* Stats Sections */
.stats-section {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chart Container */
.chart-container {
    height: 200px;
    position: relative;
}

/* Phase Progress */
.phase-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phase-progress-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 500px) {
    .phase-progress-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.phase-name {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--wp-lingo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phase-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.phase-bar-fill {
    height: 100%;
    background: var(--wp-lingo-progress-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.phase-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    min-width: 80px;
    justify-content: flex-end;
}

.phase-percent {
    font-weight: bold;
    color: var(--wp-lingo-accent);
}

.phase-count {
    color: var(--wp-lingo-text-muted);
}

/* Warning Section */
.warning-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}

.improvement-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.notice-icon {
    font-size: 2.5em;
}

.notice-content p {
    margin: 0 0 10px 0;
    color: var(--wp-lingo-text);
}

.practice-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.practice-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Achievements Summary */
.achievements-summary {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 500px) {
    .achievements-summary {
        flex-direction: column;
        text-align: center;
    }
}

.achievements-progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

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

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: url(#ring-gradient);
    stroke: var(--wp-lingo-accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

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

.ring-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    display: block;
}

.ring-total {
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
}

.achievements-info p {
    margin: 0 0 8px 0;
    color: var(--wp-lingo-text);
}

.next-achievement-hint {
    color: var(--wp-lingo-text-muted) !important;
    font-size: 0.9em;
}

.all-achievements {
    color: var(--wp-lingo-correct) !important;
    font-weight: bold;
}

/* Crowns Summary */
.crowns-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.crown-icon-large {
    font-size: 3em;
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.4));
}

.crown-stats {
    display: flex;
    flex-direction: column;
}

.crown-count {
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crown-label {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
}

.crown-sub {
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .stats-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .user-level {
        justify-content: center;
    }

    .level-info {
        align-items: center;
    }

    .total-xp-badge {
        align-self: center;
    }
}

/* ========================================
   THEORY CARDS - Learn by Doing System
   ======================================== */

.theory-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.theory-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.theory-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

.theory-card-icon {
    font-size: 3em;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
    text-align: center;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.theory-card-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.theory-card-content {
    font-size: 1.2em;
    color: var(--wp-lingo-text);
    line-height: 1.6;
    margin-bottom: 25px;
}

.theory-card-example {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.theory-card-example .example-label {
    display: block;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.theory-card-example .example-text {
    color: var(--wp-lingo-text);
    font-style: italic;
    line-height: 1.5;
}

.theory-card-takeaway {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.theory-card-takeaway .takeaway-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.theory-card-takeaway .takeaway-text {
    color: var(--wp-lingo-text);
    font-weight: 600;
    line-height: 1.4;
}

.theory-continue-btn {
    margin-top: 25px;
    padding: 15px 50px !important;
    font-size: 1.1em !important;
    background: var(--wp-lingo-correct-gradient) !important;
    border: none !important;
    border-radius: 16px !important;
    color: white !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.theory-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Question Explanation (shown after wrong answer) */
.question-explanation {
    margin-top: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.6;
    color: #1e293b;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for theory cards */
@media (max-width: 500px) {
    .theory-card {
        padding: 20px;
        border-radius: 16px;
    }

    .theory-card-icon {
        font-size: 2.5em;
    }

    .theory-card-title {
        font-size: 1.2em;
    }

    .theory-card-content {
        font-size: 1em;
    }

    .theory-continue-btn {
        padding: 12px 30px !important;
        font-size: 1em !important;
    }
}

/* ============================================
   STAT CARDS - Universal Statistics Cards
   ============================================ */

/* Style 1: Colored background with icon on right - EXACT copy from dashboard */
.wp-lingo-stat-card.style-1 {
    background: var(--stat-card-gradient);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 -3px 0 var(--stat-card-shadow-color);
}

.wp-lingo-stat-card.style-1:hover {
    box-shadow: inset 0 -3px 0 var(--stat-card-shadow-color), 0 12px 30px rgba(0, 0, 0, 0.3);
}

.wp-lingo-stat-card.style-1 .stat-card-label {
    font-size: 0.95em;
    font-weight: bold;
    color: var(--wp-lingo-text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-lingo-stat-card.style-1 .stat-card-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    line-height: 1.2;
}

.wp-lingo-stat-card.style-1 .stat-card-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 5em;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.wp-lingo-stat-card.style-1 .stat-card-icon .xp-text {
    font-weight: 800;
    font-size: inherit;
    color: inherit;
}

/* Style 2: Clean card with centered icon */
.wp-lingo-stat-card.style-2 {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    min-width: 120px;
    box-shadow: var(--wp-lingo-glass-shadow);
    transition: all 0.3s ease;
}

.wp-lingo-stat-card.style-2:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.wp-lingo-stat-card.style-2 .stat-card-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wp-lingo-stat-card.style-2 .stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wp-lingo-stat-card.style-2 .stat-card-label {
    font-size: 0.85rem;
    color: var(--wp-lingo-text-muted);
}

.wp-lingo-stat-card.style-2 .stat-card-sublabel {
    font-size: 0.7rem;
    color: var(--wp-lingo-text-muted);
    opacity: 0.7;
    margin-top: 0.15rem;
}

/* Color Variants - EXACT copy from dashboard */
.wp-lingo-stat-card[data-type="xp"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    --stat-card-shadow-color: rgba(251, 191, 36, 0.5);
    --stat-card-color: #f59e0b;
}

.wp-lingo-stat-card[data-type="gems"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(34, 211, 238, 0.1));
    --stat-card-shadow-color: rgba(6, 182, 212, 0.5);
    --stat-card-color: #06b6d4;
}

.wp-lingo-stat-card[data-type="streak"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.1));
    --stat-card-shadow-color: rgba(249, 115, 22, 0.5);
    --stat-card-color: #f97316;
}

.wp-lingo-stat-card[data-type="lives"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(251, 113, 133, 0.1));
    --stat-card-shadow-color: rgba(244, 63, 94, 0.5);
    --stat-card-color: #ef4444;
}

.wp-lingo-stat-card[data-type="freezes"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
    --stat-card-shadow-color: rgba(99, 102, 241, 0.5);
    --stat-card-color: #8b5cf6;
}

.wp-lingo-stat-card[data-type="accuracy"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.1));
    --stat-card-shadow-color: rgba(239, 68, 68, 0.5);
    --stat-card-color: #ef4444;
}

.wp-lingo-stat-card[data-type="quizzes"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
    --stat-card-shadow-color: rgba(99, 102, 241, 0.5);
    --stat-card-color: #6366f1;
}

.wp-lingo-stat-card[data-type="active_days"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.1));
    --stat-card-shadow-color: rgba(239, 68, 68, 0.5);
    --stat-card-color: #ef4444;
}

.wp-lingo-stat-card[data-type="crowns"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    --stat-card-shadow-color: rgba(251, 191, 36, 0.5);
    --stat-card-color: #f59e0b;
}

.wp-lingo-stat-card[data-type="level"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    --stat-card-shadow-color: rgba(16, 185, 129, 0.5);
    --stat-card-color: #10b981;
}

.wp-lingo-stat-card[data-type="progress"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
    --stat-card-shadow-color: rgba(99, 102, 241, 0.5);
    --stat-card-color: #6366f1;
}

.wp-lingo-stat-card[data-type="pending"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.1));
    --stat-card-shadow-color: rgba(236, 72, 153, 0.5);
    --stat-card-color: #ec4899;
}

.wp-lingo-stat-card[data-type="max_streak"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    --stat-card-shadow-color: rgba(251, 191, 36, 0.5);
    --stat-card-color: #f59e0b;
}

.wp-lingo-stat-card[data-type="lessons_started"] {
    --stat-card-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    --stat-card-shadow-color: rgba(16, 185, 129, 0.5);
    --stat-card-color: #10b981;
}

/* Dark Mode Overrides */
body.wp-lingo-dark-mode .wp-lingo-stat-card.style-1 {
    border-color: var(--wp-lingo-glass-border);
}

body.wp-lingo-dark-mode .wp-lingo-stat-card.style-1:hover {
    box-shadow: inset 0 -3px 0 var(--stat-card-shadow-color), 0 12px 30px rgba(0, 0, 0, 0.3);
}

body.wp-lingo-dark-mode .wp-lingo-stat-card.style-2 {
    background: var(--wp-lingo-glass);
    border-color: var(--wp-lingo-glass-border);
    box-shadow: var(--wp-lingo-glass-shadow);
}

body.wp-lingo-dark-mode .wp-lingo-stat-card.style-2:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .wp-lingo-stat-card.style-1 {
        min-width: 100px;
        min-height: 100px;
        padding: 1rem;
    }

    .wp-lingo-stat-card.style-1 .stat-card-value {
        font-size: 1.75rem;
    }

    .wp-lingo-stat-card.style-1 .stat-card-icon {
        font-size: 2.5rem;
    }

    .wp-lingo-stat-card.style-2 {
        min-width: 90px;
        padding: 1rem;
    }

    .wp-lingo-stat-card.style-2 .stat-card-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   PLACEMENT TEST / TEST DE DOMINIO STYLES
   ======================================== */
.wp-lingo-placement-test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    text-transform: none;
}

.wp-lingo-placement-test-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.wp-lingo-placement-test-btn:active {
    transform: translateY(0) scale(0.98);
}

.wp-lingo-placement-test-btn .placement-icon {
    font-size: 1.1em;
}

/* Placement Test Modal */
.wp-lingo-placement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wp-lingo-placement-modal.visible {
    opacity: 1;
    visibility: visible;
}

.wp-lingo-placement-modal-content {
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

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

.wp-lingo-placement-modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wp-lingo-placement-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.4em;
    font-weight: 700;
}

.wp-lingo-placement-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wp-lingo-placement-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.wp-lingo-placement-modal-body {
    padding: 25px;
}

.wp-lingo-placement-intro {
    text-align: center;
    margin-bottom: 25px;
}

.wp-lingo-placement-intro p {
    color: var(--wp-lingo-text-muted);
    font-size: 1.05em;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.wp-lingo-placement-start-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.wp-lingo-placement-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Placement Quiz Area (reuses quiz styles) */
.wp-lingo-placement-quiz-area {
    display: none;
}

.wp-lingo-placement-quiz-area.active {
    display: block;
}

.wp-lingo-placement-progress {
    margin-bottom: 20px;
}

.wp-lingo-placement-progress-text {
    text-align: center;
    color: var(--wp-lingo-text-muted);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.wp-lingo-placement-progress-bar {
    height: 8px;
    background: var(--wp-lingo-progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.wp-lingo-placement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Placement Test Results */
.wp-lingo-placement-results {
    text-align: center;
    padding: 20px;
}

.wp-lingo-placement-results.passed .result-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.wp-lingo-placement-results.failed .result-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.wp-lingo-placement-results h3 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: var(--wp-lingo-text);
}

.wp-lingo-placement-results.passed h3 {
    color: var(--wp-lingo-correct);
}

.wp-lingo-placement-results.failed h3 {
    color: var(--wp-lingo-incorrect);
}

.wp-lingo-placement-results .result-message {
    color: var(--wp-lingo-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.wp-lingo-placement-results .result-score {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.wp-lingo-placement-results.passed .result-score {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-placement-results.failed .result-score {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-placement-results .bonus-xp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    border-radius: 20px;
    color: var(--wp-lingo-correct);
    font-weight: 600;
    margin-bottom: 20px;
}

.wp-lingo-placement-close-btn {
    padding: 12px 30px;
    background: var(--wp-lingo-accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-lingo-placement-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Placement Test Actions Area */
.wp-lingo-placement-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--wp-lingo-border);
}

.wp-lingo-placement-actions .placement-check-btn {
    padding: 14px 35px;
    background: transparent;
    color: var(--wp-lingo-text-muted);
    border: 2px solid var(--wp-lingo-border);
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wp-lingo-placement-actions .placement-check-btn:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.wp-lingo-placement-actions .placement-check-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.wp-lingo-placement-feedback {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

/* Dark mode adjustments */
body.wp-lingo-dark-mode .wp-lingo-placement-modal-content {
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
}

/* =========================================
   ONBOARDING MODAL STYLES
   ========================================= */
.wp-lingo-onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wp-lingo-onboarding-modal {
    background: var(--wp-lingo-bg-light, #ffffff);
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(139, 92, 246, 0.2);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    border: 1px solid var(--wp-lingo-glass-border, #e2e8f0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-header {
    margin-bottom: 30px;
}

.onboarding-wave {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.onboarding-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: var(--wp-lingo-text, #1e293b);
    font-weight: 800;
}

.onboarding-subtitle {
    margin: 0;
    color: var(--wp-lingo-text-muted, #64748b);
    font-size: 1.1em;
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.onboarding-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-feature:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.feature-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-content strong {
    font-size: 1em;
    color: var(--wp-lingo-text, #1e293b);
}

.feature-content span {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted, #64748b);
}

.onboarding-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 24px;
    font-size: 0.9em;
    color: var(--wp-lingo-text, #1e293b);
}

.tip-icon {
    font-size: 1.3em;
}

.wp-lingo-onboarding-start-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--wp-lingo-accent-gradient, linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%));
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.wp-lingo-onboarding-start-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
    background: var(--wp-lingo-accent-gradient-hover, linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%));
}

.wp-lingo-onboarding-start-btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    font-size: 1.2em;
}

/* Dark mode for onboarding */
body.wp-lingo-dark-mode .wp-lingo-onboarding-modal {
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
}

body.wp-lingo-dark-mode .onboarding-header h2,
body.wp-lingo-dark-mode .feature-content strong,
body.wp-lingo-dark-mode .onboarding-tip {
    color: var(--wp-lingo-text);
}

body.wp-lingo-dark-mode .onboarding-feature {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}

body.wp-lingo-dark-mode .onboarding-tip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.08));
    border-color: rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 540px) {
    .wp-lingo-onboarding-modal {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .onboarding-wave {
        font-size: 2.5em;
    }

    .onboarding-header h2 {
        font-size: 1.5em;
    }

    .onboarding-feature {
        padding: 12px 14px;
    }

    .feature-icon {
        font-size: 1.5em;
    }
}

/* =========================================
   DAILY CHALLENGE STYLES
   ========================================= */
.wp-lingo-daily-challenge-container {
    padding: 24px;
    border-radius: 20px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--wp-lingo-glass-shadow);
    margin: 20px 0;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.wp-lingo-daily-challenge-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--wp-lingo-accent-gradient);
    opacity: 0.8;
}

.daily-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.daily-challenge-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.daily-challenge-icon {
    font-size: 2.8em;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.daily-challenge-title-group {
    display: flex;
    flex-direction: column;
}

.daily-challenge-label {
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 800;
    color: var(--wp-lingo-accent);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.daily-challenge-title {
    margin: 0;
    font-size: 1.3em;
    color: var(--wp-lingo-text);
    font-weight: 700;
    line-height: 1.2;
}

.daily-challenge-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95em;
    color: var(--wp-lingo-text);
    white-space: nowrap;
    border: 1px solid transparent;
}

.daily-challenge-description {
    font-size: 1.1em;
    color: var(--wp-lingo-text-muted);
    margin: 5px 0 15px 0;
    line-height: 1.5;
}

.daily-challenge-progress-section {
    width: 100%;
}

.daily-challenge-progress-bar {
    height: 16px;
    background: var(--wp-lingo-progress-bg);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.daily-challenge-progress-bar .progress-fill {
    height: 100%;
    background: var(--wp-lingo-accent-gradient);
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.daily-challenge-progress-text {
    display: flex;
    justify-content: flex-end;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--wp-lingo-text-muted);
    gap: 4px;
}

.daily-challenge-rewards {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.reward-label {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--wp-lingo-text);
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.reward-item {
    font-size: 0.95em;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reward-item.reward-xp {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.reward-item.reward-gems {
    background: rgba(6, 182, 212, 0.15);
    color: #0891b2;
}

.wp-lingo-claim-challenge-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 18px;
    font-size: 1.1em;
}

.daily-challenge-status {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1em;
}

.daily-challenge-status.claimed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.daily-challenge-status.in-progress {
    background: rgba(99, 102, 241, 0.05);
    /* Soft indigo bg */
    color: var(--wp-lingo-text-muted);
}

/* Guest State */
.wp-lingo-daily-challenge-guest {
    text-align: center;
    padding: 40px 30px;
    align-items: center;
}

.wp-lingo-daily-challenge-guest .daily-challenge-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.wp-lingo-daily-challenge-guest h3 {
    margin: 0 0 10px 0;
    color: var(--wp-lingo-text);
}

.wp-lingo-daily-challenge-guest p {
    color: var(--wp-lingo-text-muted);
    font-size: 1.1em;
    margin: 0;
}

/* Responsive Media Query */
@media (max-width: 600px) {
    .wp-lingo-daily-challenge-container {
        padding: 20px;
    }

    .daily-challenge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .daily-challenge-countdown {
        width: 100%;
        justify-content: center;
        background: rgba(0, 0, 0, 0.03);
        margin-top: 5px;
    }

    .daily-challenge-title-section {
        width: 100%;
    }

    .daily-challenge-icon {
        font-size: 2.2em;
    }

    .daily-challenge-title {
        font-size: 1.2em;
    }

    .daily-challenge-rewards {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .reward-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .reward-item {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .wp-lingo-claim-challenge-btn {
        padding: 16px;
    }
}

/* Dark Mode Adjustments */
body.wp-lingo-dark-mode .daily-challenge-countdown {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

body.wp-lingo-dark-mode .daily-challenge-rewards {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

body.wp-lingo-dark-mode .reward-item.reward-xp {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

body.wp-lingo-dark-mode .reward-item.reward-gems {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

body.wp-lingo-dark-mode .daily-challenge-status.claimed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

body.wp-lingo-daily-challenge-container.challenge-completed::before {
    background: var(--wp-lingo-correct-gradient);
}

/* ============================================
   FAQ Shortcode Styles
   ============================================ */
.wp-lingo-faq-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: 'Nunito', sans-serif;
}

body.wp-lingo-dark-mode .wp-lingo-faq-container {
    background: var(--wp-lingo-glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wp-lingo-faq-title {
    text-align: center;
    color: var(--wp-lingo-accent);
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 800;
}

.wp-lingo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wp-lingo-faq-item {
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

body.wp-lingo-dark-mode .wp-lingo-faq-item {
    background: rgba(255, 255, 255, 0.05);
}

.wp-lingo-faq-item:hover {
    border-color: var(--wp-lingo-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wp-lingo-faq-question {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    /* Remove default triangle */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--wp-lingo-text);
    font-size: 1.1em;
}

.wp-lingo-faq-question::-webkit-details-marker {
    display: none;
}

.faq-question-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-icon-prefix {
    font-size: 1.2em;
}

.faq-toggle-icon {
    font-size: 0.8em;
    color: var(--wp-lingo-accent);
    transition: transform 0.3s ease;
}

details[open] .faq-toggle-icon {
    transform: rotate(180deg);
}

details[open] .wp-lingo-faq-question {
    border-bottom: 1px solid var(--wp-lingo-glass-border);
    background: rgba(139, 92, 246, 0.05);
}

.wp-lingo-faq-answer {
    padding: 20px;
    color: var(--wp-lingo-text-muted);
    font-size: 1em;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.3);
}

body.wp-lingo-dark-mode .wp-lingo-faq-answer {
    background: rgba(0, 0, 0, 0.1);
    color: #cbd5e1;
}

/* WP Lingo Path Header Improvements */
.wp-lingo-path-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.wp-lingo-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 50px;
    color: var(--wp-lingo-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wp-lingo-back-pill:hover {
    background: var(--wp-lingo-bg-light);
    transform: translateX(-3px);
    color: var(--wp-lingo-accent);
    border-color: var(--wp-lingo-accent);
}

.wp-lingo-phase-title-small {
    margin: 0;
    font-size: 1.3em;
    color: var(--wp-lingo-text);
    font-weight: 800;
}

/* Fix scrolling issue by adding padding to the bottom of the container */
.wp-lingo-path-container {
    padding-bottom: 250px;
}

/* Dark Mode Footer Override */
body.wp-lingo-dark-mode .wp-lingo-quiz-footer {
    background: rgba(0, 0, 0, 0.2);
    /* Keep it dark transparent in dark mode */
}

/* ========================================
   ACHIEVEMENTS SYSTEM - Enhanced Styles
   ======================================== */

/* Achievement Grid */
.wp-lingo-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Achievement Card Base */
.wp-lingo-achievement-card {
    background: var(--wp-lingo-glass);
    border: 2px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wp-lingo-achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Locked State */
.wp-lingo-achievement-card.locked {
    opacity: 0.75;
    filter: grayscale(0.3);
}

.wp-lingo-achievement-card.locked:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Unlocked State */
.wp-lingo-achievement-card.unlocked {
    border-color: var(--rarity-color, var(--achievement-color));
    background: linear-gradient(135deg, var(--wp-lingo-glass), rgba(255, 255, 255, 0.95));
}

.wp-lingo-achievement-card.unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--achievement-color), var(--rarity-color, var(--achievement-color)));
}

/* Rarity Styles */
.wp-lingo-achievement-card.rarity-common {
    border-color: #9ca3af;
}

.wp-lingo-achievement-card.rarity-rare {
    border-color: #3b82f6;
}

.wp-lingo-achievement-card.rarity-rare.unlocked {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.wp-lingo-achievement-card.rarity-epic {
    border-color: #8b5cf6;
}

.wp-lingo-achievement-card.rarity-epic.unlocked {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.wp-lingo-achievement-card.rarity-legendary {
    border-color: #f59e0b;
    border-width: 2px;
}

.wp-lingo-achievement-card.rarity-legendary.unlocked {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
    animation: legendary-glow 3s ease-in-out infinite;
}

@keyframes legendary-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
    }
}

/* Icon Wrapper */
.wp-lingo-achievement-card .achievement-icon-wrapper {
    font-size: 2.5em;
    line-height: 1;
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--achievement-bg, rgba(0, 0, 0, 0.05));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wp-lingo-achievement-card.unlocked .achievement-icon-wrapper {
    background: var(--achievement-bg);
    box-shadow: 0 4px 15px var(--achievement-bg);
}

.wp-lingo-achievement-card.locked .achievement-icon-wrapper {
    filter: grayscale(1);
    opacity: 0.5;
}

/* Content */
.wp-lingo-achievement-card .achievement-content {
    flex: 1;
    min-width: 0;
}

/* Header with Title and Rarity Badge */
.wp-lingo-achievement-card .achievement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.wp-lingo-achievement-card .achievement-title {
    font-weight: 700;
    margin: 0;
    font-size: 1.1em;
    color: var(--wp-lingo-text);
}

/* Rarity Badge */
.achievement-rarity-badge {
    font-size: 0.65em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.achievement-rarity-badge.rarity-common {
    background: rgba(156, 163, 175, 0.2);
    color: #6b7280;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.achievement-rarity-badge.rarity-rare {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.achievement-rarity-badge.rarity-epic {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.achievement-rarity-badge.rarity-legendary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.15));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    animation: badge-shimmer 2s ease-in-out infinite;
}

@keyframes badge-shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Description */
.wp-lingo-achievement-card .achievement-desc {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Status Row for Unlocked */
.achievement-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.achievement-status.unlocked-status {
    font-size: 0.8em;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.achievement-rewards-earned {
    display: flex;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 600;
}

.achievement-rewards-earned .reward-xp {
    color: #f59e0b;
}

.achievement-rewards-earned .reward-gems {
    color: #06b6d4;
}

/* Progress Bar Container */
.achievement-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.achievement-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--achievement-color), var(--rarity-color, var(--achievement-color)));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.achievement-progress-text {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--wp-lingo-text-muted);
    white-space: nowrap;
}

/* Rewards Preview for Locked */
.achievement-rewards-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.achievement-rewards-preview .rewards-label {
    color: var(--wp-lingo-text-muted);
}

.achievement-rewards-preview .reward-xp {
    color: #f59e0b;
    font-weight: 600;
}

.achievement-rewards-preview .reward-gems {
    color: #06b6d4;
    font-weight: 600;
}

/* ========================================
   ACHIEVEMENT UNLOCKED MODAL
   ======================================== */
.wp-lingo-achievement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.achievement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.achievement-modal-content {
    position: relative;
    background: var(--wp-lingo-bg-light);
    border: 2px solid var(--rarity-color, #f59e0b);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--rarity-color, rgba(245, 158, 11, 0.3));
    animation: achievementUnlock 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes achievementUnlock {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.achievement-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rarity-color, #f59e0b), #fbbf24, var(--rarity-color, #f59e0b));
    animation: shimmer 2s linear infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.achievement-modal-badge {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--rarity-color, #f59e0b);
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.achievement-modal-icon {
    font-size: 5em;
    line-height: 1;
    margin-bottom: 16px;
    animation: iconBounce 0.5s ease 0.3s;
    animation-fill-mode: both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.achievement-modal-rarity {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.achievement-modal-rarity.rarity-common {
    background: rgba(156, 163, 175, 0.2);
    color: #6b7280;
}

.achievement-modal-rarity.rarity-rare {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.achievement-modal-rarity.rarity-epic {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.achievement-modal-rarity.rarity-legendary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.2));
    color: #f59e0b;
    animation: badge-shimmer 2s ease-in-out infinite;
}

.achievement-modal-title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 8px 0;
}

.achievement-modal-description {
    font-size: 1em;
    color: var(--wp-lingo-text-muted);
    margin: 0 0 20px 0;
}

.achievement-modal-rewards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.achievement-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.achievement-reward-item .reward-value {
    font-size: 1.5em;
    font-weight: 800;
}

.achievement-reward-item .reward-value.xp-value {
    color: #f59e0b;
}

.achievement-reward-item .reward-value.gems-value {
    color: #06b6d4;
}

.achievement-reward-item .reward-type {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-modal-close {
    background: linear-gradient(135deg, var(--rarity-color, #f59e0b), #fbbf24);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.achievement-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6);
}

/* Confetti Animation Background */
.achievement-modal-content.with-confetti::after {
    content: '🎉✨🎊';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    animation: confettiFall 1s ease-out;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(60px);
    }
}

/* Dark Mode Adjustments */
body.wp-lingo-dark-mode .wp-lingo-achievement-card {
    background: var(--wp-lingo-glass);
}

body.wp-lingo-dark-mode .wp-lingo-achievement-card.unlocked {
    background: linear-gradient(135deg, var(--wp-lingo-glass), rgba(0, 0, 0, 0.3));
}

body.wp-lingo-dark-mode .achievement-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

body.wp-lingo-dark-mode .achievement-rewards-preview {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 600px) {
    .wp-lingo-achievements-grid {
        grid-template-columns: 1fr;
    }

    .wp-lingo-achievement-card {
        padding: 16px;
    }

    .achievement-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .achievement-modal-content {
        padding: 30px 20px;
    }

    .achievement-modal-icon {
        font-size: 4em;
    }
}

/* ========================================
   ACHIEVEMENTS PAGE - Header & Tabs
   ======================================== */

.wp-lingo-achievements-page {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.achievements-header {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.achievements-header-main {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* Progress Ring */
.achievements-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

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

.achievements-progress-ring .progress-ring-bg {
    fill: none;
    stroke: rgba(139, 92, 246, 0.15);
    stroke-width: 8;
}

.achievements-progress-ring .progress-ring-fill {
    fill: none;
    stroke: url(#achievementGradient);
    stroke: var(--wp-lingo-accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

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

.progress-ring-value {
    display: block;
    font-size: 1.5em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    line-height: 1.2;
}

.progress-ring-label {
    display: block;
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Next Goal Section */
.achievements-next-goal {
    flex: 1;
    min-width: 250px;
}

.achievements-title {
    font-size: 1.5em;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--wp-lingo-text);
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-achievement-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.next-label {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-achievement-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 12px;
}

.next-icon {
    font-size: 2em;
    line-height: 1;
}

.next-details {
    display: flex;
    flex-direction: column;
}

.next-title {
    font-weight: 700;
    color: var(--wp-lingo-text);
}

.next-category {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted, #888);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.next-time-gated-hint {
    font-size: 0.75em;
    color: var(--wp-lingo-text-muted, #888);
    font-style: italic;
}

.next-remaining {
    font-size: 0.85em;
    color: var(--wp-lingo-accent);
    font-weight: 600;
}

.next-progress-bar {
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.next-progress-fill {
    height: 100%;
    background: var(--wp-lingo-accent-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.all-completed {
    font-size: 1.2em;
    color: var(--wp-lingo-text);
    margin: 0;
}

/* Section Titles */
.achievements-section-title {
    font-size: 0.9em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp-lingo-text-muted);
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievements-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wp-lingo-glass-border);
    opacity: 0.5;
}

/* Rarity Section */
.achievements-rarity-section {
    margin-bottom: 32px;
}

.achievements-rarity-summary {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    cursor: default;
    transition: all 0.2s ease;
    min-width: 140px;
}

.rarity-item:hover {
    transform: translateY(-2px);
    border-color: var(--wp-lingo-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rarity-icon {
    font-size: 1.25em;
    line-height: 1;
}

.rarity-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rarity-label {
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wp-lingo-text-muted);
    letter-spacing: 0.5px;
}

.rarity-count {
    font-weight: 800;
    font-size: 1em;
    color: var(--wp-lingo-text);
}

.rarity-item.rarity-rare .rarity-label {
    color: #3b82f6;
}

.rarity-item.rarity-epic .rarity-label {
    color: #8b5cf6;
}

.rarity-item.rarity-legendary .rarity-label {
    color: #f59e0b;
}

/* Categories Section */
.achievements-categories-section {
    margin-bottom: 32px;
}

.achievements-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.achievement-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: var(--wp-lingo-text);
    text-align: center;
}

.achievement-tab:hover {
    transform: translateY(-2px);
    border-color: var(--wp-lingo-accent);
}

.achievement-tab.active {
    background: var(--wp-lingo-accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.tab-icon {
    font-size: 1.4em;
    line-height: 1;
}

.tab-label {
    font-weight: 700;
    font-size: 0.95em;
}

.tab-count {
    font-size: 0.75em;
    background: rgba(0, 0, 0, 0.1);
    color: var(--wp-lingo-text-muted);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
    margin-left: 4px;
}

.achievement-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Dark Mode Extensions */
body.wp-lingo-dark-mode .rarity-item,
body.wp-lingo-dark-mode .achievement-tab,
body.wp-lingo-dark-mode .achievements-header {
    background: var(--wp-lingo-glass);
}

body.wp-lingo-dark-mode .next-achievement-card {
    background: rgba(139, 92, 246, 0.12);
}

body.wp-lingo-dark-mode .tab-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wp-lingo-text-muted);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .achievements-rarity-summary {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .achievements-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-tab {
        flex-direction: column;
        padding: 16px 10px;
    }

    .tab-count {
        margin-left: 0;
        margin-top: 4px;
    }

    .achievements-header-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .achievements-progress-ring {
        margin: 0 auto;
    }
}

/* Achievement Panels */
.achievements-panels {
    position: relative;
    margin-top: 24px;
    min-height: 400px;
    /* Prevent jumpy layout */
}

.achievement-panel {
    display: none;
    animation: achievementPanelFadeIn 0.4s ease forwards;
}

.achievement-panel.active {
    display: block;
}

@keyframes achievementPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Category Tabs Enhancements */
.achievement-tab .tab-icon {
    font-size: 1.625em;
    /* Ligeramente más grande */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    /* Forzar renderizado de emojis estándar para evitar tamaños minúsculos */
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}

.achievement-tab.active .tab-icon {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* No Achievements Message */
.no-achievements-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--wp-lingo-glass);
    border: 2px dashed var(--wp-lingo-glass-border);
    border-radius: 24px;
    margin: 20px 0;
}

.no-achievements-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
    display: inline-block;
}

.no-achievements-message h3 {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin-bottom: 12px;
}

.no-achievements-message p {
    color: var(--wp-lingo-text-muted);
    font-size: 1.1em;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   ACHIEVEMENTS SIDEBAR (Compact View)
   ======================================== */
.wp-lingo-achievements-sidebar {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    font-family: inherit;
}

.sidebar-achievements-title {
    font-size: 1.1em;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--wp-lingo-text);
}

.sidebar-next-goal {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

.next-goal-label {
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--wp-lingo-text-muted);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.next-goal-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-goal-icon {
    font-size: 1.8em;
    line-height: 1;
}

.next-goal-info {
    flex: 1;
    min-width: 0;
}

.next-goal-title {
    display: block;
    font-weight: 700;
    font-size: 0.85em;
    color: var(--wp-lingo-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-goal-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-goal-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.next-goal-progress-fill {
    height: 100%;
    background: var(--wp-lingo-accent-gradient);
    border-radius: 2px;
}

.next-goal-remaining {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--wp-lingo-accent);
    white-space: nowrap;
}

.sidebar-achievements-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* List Layout */
.wp-lingo-achievements-sidebar.layout-list .sidebar-achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.wp-lingo-achievements-sidebar.layout-list .sidebar-achievement-item:hover {
    transform: translateX(4px);
    border-color: var(--achievement-color);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-achievement-item .item-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.sidebar-achievement-item.rarity-legendary .item-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sidebar-achievement-item .item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-achievement-item .item-title {
    font-weight: 700;
    font-size: 0.9em;
    color: var(--wp-lingo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-achievement-item .item-rarity {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Grid Layout */
.wp-lingo-achievements-sidebar.layout-grid .sidebar-achievements-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wp-lingo-achievements-sidebar.layout-grid .sidebar-achievement-item {
    padding: 0;
    background: none;
    border: none;
}

.wp-lingo-achievements-sidebar.layout-grid .item-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4em;
    border: 2px solid var(--wp-lingo-glass-border);
    transition: all 0.2s ease;
}

.wp-lingo-achievements-sidebar.layout-grid .sidebar-achievement-item:hover .item-icon {
    transform: scale(1.1);
    border-color: var(--achievement-color);
}

/* Footer Link */
.view-all-achievements {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--wp-lingo-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-achievements:hover {
    color: var(--wp-lingo-text);
}

/* Dark Mode Adjustments */
body.wp-lingo-dark-mode .sidebar-achievement-item {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   GAME MECHANICS SHORTCODE STYLES
   ============================================ */
.wp-lingo-mechanics-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.mechanics-header {
    text-align: center;
    margin-bottom: 50px;
}

.mechanics-header h2 {
    font-size: 2.5em;
    color: var(--wp-lingo-text);
    margin-bottom: 15px;
}

.mechanics-header p {
    font-size: 1.3em;
    color: var(--wp-lingo-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.mechanic-card {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mechanic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    border-color: var(--wp-lingo-accent);
}

.mechanic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--wp-lingo-glass-border);
    transition: background 0.3s ease;
}

.mechanic-card:hover::before {
    background: var(--wp-lingo-accent-gradient);
}

.mechanic-icon {
    font-size: 4em;
    margin-bottom: 25px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

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

.mechanic-card h3 {
    color: var(--wp-lingo-text);
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 800;
}

.mechanic-card p {
    color: var(--wp-lingo-text-muted);
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

/* Specific Card Hover Effects */
.mechanic-lives:hover .mechanic-icon {
    transform: scale(1.2);
}

.mechanic-gems:hover .mechanic-icon {
    transform: scale(1.2) rotate(15deg);
}

.mechanic-xp:hover .mechanic-icon {
    transform: scale(1.2) rotate(-10deg);
}

.mechanic-streak:hover .mechanic-icon {
    animation: flame-pulse 1.5s infinite;
}

.mechanic-crowns:hover .mechanic-icon {
    transform: scale(1.2) translateY(-5px);
}

@keyframes flame-pulse {
    0% {
        transform: scale(1.2);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.3);
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1.2);
        filter: brightness(1);
    }
}

/* Dark Mode Adjustments */
body.wp-lingo-dark-mode .mechanic-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.wp-lingo-dark-mode .mechanic-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LEGAL DOCUMENTS STYLES
   ============================================ */
.wp-lingo-legal-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.wp-lingo-legal-document {
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: var(--wp-lingo-glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wp-lingo-legal-document .legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--wp-lingo-glass-border);
}

.wp-lingo-legal-document .legal-header h1 {
    color: var(--wp-lingo-text);
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--wp-lingo-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-lingo-legal-document .legal-update-date {
    color: var(--wp-lingo-text-muted);
    font-size: 0.95em;
    font-style: italic;
}

.wp-lingo-legal-document .legal-section {
    margin-bottom: 35px;
}

.wp-lingo-legal-document .legal-section h2 {
    color: var(--wp-lingo-text);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wp-lingo-glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-lingo-legal-document .legal-section h3 {
    color: var(--wp-lingo-text);
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.wp-lingo-legal-document .legal-section p {
    color: var(--wp-lingo-text);
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.wp-lingo-legal-document .legal-section ul,
.wp-lingo-legal-document .legal-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.wp-lingo-legal-document .legal-section li {
    color: var(--wp-lingo-text);
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.wp-lingo-legal-document .legal-section ul li::marker {
    color: var(--wp-lingo-accent);
}

/* Data Box - For legal identifiers */
.wp-lingo-legal-document .legal-data-box {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-left: 4px solid var(--wp-lingo-accent);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
}

.wp-lingo-legal-document .legal-data-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-lingo-legal-document .legal-data-box li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--wp-lingo-glass-border);
}

.wp-lingo-legal-document .legal-data-box li:last-child {
    border-bottom: none;
}

/* Disclaimer Box - For important warnings */
.wp-lingo-legal-document .legal-disclaimer-box {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(251, 113, 133, 0.05));
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-left: 4px solid var(--wp-lingo-incorrect);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.wp-lingo-legal-document .legal-disclaimer-box p {
    margin-bottom: 10px;
}

.wp-lingo-legal-document .legal-disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* Info Box - For highlighted information */
.wp-lingo-legal-document .legal-info-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-left: 4px solid var(--wp-lingo-accent);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

/* Cookie Table */
.wp-lingo-legal-document .cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-legal-document .cookie-table th,
.wp-lingo-legal-document .cookie-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-legal-document .cookie-table th {
    background: var(--wp-lingo-accent-gradient);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.wp-lingo-legal-document .cookie-table tr:last-child td {
    border-bottom: none;
}

.wp-lingo-legal-document .cookie-table tr:nth-child(even) {
    background: var(--wp-lingo-glass);
}

.wp-lingo-legal-document .cookie-table tr:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
}

/* Footer */
.wp-lingo-legal-document .legal-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid var(--wp-lingo-glass-border);
    text-align: center;
    color: var(--wp-lingo-text-muted);
    font-size: 0.9em;
}

/* Rights List for Privacy Policy */
.wp-lingo-legal-document .rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.wp-lingo-legal-document .rights-list li {
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.wp-lingo-legal-document .rights-list li:hover {
    border-color: var(--wp-lingo-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1);
}

.wp-lingo-legal-document .rights-list li strong {
    color: var(--wp-lingo-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .wp-lingo-legal-document {
        padding: 25px 20px;
    }

    .wp-lingo-legal-document .legal-header h1 {
        font-size: 1.8em;
    }

    .wp-lingo-legal-document .legal-section h2 {
        font-size: 1.3em;
    }

    .wp-lingo-legal-document .cookie-table {
        font-size: 0.9em;
    }

    .wp-lingo-legal-document .cookie-table th,
    .wp-lingo-legal-document .cookie-table td {
        padding: 10px;
    }
}

/* Dark Mode */
body.wp-lingo-dark-mode .wp-lingo-legal-document {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.wp-lingo-dark-mode .wp-lingo-legal-document .legal-data-box,
body.wp-lingo-dark-mode .wp-lingo-legal-document .legal-info-box {
    background: rgba(255, 255, 255, 0.02);
}

body.wp-lingo-dark-mode .wp-lingo-legal-document .legal-disclaimer-box {
    background: rgba(244, 63, 94, 0.08);
}

body.wp-lingo-dark-mode .wp-lingo-legal-document .cookie-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

body.wp-lingo-dark-mode .wp-lingo-legal-document .rights-list li {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   DISCLAIMER FINANCIERO (FOOTER)
   ============================================ */

/* Base styles for all disclaimer variants */
.wp-lingo-disclaimer {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.wp-lingo-disclaimer p {
    margin: 0;
}

.wp-lingo-disclaimer strong {
    color: var(--wp-lingo-accent);
}

/* Minimal - Single line for tight spaces */
.wp-lingo-disclaimer-minimal {
    text-align: center;
    padding: 15px 20px;
    background: var(--wp-lingo-glass);
    border-top: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-disclaimer-minimal p {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
}

/* Compact - Default for footer */
.wp-lingo-disclaimer-compact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 4px solid var(--wp-lingo-gold);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 900px;
}

.wp-lingo-disclaimer-compact .disclaimer-icon {
    font-size: 1.5em;
    line-height: 1;
    flex-shrink: 0;
}

.wp-lingo-disclaimer-compact p {
    font-size: 0.9em;
    color: var(--wp-lingo-text);
}

/* Full - Complete version for dedicated pages */
.wp-lingo-disclaimer-full {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

.wp-lingo-disclaimer-full .disclaimer-icon {
    font-size: 3em;
    line-height: 1;
    flex-shrink: 0;
}

.wp-lingo-disclaimer-full .disclaimer-content h4 {
    color: var(--wp-lingo-text);
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.wp-lingo-disclaimer-full .disclaimer-content p {
    color: var(--wp-lingo-text);
    font-size: 1em;
    margin-bottom: 12px;
}

.wp-lingo-disclaimer-full .disclaimer-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-lingo-disclaimer-compact {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .wp-lingo-disclaimer-full {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .wp-lingo-disclaimer-full .disclaimer-icon {
        font-size: 2.5em;
    }
}

/* Dark Mode */
body.wp-lingo-dark-mode .wp-lingo-disclaimer-minimal {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

body.wp-lingo-dark-mode .wp-lingo-disclaimer-compact,
body.wp-lingo-dark-mode .wp-lingo-disclaimer-full {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.03));
    border-color: rgba(251, 191, 36, 0.15);
}

/* ============================================
   ADVERTISING SYSTEM STYLES
   ============================================ */

/* --- Native Ad (Theory Card Style) --- */
.wp-lingo-native-ad {
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: var(--wp-lingo-glass-shadow);
    transition: all 0.3s ease;
}

.wp-lingo-native-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.native-ad-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
    border-bottom: 1px solid var(--wp-lingo-glass-border);
}

.native-ad-badge {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--wp-lingo-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.native-ad-sponsor {
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
}

.native-ad-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.native-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-lingo-native-ad:hover .native-ad-image img {
    transform: scale(1.03);
}

.native-ad-content {
    padding: 20px;
}

.native-ad-title {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.native-ad-text {
    font-size: 0.95em;
    color: var(--wp-lingo-text-muted);
    margin: 0;
    line-height: 1.6;
}

.native-ad-cta {
    display: block;
    padding: 15px 20px;
    background: var(--wp-lingo-accent-gradient);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.native-ad-cta:hover {
    background: var(--wp-lingo-accent-gradient-hover);
    color: white !important;
}

/* --- Sidebar Ad (300x250 Banner Style) --- */
.wp-lingo-sidebar-ads-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wp-lingo-sidebar-ad {
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--wp-lingo-glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    min-height: 250px;
    max-width: 300px;
}

.wp-lingo-sidebar-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.sidebar-ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.65em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.sidebar-ad-image-link {
    display: block;
    width: 100%;
    height: 250px;
}

.sidebar-ad-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-lingo-sidebar-ad:hover .sidebar-ad-image-link img {
    transform: scale(1.05);
}

.sidebar-ad-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    box-sizing: border-box;
}

.sidebar-ad-sponsor {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--wp-lingo-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sidebar-ad-title {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.sidebar-ad-text {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    margin: 0 0 auto 0;
    line-height: 1.5;
    flex-grow: 1;
}

.sidebar-ad-cta {
    display: inline-block;
    padding: 12px 20px;
    background: var(--wp-lingo-accent-gradient);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.sidebar-ad-cta:hover {
    background: var(--wp-lingo-accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* --- Reward Ad (Bonus Style) --- */
.wp-lingo-reward-ads-container {
    padding: 25px;
    background: var(--wp-lingo-bg-light);
    border-radius: 20px;
    box-shadow: var(--wp-lingo-glass-shadow);
}

.reward-ads-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 25px 0;
}

.wp-lingo-reward-ad {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.wp-lingo-reward-ad:last-child {
    margin-bottom: 0;
}

.wp-lingo-reward-ad:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
}

.wp-lingo-reward-ad.already-watched {
    opacity: 0.6;
    filter: grayscale(40%);
}

.reward-ad-header {
    margin-bottom: 15px;
}

.reward-ad-badge {
    font-size: 0.8em;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-ad-body {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.reward-ad-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--wp-lingo-gold-gradient);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    animation: gemPulse 2s ease-in-out infinite;
}

@keyframes gemPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.reward-ad-icon .gem-icon {
    font-size: 1.8em;
    line-height: 1;
}

.reward-ad-icon .gem-amount {
    font-size: 0.9em;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.reward-ad-info h4 {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 5px 0;
}

.reward-ad-info p {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    margin: 0;
    line-height: 1.5;
}

.reward-ad-btn {
    width: 100%;
    padding: 15px 25px;
    background: var(--wp-lingo-gold-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.reward-ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.reward-ad-btn:active {
    transform: translateY(0);
}

.reward-ad-btn.watched {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.reward-ad-btn.watched:hover {
    transform: none;
}

/* --- Reward Ad Modal --- */
.wp-lingo-reward-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.wp-lingo-reward-modal {
    background: var(--wp-lingo-bg-light);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wp-lingo-reward-modal .modal-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.wp-lingo-reward-modal h3 {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 10px 0;
}

.wp-lingo-reward-modal .gem-reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--wp-lingo-gold-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: 800;
    margin: 15px 0;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}

.wp-lingo-reward-modal p {
    color: var(--wp-lingo-text-muted);
    margin: 0 0 20px 0;
}

.wp-lingo-reward-modal .close-btn {
    padding: 12px 30px;
    background: var(--wp-lingo-accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-lingo-reward-modal .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* --- Login Required Message --- */
.wp-lingo-login-required {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: var(--wp-lingo-text);
    font-weight: 600;
}

/* --- Dark Mode Overrides for Ads --- */
body.wp-lingo-dark-mode .wp-lingo-native-ad,
body.wp-lingo-dark-mode .wp-lingo-sidebar-ad,
body.wp-lingo-dark-mode .wp-lingo-reward-ads-container {
    background: var(--wp-lingo-glass);
    border-color: var(--wp-lingo-glass-border);
}

body.wp-lingo-dark-mode .native-ad-header {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--wp-lingo-glass-border);
}

body.wp-lingo-dark-mode .sidebar-ad-badge {
    background: rgba(0, 0, 0, 0.7);
}

body.wp-lingo-dark-mode .wp-lingo-reward-ad {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.03));
    border-color: rgba(251, 191, 36, 0.15);
}

body.wp-lingo-dark-mode .reward-ad-badge {
    color: #fbbf24;
}

body.wp-lingo-dark-mode .wp-lingo-reward-modal {
    background: var(--wp-lingo-bg-light);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .wp-lingo-sidebar-ad {
        max-width: 100%;
    }

    .reward-ad-body {
        flex-direction: column;
        text-align: center;
    }

    .reward-ad-icon {
        width: 70px;
        height: 70px;
    }

    .reward-ad-icon .gem-icon {
        font-size: 1.5em;
    }

    .wp-lingo-reward-modal {
        padding: 30px 20px;
    }
}

/* ==========================================
   SPONSORED AD SLIDES (In-Quiz Ads)
   ========================================== */

/* ============================================
   SPONSORED AD SLIDE — REDISEÑO
   ============================================ */

.sponsored-ad-slide {
    animation: fadeInUp 0.4s ease;
}

/* El card hereda de .theory-card (border-radius 24px, overflow hidden).
   Quitamos el padding superior para que la imagen llegue a los bordes. */
.sponsored-ad-content {
    padding: 0 !important;
    border: 2px solid rgba(139, 92, 246, 0.25) !important;
    background: var(--wp-lingo-bg-light) !important;
    overflow: hidden;
}

/* --- Hero image: ancho completo al top del card --- */
.sponsored-ad-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f1f0f8;
    border-radius: 0; /* el card padre ya tiene border-radius */
}

.sponsored-ad-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sponsored-ad-slide:hover .sponsored-ad-image img {
    transform: scale(1.03);
}

/* --- Badge: superpuesto sobre la imagen (esquina superior derecha) --- */
.sponsored-ad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.4px;
    pointer-events: none;
}

/* Badge sin imagen: vuelve a posición estática */
.sponsored-ad-badge--no-image {
    position: static;
    display: inline-block;
    margin: 20px 24px 0;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

/* --- Cuerpo de texto --- */
.sponsored-ad-body {
    padding: 20px 28px 28px;
}

.sponsored-ad-sponsor {
    font-size: 0.78em;
    color: #8b5cf6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 6px;
    opacity: 0.85;
}

.sponsored-ad-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--wp-lingo-text);
    margin: 0 0 10px;
    line-height: 1.3;
}

.sponsored-ad-text {
    font-size: 0.95em;
    color: var(--wp-lingo-text-muted);
    margin: 0 0 20px;
    line-height: 1.6;
}

/* --- CTA: botón ancho completo --- */
.sponsored-ad-cta-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    letter-spacing: 0.2px;
}

.sponsored-ad-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white !important;
}

/* --- Dark mode --- */
body.wp-lingo-dark-mode .sponsored-ad-content {
    background: rgba(30, 20, 50, 0.8) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

body.wp-lingo-dark-mode .sponsored-ad-sponsor {
    color: #a78bfa;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .sponsored-ad-image img {
        max-height: 200px;
    }

    .sponsored-ad-body {
        padding: 16px 20px 22px;
    }

    .sponsored-ad-title {
        font-size: 1.15em;
    }

    .sponsored-ad-badge {
        font-size: 0.68em;
        padding: 3px 10px;
    }
}

/* ============================================
   SIDEBAR DAILY CHALLENGE (COMPACT)
   ============================================ */
.wp-lingo-daily-challenge-sidebar {
    background: var(--wp-lingo-bg-light);
    border: 1px solid var(--wp-lingo-glass-border);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--wp-lingo-glass-shadow);
    transition: all 0.3s ease;
}

/* Guest State */
.wp-lingo-daily-challenge-sidebar.guest {
    text-align: center;
    padding: 24px 16px;
}

.wp-lingo-daily-challenge-sidebar.guest .sidebar-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.wp-lingo-daily-challenge-sidebar.guest p {
    font-size: 0.9em;
    color: var(--wp-lingo-text-muted);
    margin: 0;
}

/* Header */
.wp-lingo-daily-challenge-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wp-lingo-daily-challenge-sidebar .sidebar-label {
    font-size: 0.75em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--wp-lingo-accent);
    letter-spacing: 0.5px;
}

.wp-lingo-daily-challenge-sidebar .sidebar-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    color: var(--wp-lingo-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Content */
.wp-lingo-daily-challenge-sidebar .sidebar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wp-lingo-daily-challenge-sidebar .sidebar-icon-wrapper {
    font-size: 1.8em;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.wp-lingo-daily-challenge-sidebar .sidebar-title {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.3;
    color: var(--wp-lingo-text);
}

/* Progress */
.wp-lingo-daily-challenge-sidebar .sidebar-progress {
    margin-bottom: 16px;
}

.wp-lingo-daily-challenge-sidebar .sidebar-progress-bar {
    height: 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.wp-lingo-daily-challenge-sidebar .progress-fill {
    height: 100%;
    background: var(--wp-lingo-accent-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.wp-lingo-daily-challenge-sidebar .sidebar-progress-text {
    text-align: right;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--wp-lingo-text-muted);
}

/* Footer / Rewards */
.wp-lingo-daily-challenge-sidebar .sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-lingo-daily-challenge-sidebar .sidebar-rewards {
    display: flex;
    gap: 8px;
}

.wp-lingo-daily-challenge-sidebar .mini-reward {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--wp-lingo-text);
    background: var(--wp-lingo-glass);
    border: 1px solid var(--wp-lingo-glass-border);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Status / Button */
.wp-lingo-daily-challenge-sidebar .sidebar-btn {
    width: 100%;
    padding: 8px;
    font-size: 0.9em;
}

.wp-lingo-daily-challenge-sidebar .sidebar-status {
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--wp-lingo-correct);
    background: rgba(16, 185, 129, 0.1);
    padding: 8px;
    border-radius: 8px;
}

/* Dark Mode Adjustments */
body.wp-lingo-dark-mode .wp-lingo-daily-challenge-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    /* More subtle border */
}

body.wp-lingo-dark-mode .wp-lingo-daily-challenge-sidebar .sidebar-icon-wrapper {
    background: rgba(139, 92, 246, 0.2);
}

body.wp-lingo-dark-mode .wp-lingo-daily-challenge-sidebar .mini-reward {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Daily Challenge Mini (Sidebar) --- */
.wp-lingo-daily-challenge-mini {
    padding: 16px;
    background: var(--wp-lingo-bg-light);
    border-radius: 16px;
    box-shadow: var(--wp-lingo-glass-shadow);
    border: 1px solid var(--wp-lingo-glass-border);
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.wp-lingo-daily-challenge-mini.mini-completed {
    border-color: #10b981;
}

.wp-lingo-daily-challenge-mini .mini-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wp-lingo-daily-challenge-mini .mini-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.wp-lingo-daily-challenge-mini .mini-title-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wp-lingo-daily-challenge-mini .mini-label {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp-lingo-text-muted);
    font-weight: bold;
}

.wp-lingo-daily-challenge-mini .mini-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--wp-lingo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.wp-lingo-daily-challenge-mini .mini-countdown {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.8em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.wp-lingo-daily-challenge-mini .mini-progress-section {
    margin-bottom: 12px;
}

.wp-lingo-daily-challenge-mini .mini-progress-bar {
    height: 8px;
    background: var(--wp-lingo-glass);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--wp-lingo-glass-border);
}

.wp-lingo-daily-challenge-mini .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.wp-lingo-daily-challenge-mini.mini-completed .progress-fill {
    background: #10b981;
}

.wp-lingo-daily-challenge-mini .mini-progress-text {
    font-size: 0.85em;
    color: var(--wp-lingo-text-muted);
    display: block;
    text-align: right;
    font-weight: bold;
}

.wp-lingo-daily-challenge-mini .mini-rewards {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wp-lingo-daily-challenge-mini .mini-reward {
    font-size: 0.8em;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--wp-lingo-text);
    font-weight: bold;
}

body.wp-lingo-dark-mode .wp-lingo-daily-challenge-mini .mini-reward {
    background: rgba(255, 255, 255, 0.1);
}

.wp-lingo-daily-challenge-mini .mini-status {
    text-align: center;
    font-weight: bold;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9em;
}

.wp-lingo-daily-challenge-mini .mini-status.in-progress {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.wp-lingo-daily-challenge-mini .mini-status.claimed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.wp-lingo-daily-challenge-mini .mini-claim-btn {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9em;
    transition: transform 0.2s;
}

.wp-lingo-daily-challenge-mini .mini-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wp-lingo-daily-challenge-guest-mini {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wp-lingo-daily-challenge-guest-mini .mini-text {
    font-weight: bold;
    color: var(--wp-lingo-text-muted);
    font-size: 0.9em;
}

/* --- FROZEN STREAK STYLES --- */
.streak-frozen .status-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%) !important;
    color: white !important;
}

.streak-widget-frozen-success {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
    border: 1px solid rgba(14, 165, 233, 0.2);
    animation: bounceIn 0.5s ease-out;
}

body.wp-lingo-dark-mode .streak-widget-frozen-success {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* ============================================
   SOCIAL SHARING & RESULT CARDS
   ============================================ */
.wp-lingo-share-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed var(--wp-lingo-border);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wp-lingo-share-card-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    perspective: 1000px;
}

.wp-lingo-result-card {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 24px;
    padding: 30px;
    color: white !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wp-lingo-result-card * {
    color: white !important;
}

.wp-lingo-result-card:hover {
    transform: translateY(-8px) rotateX(2deg);
}

.wp-lingo-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: wpLingoRotate 12s linear infinite;
    pointer-events: none;
}

@keyframes wpLingoRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wp-lingo-card-header {
    z-index: 1;
}

.wp-lingo-card-title {
    font-size: 1.6em !important;
    font-weight: 800;
    margin: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wp-lingo-card-mascot {
    width: 130px;
    height: 130px;
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    margin: 5px 0;
    object-fit: contain;
}

.wp-lingo-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    z-index: 1;
}

.wp-lingo-card-stat-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-lingo-card-stat-value {
    display: block;
    font-size: 1.3em;
    font-weight: 800;
    line-height: 1.2;
}

.wp-lingo-card-stat-label {
    display: block;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
}

.wp-lingo-card-footer {
    z-index: 1;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.wp-lingo-share-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 360px;
}

.wp-lingo-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: white !important;
}

.wp-lingo-share-btn-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wp-lingo-share-btn-x {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wp-lingo-share-btn-copy {
    background: var(--wp-lingo-accent);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.wp-lingo-share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.wp-lingo-share-btn:active {
    transform: translateY(0);
}

.wp-lingo-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --- Share Modal --- */
.wp-lingo-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wp-lingo-share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.wp-lingo-share-modal-container {
    position: relative;
    background: var(--wp-lingo-bg-light, #1a1a2e);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--wp-lingo-glass-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wp-lingo-share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wp-lingo-share-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}