/* ===================================
   L'Atelier des Kanji - Mes Badges
   Trophy Collection Page
   Pastel Theme: Beige, Orange, Green
   =================================== */

/* CSS Variables (matching dashboard) */
:root {
    /* Primary Colors */
    --orange-primary: #E67E5A;
    --orange-light: #F5A882;
    --orange-dark: #D15A3A;

    /* Secondary Colors */
    --green-primary: #7DB59A;
    --green-light: #A8D5BA;
    --green-dark: #5A9B7A;

    /* Neutral Colors */
    --beige-light: #FBF8F4;
    --beige-medium: #F5EDE3;
    --beige-dark: #E8DDD0;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #FBF8F4;
    --bg-cream: #F9F5F0;

    /* Text Colors */
    --text-primary: #3D3A36;
    --text-secondary: #6B6560;
    --text-muted: #9A938A;
    --text-inverse: #FFFFFF;

    /* Accent Colors */
    --accent-gold: #D4A84B;
    --accent-pink: #E8A8B8;
    --accent-blue: #7BA3C9;

    /* Rarity Colors */
    --rarity-bronze: #CD7F32;
    --rarity-bronze-light: #E8B87D;
    --rarity-silver: #A8A9AD;
    --rarity-silver-light: #D4D5D9;
    --rarity-gold: #FFD700;
    --rarity-gold-light: #FFF4B3;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(61, 58, 54, 0.06);
    --shadow-md: 0 4px 12px rgba(61, 58, 54, 0.08);
    --shadow-lg: 0 8px 24px rgba(61, 58, 54, 0.12);
    --shadow-xl: 0 12px 48px rgba(61, 58, 54, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --sidebar-width: 260px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   SIDEBAR (Reused from Dashboard)
   =================================== */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    background: var(--bg-white);
    border-right: 1px solid var(--beige-medium);
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
}

.sidebar-top {
    flex: 1;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    margin-bottom: var(--space-6);
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
    color: white;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--beige-light);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
    color: var(--text-inverse);
}

.nav-item.active svg {
    stroke: var(--text-inverse);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--beige-light);
    border-radius: var(--radius-lg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-light), var(--green-primary));
    color: white;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
}

.user-link {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-link:hover {
    color: var(--orange-primary);
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    padding: var(--space-6);
    max-width: 1200px;
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    margin-bottom: var(--space-6);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.header-content h1 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.header-icon {
    font-size: 2.5rem;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

/* Progress Stats */
.progress-stats {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

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

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: var(--beige-medium);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 226;
    stroke-dashoffset: 150;
    transition: stroke-dashoffset 1s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--orange-primary);
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-count {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.progress-count span {
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
}

/* ===================================
   FILTER TABS
   =================================== */
.filter-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    background: var(--bg-white);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-tab {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-tab:hover {
    background: var(--beige-light);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--orange-primary);
    color: var(--text-inverse);
}

.filter-tab .tab-count {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

.filter-tab:not(.active) .tab-count {
    background: var(--beige-medium);
}

/* ===================================
   BADGES GRID
   =================================== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

/* ===================================
   BADGE CARD
   =================================== */
.badge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--beige-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-light);
}

/* Badge Ribbon (Rarity) */
.badge-ribbon {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-ribbon.bronze {
    background: linear-gradient(135deg, var(--rarity-bronze-light), var(--rarity-bronze));
    color: #5D3A1A;
}

.badge-ribbon.silver {
    background: linear-gradient(135deg, var(--rarity-silver-light), var(--rarity-silver));
    color: #3A3A3A;
}

.badge-ribbon.gold {
    background: linear-gradient(135deg, var(--rarity-gold-light), var(--rarity-gold));
    color: #5D4A00;
}

/* Badge Icon Container */
.badge-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-4);
}

.badge-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 2.5rem;
    transition: all var(--transition-normal);
}

/* Unlocked State */
.badge-card.unlocked .badge-icon {
    background: linear-gradient(135deg, var(--green-light), var(--green-primary));
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(125, 181, 154, 0.4);
}

.badge-card.unlocked:hover .badge-icon {
    transform: scale(1.05);
}

.badge-star {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* In Progress State */
.badge-card.in-progress .badge-icon {
    background: linear-gradient(135deg, var(--beige-medium), var(--beige-dark));
    color: var(--text-secondary);
}

.badge-card.in-progress {
    opacity: 0.9;
}

.progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--beige-medium);
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-primary), var(--accent-gold));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-percent {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    color: var(--orange-primary);
    background: var(--bg-white);
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

/* Locked State */
.badge-card.locked .badge-icon {
    background: var(--beige-medium);
    filter: grayscale(100%);
}

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

.badge-card.locked:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.badge-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Badge Info */
.badge-name {
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.badge-card.locked .badge-name {
    color: var(--text-muted);
}

.badge-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.badge-card.locked .badge-desc {
    font-style: italic;
}

/* ===================================
   BADGE MODAL
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 58, 54, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

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

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--beige-light);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--beige-medium);
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-7) var(--space-5) var(--space-5);
    background: linear-gradient(135deg, var(--beige-light), var(--beige-medium));
    text-align: center;
}

.modal-badge-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-lg);
}

.modal-badge-icon.unlocked {
    background: linear-gradient(135deg, var(--green-light), var(--green-primary));
    color: var(--text-inverse);
    animation: badgePulse 2s ease-in-out infinite;
}

.modal-badge-icon.in-progress {
    background: linear-gradient(135deg, var(--beige-medium), var(--beige-dark));
    color: var(--text-secondary);
}

.modal-badge-icon.locked {
    background: var(--beige-medium);
    filter: grayscale(100%);
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 0 0 rgba(125, 181, 154, 0.4);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 0 15px rgba(125, 181, 154, 0);
    }
}

.modal-badge-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.modal-badge-rarity {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
}

.modal-badge-rarity.bronze {
    background: linear-gradient(135deg, var(--rarity-bronze-light), var(--rarity-bronze));
    color: #5D3A1A;
}

.modal-badge-rarity.silver {
    background: linear-gradient(135deg, var(--rarity-silver-light), var(--rarity-silver));
    color: #3A3A3A;
}

.modal-badge-rarity.gold {
    background: linear-gradient(135deg, var(--rarity-gold-light), var(--rarity-gold));
    color: #5D4A00;
}

.modal-body {
    padding: var(--space-5);
}

.modal-section {
    margin-bottom: var(--space-4);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.modal-section-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.modal-category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--beige-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

.modal-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--green-dark);
    font-weight: var(--font-weight-semibold);
}

.modal-date svg {
    width: 16px;
    height: 16px;
}

.modal-tip {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--orange-light);
    background: linear-gradient(135deg, rgba(245, 168, 130, 0.2), rgba(230, 126, 90, 0.2));
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--orange-primary);
}

.modal-tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modal-tip-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.modal-progress-section {
    padding: var(--space-4);
    background: var(--beige-light);
    border-radius: var(--radius-lg);
}

.modal-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

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

.modal-progress-value {
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    color: var(--orange-primary);
}

.modal-progress-bar {
    height: 8px;
    background: var(--beige-medium);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-primary), var(--accent-gold));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* ===================================
   CONFETTI ANIMATION
   =================================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti.active {
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Badge Unlock Animation */
.badge-card.just-unlocked {
    animation: badgeUnlock 0.6s ease;
}

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

    30% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1.05);
    }

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

.badge-card.just-unlocked .badge-icon {
    animation: iconGlow 1s ease;
}

@keyframes iconGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(125, 181, 154, 0.4);
    }

    50% {
        box-shadow: 0 4px 40px rgba(125, 181, 154, 0.8), 0 0 60px rgba(125, 181, 154, 0.4);
    }
}

/* ===================================
   TIP CARD
   =================================== */
.tip-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
    border-radius: var(--radius-xl);
    color: var(--text-inverse);
}

.tip-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.tip-content h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.tip-content p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===================================
   EMPTY STATE
   =================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1100px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: var(--space-4);
    }

    .header-top {
        flex-direction: column;
    }

    .progress-stats {
        width: 100%;
        justify-content: center;
    }

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

@media (max-width: 600px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-icon {
        font-size: 2rem;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .filter-tab {
        white-space: nowrap;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .badge-card {
        flex-direction: row;
        text-align: left;
        gap: var(--space-4);
        padding: var(--space-4);
    }

    .badge-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .badge-icon {
        font-size: 1.8rem;
    }

    .badge-info {
        flex: 1;
    }

    .badge-ribbon {
        top: var(--space-2);
        right: var(--space-2);
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 300;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--beige-medium);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 200;
        transition: left var(--transition-normal);
    }

    .sidebar.open {
        display: flex;
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        padding-top: calc(var(--space-4) + 60px);
    }
}