/* ==========================================================================
   MARKETPLACE DUOLINGO - MODERN GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

/* --- Typography and CSS variables --- */
:root {
    --bg-dark: #f8fafc;
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    
    /* Vibrant gradients & HSL branding colors */
    --ozon-pink: hsl(330, 85%, 60%);
    --wb-purple: hsl(275, 80%, 55%);
    --success-green: hsl(145, 75%, 45%);
    --accent-gold: hsl(45, 95%, 55%);
    --danger-red: hsl(0, 80%, 55%);
    
    --purple-grad: linear-gradient(135deg, hsl(275, 80%, 55%) 0%, hsl(330, 85%, 60%) 100%);
    --green-grad: linear-gradient(135deg, hsl(145, 75%, 45%) 0%, hsl(160, 80%, 40%) 100%);
    --gold-grad: linear-gradient(135deg, hsl(45, 95%, 55%) 0%, hsl(30, 95%, 50%) 100%);
    --glass-blur: blur(12px);
}

/* --- Basic resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, h4, .logo-title {
    font-family: 'Outfit', sans-serif;
}

/* --- Layout Grid --- */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}

/* ==========================================
   LEFT SIDEBAR PANEL
   ========================================== */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    padding: 0 8px;
}

.mascot-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--ozon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.2);
}

.logo-title {
    font-size: 18px;
    font-weight: 800;
    background: var(--purple-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--purple-grad);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.25);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.user-quick-info {
    padding: 8px;
}

.quick-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-rank {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- Top Bar Statistics --- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    height: 64px;
}

.career-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 40%;
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.progress-track {
    background-color: rgba(0, 0, 0, 0.06);
    height: 10px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--purple-grad);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-counters {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.flame-icon {
    animation: flamePulse 1.5s infinite ease-in-out;
}

.reset-btn {
    cursor: pointer;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* --- Container screens --- */
.screen-container {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
    position: relative;
}

.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   GLASSMOPHISM CARDS & CORE COMPONENTS
   ========================================== */
.glass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --- Standard Buttons --- */
.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--purple-grad);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.3);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: var(--green-grad);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
}

.btn-warning {
    background: var(--gold-grad);
    color: black;
}

.btn-warning:hover {
    transform: translateY(-2px);
}

/* --- Form elements --- */
.form-control {
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--ozon-pink);
    background-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================
   SCREEN 1: WELCOME & DIAGNOSTIC CARD
   ========================================== */
.welcome-card {
    max-width: 650px;
    margin: 40px auto;
    text-align: center;
    padding: 48px;
}

.welcome-mascot {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--ozon-pink);
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.35);
    margin-bottom: 24px;
}

.welcome-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.welcome-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.diagnostic-prompt-box {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.diagnostic-prompt-box p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================
   SCREEN 2: DUOLINGO PATH MAP
   ========================================== */
.map-intro {
    text-align: center;
    margin-bottom: 48px;
}

.map-intro h2 {
    font-size: 24px;
    font-weight: 800;
}

.map-intro p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.duolingo-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.duolingo-map::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 100px;
    width: 8px;
    background-color: rgba(0, 0, 0, 0.04);
    z-index: 1;
}

/* Map items and steps */
.map-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status variants for nodes */
.node-btn.locked {
    background: #f1f5f9;
    color: #94a3b8;
    border: 4px solid #e2e8f0;
    cursor: not-allowed;
}

.node-btn.active {
    background: var(--purple-grad);
    border: 4px solid var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.6);
    animation: activePulse 1.8s infinite ease-in-out;
}

.node-btn.completed {
    background: var(--green-grad);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.node-btn:hover:not(.locked) {
    transform: scale(1.1) translateY(-3px);
}

.node-title-box {
    position: absolute;
    top: 86px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Zigzag positioning for road map */
.map-step:nth-child(5n+1) .node-btn { transform: translateX(-80px); }
.map-step:nth-child(5n+2) .node-btn { transform: translateX(-40px); }
.map-step:nth-child(5n+3) .node-btn { transform: translateX(0px); }
.map-step:nth-child(5n+4) .node-btn { transform: translateX(40px); }
.map-step:nth-child(5n+5) .node-btn { transform: translateX(80px); }

.map-step:nth-child(5n+1) .node-title-box { transform: translateX(-80px); }
.map-step:nth-child(5n+2) .node-title-box { transform: translateX(-40px); }
.map-step:nth-child(5n+3) .node-title-box { transform: translateX(0px); }
.map-step:nth-child(5n+4) .node-title-box { transform: translateX(40px); }
.map-step:nth-child(5n+5) .node-title-box { transform: translateX(80px); }

/* Level divider in tree map */
.level-divider {
    font-weight: 800;
    font-size: 13px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin: 32px 0 16px 0;
    z-index: 2;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
}

/* ==========================================
   MODALS AND WIZARDS
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lesson-modal-content {
    max-width: 750px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.lesson-syllabus {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 24px;
}

/* Confirm modal small format */
.confirm-modal {
    max-width: 450px;
    text-align: center;
}

.confirm-modal h3 {
    margin-bottom: 12px;
}

.confirm-modal p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal .modal-footer {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.level-selector-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-lvl-opt {
    justify-content: flex-start;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================
   AI MENTOR EXPLAINER CARD
   ========================================== */
.ai-mentor-box {
    background-color: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    animation: fadeSlideIn 0.4s ease-out;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(139, 92, 246, 0.2);
    padding-bottom: 8px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ozon-pink);
}

.ai-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ozon-pink);
    letter-spacing: 0.5px;
}

.ai-content-body {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-line;
}

/* ==========================================
   SCREEN 3: PRACTICE PLAYGROUND
   ========================================== */
.practice-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 16px;
}

.task-item {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.task-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.task-item.active {
    background-color: rgba(139, 92, 246, 0.08);
    border-color: var(--wb-purple);
}

.task-item-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ozon-pink);
    letter-spacing: 0.5px;
}

.task-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-playground {
    min-height: calc(100vh - 180px);
}

.placeholder-text {
    color: var(--text-secondary);
    text-align: center;
    padding: 100px 0;
    font-style: italic;
}

.task-active-area h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.difficulty-tag {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.task-description-box {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 12px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.task-submission-form label {
    font-size: 14px;
}

.btn-submit-task {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

/* --- Audit Evaluation Box --- */
.evaluation-report-box {
    margin-top: 32px;
    background-color: rgba(34, 197, 94, 0.04);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    padding: 24px;
    animation: fadeSlideIn 0.4s ease-out;
}

.evaluation-report-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.xp-gain-str {
    font-size: 24px;
    font-weight: 800;
    margin-top: 4px;
    margin-bottom: 16px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mentor-feedback-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-line;
}

/* ==========================================
   SCREEN 4: CRISIS SIMULATIONS SANDBOX
   ========================================== */
.simulations-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.simulations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 16px;
}

.sim-item {
    background-color: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.sim-item:hover {
    background-color: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.sim-item.active {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: var(--danger-red);
}

.sim-item-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--danger-red);
    letter-spacing: 0.5px;
}

.sim-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simulation-workspace {
    min-height: calc(100vh - 180px);
}

.sim-active-area h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.crisis-alert-card {
    border: 1px solid var(--danger-red);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 24px;
    animation: borderRedFlash 1.5s infinite alternate;
}

.alert-banner {
    background-color: var(--danger-red);
    color: white;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 16px;
    letter-spacing: 0.8px;
    text-align: center;
}

.alert-body {
    padding: 18px;
    background-color: rgba(11, 14, 23, 0.8);
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-line;
}

.sim-solution-form label {
    font-size: 14px;
}

.sim-solution-form textarea {
    border-color: rgba(251, 191, 36, 0.3);
}

.sim-solution-form textarea:focus {
    border-color: var(--accent-gold);
}

.sim-solution-form button {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* ==========================================
   SCREEN 5: CAREER PROFILE & STATS
   ========================================= */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-card {
    text-align: center;
    padding: 32px 16px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--ozon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
    margin-bottom: 16px;
}

.profile-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.profile-rank {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 16px;
}

.profile-streak-meter {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.profile-streak-meter .streak-flame {
    animation: flamePulse 1.2s infinite ease-in-out;
}

.profile-streak-meter .streak-text {
    font-size: 13px;
    font-weight: 600;
}

.career-badge-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.career-badge {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.career-badge.active {
    background: var(--purple-grad);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 0, 128, 0.15);
}

.analytics-card {
    min-height: 420px;
}

.analytics-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stats-item {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-item .label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-item .val {
    font-size: 22px;
    font-weight: 800;
}

.weaknesses-section {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.weaknesses-list {
    margin-top: 12px;
    line-height: 1.6;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================
   SCREEN 6: PRO SHOP SAAS TEMPLATES
   ========================================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.shop-item {
    text-align: center;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.shop-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.shop-item p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.shop-item button {
    width: 100%;
    justify-content: center;
}

.shop-item.premium {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08);
}

.shop-item.saas-sub {
    border-color: var(--ozon-pink);
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.08);
}

/* ==========================================
   LEVEL UP TOAST POPUP ALERT
   ========================================== */
.level-up-toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #10b981;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    padding: 20px 30px;
    border-radius: 16px;
    z-index: 2000;
    text-align: center;
    color: white;
    max-width: 320px;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.level-up-toast h3 {
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
    margin-bottom: 4px;
}

.level-up-toast p {
    font-size: 13px;
    opacity: 0.9;
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes activePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(255, 0, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 128, 0);
    }
}

@keyframes flamePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.15) translateY(-2px);
        text-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    }
}

@keyframes borderRedFlash {
    0% {
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.1);
    }
    100% {
        border-color: rgba(239, 68, 68, 1.0);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeSlideIn {
    from {
        transform: translateY(15px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
