:root {
    --black: #131010;
    --gray: #B2AFAF;
    --darkgray: #555;
    --white: #FDF7F7;
    --bg: #FDF7F7;
    --nwblc: #1e1e1e;
    --pink: #FF4E99;
    --orange: #FF9F00;
    --lime: #C6DF2B;
    --blue: #009DFF;
    --purple: #9B59B6;
    --font-family: 'Rubik', sans-serif;
    --header-height: 100px;
    
    /* Project Type Colors */
    --html-color: #e34c26;
    --css-color: #264de4;
    --js-color: #f0db4f;
    --react-color: #61dafb;
    --vue-color: #42b883;
    --node-color: #68a063;
    --python-color: #3776ab;
    --java-color: #ed8b00;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg);
    min-height: 100vh;
    margin-top: -100px;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white);
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.header-logo img {
    height: 80px;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
}

.main-menu {
    display: flex;
    gap: 50px;
    margin: 0 auto;
}

.menu-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.menu-link:nth-child(1)::after { background: var(--pink); }
.menu-link:nth-child(2)::after { background: var(--orange); }
.menu-link:nth-child(3)::after { background: var(--lime); }
.menu-link:nth-child(4)::after { background: var(--blue); }

.menu-link:hover::after {
    width: 100%;
}

.menu-link:nth-child(1):hover { color: var(--pink); }
.menu-link:nth-child(2):hover { color: var(--orange); }
.menu-link:nth-child(3):hover { color: var(--lime); }
.menu-link:nth-child(4):hover { color: var(--blue); }

.primary-button {
    background-color: var(--lime);
    color: var(--black);
    font-family: var(--font-family);
    padding: 16px 35px;
    box-shadow: 4px 4px 0 #1a1a2e;
    font-size: 18px;
    border: 3px solid var(--black);
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 223, 43, 0.4);
}

.login-icon {
    margin-left: 20px;
    font-size: 2.5rem;
    color: var(--black);
    transition: all 0.3s ease;
}

.login-icon:hover {
    color: var(--pink);
    transform: scale(1.1);
}

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger-bar {
    height: 4px;
    background-color: var(--black);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--black);
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 32px;
    font-weight: bold;
    color: var(--black);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: var(--pink);
    color: var(--white);
}

/* ==================== WELCOME MODAL ==================== */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(19, 16, 16, 0.95) 0%, rgba(30, 30, 30, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.welcome-modal.hidden {
    display: none;
}

.welcome-content {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    max-width: 1100px;
    width: 100%;
    animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-header h1 {
    font-size: 52px;
    margin-bottom: 15px;
    color: var(--black);
}

.koodi-logo {
    display: inline-block;
}

.koodi-logo span {
    font-weight: 900;
    display: inline-block;
    animation: letterBounce 0.6s ease-out forwards;
}

.koodi-logo .k { color: var(--pink); animation-delay: 0.1s; }
.koodi-logo .o1 { color: var(--orange); animation-delay: 0.15s; }
.koodi-logo .o2 { color: var(--lime); animation-delay: 0.2s; }
.koodi-logo .d { color: var(--blue); animation-delay: 0.25s; }
.koodi-logo .i { color: var(--purple); animation-delay: 0.3s; }

@keyframes letterBounce {
    0% { transform: translateY(-20px); opacity: 0; }
    60% { transform: translateY(5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.welcome-subtitle {
    font-size: 22px;
    color: var(--darkgray);
    font-weight: 500;
}

/* ==================== PROJECT TYPES GRID ==================== */
.project-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: #fff;
    border: 3px solid #e8e8e8;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card[data-type="html-css-js"]::before {
    background: linear-gradient(90deg, var(--html-color), var(--css-color), var(--js-color));
}
.project-card[data-type="react"]::before { background: var(--react-color); }
.project-card[data-type="vue"]::before { background: var(--vue-color); }
.project-card[data-type="nodejs"]::before { background: var(--node-color); }
.project-card[data-type="python"]::before { background: var(--python-color); }
.project-card[data-type="java"]::before { background: var(--java-color); }

.project-card:hover {
    transform: translateY(-8px);
    border-color: #ccc;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

.project-card.selected {
    border-color: var(--lime);
    background: linear-gradient(135deg, rgba(198, 223, 43, 0.08) 0%, #fff 100%);
    box-shadow: 0 10px 35px rgba(198, 223, 43, 0.25);
}

.project-card.selected::before {
    opacity: 1;
}

.project-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: var(--black);
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.project-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 32px;
    gap: 5px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.html-icon { background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%); }
.html-icon i:nth-child(1) { color: var(--html-color); font-size: 24px; }
.html-icon i:nth-child(2) { color: var(--css-color); font-size: 24px; }
.html-icon i:nth-child(3) { color: var(--js-color); font-size: 24px; }

.react-icon { background: linear-gradient(135deg, #e8f8ff 0%, #d0f0ff 100%); }
.react-icon i { color: var(--react-color); animation: reactSpin 8s linear infinite; }

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

.vue-icon { background: linear-gradient(135deg, #e8fff2 0%, #d0ffe5 100%); }
.vue-icon i { color: var(--vue-color); }

.node-icon { background: linear-gradient(135deg, #e8ffe8 0%, #d0ffd0 100%); }
.node-icon i { color: var(--node-color); }

.python-icon { background: linear-gradient(135deg, #e8f0ff 0%, #d0e5ff 100%); }
.python-icon i { color: var(--python-color); }

.java-icon { background: linear-gradient(135deg, #fff5e8 0%, #ffe8d0 100%); }
.java-icon i { color: var(--java-color); }

.project-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    color: var(--darkgray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: var(--darkgray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== SELECTED PROJECT INFO ==================== */
.selected-project-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-radius: 20px;
    border: 2px solid #e8e8e8;
}

.selected-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--darkgray);
}

.selected-badge i {
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
}

.selected-badge.active {
    color: var(--black);
}

.selected-badge.active i {
    color: var(--lime);
}

.start-button {
    background: var(--lime);
    color: var(--black);
    border: 3px solid var(--black);
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-button:disabled {
    background: #e0e0e0;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.start-button:not(:disabled):hover {
    background: var(--pink);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 78, 153, 0.3);
}

/* ==================== PLAYGROUND CONTAINER ==================== */
.playground-container {
    display: flex;
    height: calc(100vh - var(--header-height));
    width: 100%;
    margin-top: var(--header-height);
}
/* ==================== LEFT SIDEBAR ==================== */
.left-sidebar {
    width: 75px;
    background: var(--nwblc);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 12px;
    border-right: 1px solid #2d2d2d;
}

.file-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.file-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.file-icon.active {
    background: var(--lime);
}

.file-icon.active i {
    color: var(--black) !important;
}

.file-icon i {
    font-size: 26px;
    transition: color 0.3s ease;
}

/* File icon colors */
.file-icon.html i { color: var(--html-color); }
.file-icon.css i { color: var(--css-color); }
.file-icon.js i { color: var(--js-color); }
.file-icon.jsx i { color: var(--react-color); }
.file-icon.vue i { color: var(--vue-color); }
.file-icon.node i { color: var(--node-color); }
.file-icon.python i { color: var(--python-color); }
.file-icon.java i { color: var(--java-color); }
.file-icon.assets i { color: var(--pink); }
.file-icon.json i { color: var(--orange); }

.sidebar-divider {
    width: 40px;
    height: 2px;
    background: #333;
    margin: 10px 0;
    border-radius: 1px;
}

/* Add File Button in Sidebar */
.file-icon.add-file {
    background: transparent;
    border: 2px dashed #444;
}

.file-icon.add-file:hover {
    border-color: var(--lime);
    background: rgba(198, 223, 43, 0.1);
}

.file-icon.add-file i {
    color: #666;
    font-size: 20px;
}

.file-icon.add-file:hover i {
    color: var(--lime);
}

/* ==================== EDITOR SECTION ==================== */
.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--nwblc);
    position: relative;
    min-width: 300px;
}

.resizer {
    width: 5px;
    background: #2d2d2d;
    cursor: col-resize;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    transition: background 0.2s ease;
}

.resizer:hover,
.resizer.resizing {
    background: var(--lime);
}

.editor-header {
    background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3d3d3d;
    flex-wrap: wrap;
    gap: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-type-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--white);
    font-weight: 500;
}

.project-type-badge i {
    font-size: 16px;
}

.file-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.editor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 4px 4px 0 #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-run {
    background: var(--lime);
    color: var(--black);
}

.btn-run:hover {
    background: #d4eb3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 223, 43, 0.4);
}

.btn-back {
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
}

.btn-back:hover {
    background: #0088dd;
    transform: translateY(-2px);
}

.btn-save {
    background: var(--orange);
    color: var(--white);
}

.btn-save:hover {
    background: #e68f00;
    transform: translateY(-2px);
}

.btn-save.saved {
    background: var(--lime);
    color: var(--black);
}

.btn-save.saving {
    background: var(--gray);
    pointer-events: none;
}

.btn-console {
    background: #333;
    color: var(--white);
    border: 1px solid #444;
}

.btn-console:hover,
.btn-console.active {
    background: var(--purple);
    border-color: var(--purple);
}

.btn-screenshot {
    background: var(--blue);
    color: var(--white);
}

.btn-screenshot:hover {
    background: #00b5ff;
    transform: translateY(-2px);
}

/* ==================== EDITOR WRAPPER ==================== */
.editor-wrapper {
    flex: 1;
    display: flex;
    background: var(--nwblc);
    overflow: hidden;
    position: relative;
}

.line-numbers {
    background: #1a1a1a;
    color: #5a5a5a;
    padding: 20px 15px;
    text-align: right;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    user-select: none;
    min-width: 55px;
    overflow: hidden;
    white-space: pre;
    border-right: 1px solid #2d2d2d;
}

.editors-container {
    flex: 1;
    position: relative;
}

.code-editor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nwblc);
    color: #d4d4d4;
    border: none;
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    display: none;
    tab-size: 2;
}

.code-editor.active {
    display: block;
}

.code-editor::selection {
    background: var(--lime);
    color: var(--black);
}

.code-editor::placeholder {
    color: #555;
}

/* ==================== ASSETS PANEL ==================== */
.assets-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    padding: 25px;
    gap: 20px;
    background: var(--nwblc);
    overflow-y: auto;
}

.assets-panel.active {
    display: flex;
}

.upload-area {
    border: 3px dashed #444;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--lime);
    background: rgba(198, 223, 43, 0.05);
}

.upload-area i {
    font-size: 50px;
    color: var(--lime);
    margin-bottom: 15px;
    display: block;
}

.upload-area h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--gray);
    font-size: 14px;
}

.assets-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.asset-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #252525;
}

.asset-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.asset-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.asset-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    padding: 20px 10px 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-url-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--lime);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--font-family);
}

.asset-item:hover .copy-url-btn {
    opacity: 1;
}

/* ==================== PREVIEW SECTION ==================== */
.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    min-width: 300px;
}

.preview-header {
    background: #f5f5f5;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.url-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--darkgray);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.url-bar i {
    font-size: 8px;
}

.device-switcher {
    display: flex;
    gap: 8px;
}

.device-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--darkgray);
}

.device-btn:hover {
    border-color: var(--black);
    transform: scale(1.05);
}

.device-btn.active {
    background: var(--lime);
    border-color: var(--black);
    color: var(--black);
}

.preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    position: relative;
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-frame.mobile {
    max-width: 375px;
    height: 667px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.preview-frame.tablet {
    max-width: 768px;
    height: 1024px;
    border-radius: 20px;
}

/* ==================== CONSOLE PANEL ==================== */
.console-panel {
    display: none;
    flex-direction: column;
    background: #1a1a1a;
    border-top: 3px solid var(--purple);
    max-height: 250px;
}

.console-panel.active {
    display: flex;
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #252525;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.console-header i {
    color: var(--purple);
    margin-right: 8px;
}

.console-clear {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.console-clear:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--white);
}

.console-output {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.console-log {
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #d4d4d4;
}

.console-log.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
}

.console-log.warn {
    color: var(--orange);
}

/* ==================== AUTOCOMPLETE ==================== */
.autocomplete-dropdown {
    position: fixed;
    display: none;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    max-height: 220px;
    overflow-y: auto;
    z-index: 10000;
    min-width: 180px;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--lime);
    color: var(--black);
}

.autocomplete-item i {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== NOTIFICATIONS ==================== */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--lime);
    color: var(--black);
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(198, 223, 43, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== FILE NAME WRAPPER ==================== */
.file-name-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.file-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-name:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--lime);
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 5px 10px;
    font-family: var(--font-family);
    outline: none;
    width: 150px;
}

.file-menu-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.file-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* ==================== FILE CONTEXT MENU ==================== */
.file-context-menu {
    position: fixed;
    background: var(--nwblc);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    z-index: 10000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.file-context-menu.show {
    display: block;
    animation: menuFadeIn 0.2s ease;
}

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

.file-context-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-family);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-context-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-context-menu button.danger:hover {
    background: rgba(255, 78, 153, 0.2);
    color: var(--pink);
}

.file-context-menu button i {
    width: 18px;
    text-align: center;
}

/* ==================== FILE MODAL ==================== */
.file-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 16, 16, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}

.file-modal-overlay.show {
    display: flex;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.file-modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

.file-modal.delete-modal {
    max-width: 380px;
}

.file-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 2px solid #eee;
}

.file-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-modal-header h3 i {
    color: var(--lime);
}

.delete-modal .file-modal-header h3 i {
    color: var(--pink);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--darkgray);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--pink);
}

.file-modal-body {
    padding: 25px;
}

.file-modal-body p {
    color: var(--darkgray);
    font-size: 15px;
    line-height: 1.6;
}

.file-modal-body .warning-text {
    color: var(--pink);
    font-size: 13px;
    margin-top: 10px;
}

/* File Type Grid */
.file-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.file-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.file-type-option:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.file-type-option.selected {
    border-color: var(--lime);
    background: rgba(198, 223, 43, 0.15);
    box-shadow: 0 4px 15px rgba(198, 223, 43, 0.2);
}

.file-type-option i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.file-type-option:hover i {
    transform: scale(1.1);
}

.file-type-option span {
    font-size: 12px;
    font-weight: 600;
    color: var(--darkgray);
    text-align: center;
}

.file-type-option.selected span {
    color: var(--black);
}

/* Input Label */
.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--darkgray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* File Name Input */
.file-name-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-name-input-wrapper:focus-within {
    border-color: var(--lime);
}

.file-name-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px;
    font-size: 16px;
    font-family: var(--font-family);
    outline: none;
}

.file-extension {
    padding: 15px;
    background: #e8e8e8;
    color: var(--darkgray);
    font-weight: 600;
    font-size: 14px;
}

/* Modal Footer */
.file-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 2px solid #eee;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn.cancel {
    background: #f0f0f0;
    border: 2px solid #ddd;
    color: var(--darkgray);
}

.modal-btn.cancel:hover {
    background: #e8e8e8;
}

.modal-btn.create {
    background: var(--lime);
    border: 2px solid var(--black);
    color: var(--black);
}

.modal-btn.create:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 223, 43, 0.3);
}

.modal-btn.delete {
    background: var(--pink);
    border: 2px solid var(--pink);
    color: var(--white);
}

.modal-btn.delete:hover {
    background: #e8447a;
    transform: translateY(-2px);
}

/* ==================== MOBILE TOGGLE ==================== */
.mobile-toggle-btn {
    display: none;
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: var(--lime);
    color: var(--black);
    border: 3px solid var(--black);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.mobile-toggle-btn:active {
    transform: scale(0.95);
}

/* ==================== SWIPE INDICATORS (HIDDEN ON DESKTOP) ==================== */
.swipe-indicator {
    display: none;
}

/* ==================== VERTICAL LAYOUT ==================== */
.playground-container.vertical-layout {
    flex-direction: column;
}

.playground-container.vertical-layout .editor-section {
    height: 50%;
    max-height: 50vh;
}

.playground-container.vertical-layout .preview-section {
    height: 50%;
}

.playground-container.vertical-layout .resizer {
    width: 100%;
    height: 5px;
    cursor: row-resize;
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
}

/* ==================== RESPONSIVE: TABLET ==================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }
    
    .header-container {
        padding: 10px 25px;
    }
    
    .header-logo img {
        height: 65px;
    }
    
    .main-menu {
        gap: 30px;
    }
    
    .menu-link {
        font-size: 16px;
    }
    
    .welcome-content {
        padding: 40px 30px;
    }
    
    .welcome-header h1 {
        font-size: 40px;
    }
    
    .project-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .left-sidebar {
        width: 65px;
    }
    
    .file-icon {
        width: 45px;
        height: 45px;
    }
}

/* ==================== RESPONSIVE: MOBILE ==================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --bottom-nav-height: 60px;
        --mobile-toggle-height: 50px;
    }
    
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-logo img {
        height: 45px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .main-menu,
    .cta-button,
    .login-icon {
        display: none;
    }
    
    /* Welcome Modal Mobile */
    .welcome-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 70px;
    }
    
    .welcome-content {
        padding: 25px 18px;
        border-radius: 20px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .welcome-header {
        margin-bottom: 25px;
    }
    
    .welcome-header h1 {
        font-size: 26px;
    }
    
    .welcome-subtitle {
        font-size: 15px;
    }
    
    .project-types-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .project-card {
        padding: 15px;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .project-card-content {
        flex: 1;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-bottom: 0;
        font-size: 22px;
    }
    
    .project-card h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .project-card p {
        font-size: 12px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .project-tags {
        gap: 5px;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .selected-project-info {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin-top: 15px;
    }
    
    .selected-badge {
        font-size: 15px;
    }
    
    .start-button {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 16px;
    }
    
    /* ==================== PLAYGROUND MOBILE LAYOUT ==================== */
    .playground-container {
        flex-direction: column;
        margin-top: var(--header-height);
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height)); /* Dynamic viewport height for mobile */
    }
    
    /* Hide resizer on mobile */
    .resizer {
        display: none;
    }
    
    /* ==================== MOBILE BOTTOM NAVIGATION ==================== */
    .left-sidebar {
        position: fixed;
        bottom: var(--mobile-toggle-height);
        left: 0;
        right: 0;
        width: 100%;
        height: var(--bottom-nav-height);
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 5px;
        gap: 2px;
        z-index: 100;
        border-top: 2px solid #333;
        border-right: none;
        background: var(--nwblc);
    }
    
    .sidebar-divider {
        display: none;
    }
    
    .file-icon {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    
    .file-icon i {
        font-size: 22px;
    }
    
    /* ==================== EDITOR & PREVIEW SECTIONS ==================== */
    .editor-section,
    .preview-section {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: calc(var(--bottom-nav-height) + var(--mobile-toggle-height));
        width: 100%;
        min-width: 100%;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
        z-index: 1;
    }
    
    .editor-section {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        z-index: 10;
    }
    
    .preview-section {
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .editor-section.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        z-index: 10;
    }
    
    .editor-section:not(.active) {
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 1;
    }
    
    .preview-section.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        z-index: 10;
    }
    
    /* ==================== MOBILE EDITOR HEADER ==================== */
    .editor-header {
        padding: 8px 12px;
        gap: 8px;
        min-height: auto;
    }
    
    .file-info {
        flex: 1;
        gap: 8px;
    }
    
    .project-type-badge {
        font-size: 11px;
        padding: 4px 8px;
        gap: 5px;
    }
    
    .project-type-badge i {
        font-size: 14px;
    }
    
    .file-name {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .editor-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        margin: 0;
        font-size: 16px;
    }
    
    /* Hide some buttons on mobile */
    .btn-screenshot,
    .btn-back {
        display: none;
    }
    
    /* ==================== MOBILE CODE EDITOR ==================== */
    .editor-wrapper {
        height: calc(100% - 50px);
    }
    
    .line-numbers {
        min-width: 35px;
        padding: 12px 8px;
        font-size: 12px;
        line-height: 1.5;
    }
    
    .code-editor {
        padding: 12px;
        font-size: 14px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
    }
    
    /* ==================== MOBILE PREVIEW ==================== */
    .preview-header {
        padding: 8px 12px;
    }
    
    .url-bar {
        font-size: 11px;
        padding: 6px 12px;
        flex: 1;
    }
    
    .device-switcher {
        display: none; /* Hide device switcher on mobile */
    }
    
    .preview-content {
        padding: 8px;
        background: #f0f0f0;
    }
    
    .preview-frame {
        border-radius: 8px;
    }
    
    /* ==================== MOBILE CONSOLE ==================== */
    .console-panel {
        max-height: 150px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .console-panel.active {
        display: flex;
    }
    
    .console-header {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .console-output {
        padding: 10px;
        font-size: 12px;
    }
    
    /* ==================== MOBILE VIEW TOGGLE BUTTON ==================== */
    .mobile-toggle-btn {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-toggle-height);
        background: linear-gradient(135deg, var(--lime) 0%, #b8d126 100%);
        color: var(--black);
        border: none;
        border-top: 3px solid var(--black);
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        z-index: 200;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-family: var(--font-family);
        transition: all 0.3s ease;
    }
    
    .mobile-toggle-btn.preview-mode {
        background: linear-gradient(135deg, var(--blue) 0%, #0088dd 100%);
        color: var(--white);
    }
    
    .mobile-toggle-btn:active {
        transform: scale(0.98);
    }
    
    .mobile-toggle-btn i {
        font-size: 18px;
    }
    
    /* ==================== MOBILE NOTIFICATIONS ==================== */
    .copy-notification,
    .save-indicator {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        right: auto;
        font-size: 13px;
        padding: 10px 18px;
        border-radius: 10px;
    }
    
    .copy-notification.show,
    .save-indicator.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .save-indicator {
        top: 70px;
    }
    
    .copy-notification {
        bottom: 130px;
    }
    
    /* ==================== MOBILE ASSETS PANEL ==================== */
    .assets-panel {
        padding: 15px;
        gap: 15px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .upload-area i {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .upload-area h3 {
        font-size: 16px;
    }
    
    .assets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .asset-item img {
        height: 100px;
    }
    
    /* ==================== MOBILE AUTOCOMPLETE ==================== */
    .autocomplete-dropdown {
        max-height: 180px;
        min-width: 150px;
        font-size: 13px;
    }
    
    .autocomplete-item {
        padding: 8px 12px;
    }
    
    /* ==================== MOBILE FILE MODALS ==================== */
    .file-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 24px 24px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        overflow-y: auto;
        animation: modalSlideFromBottom 0.3s ease;
    }
    
    @keyframes modalSlideFromBottom {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .file-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .file-type-option {
        padding: 15px 10px;
    }
    
    .file-type-option i {
        font-size: 28px;
    }
    
    .file-type-option span {
        font-size: 11px;
    }
    
    .file-modal-header {
        padding: 18px 20px;
    }
    
    .file-modal-body {
        padding: 20px;
    }
    
    .file-modal-footer {
        padding: 15px 20px 25px;
    }
    
    /* ==================== MOBILE FILE MENU ==================== */
    .file-menu-btn {
        display: flex;
    }
    
    .file-context-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 15px;
        padding-bottom: 30px;
    }
    
    .file-context-menu button {
        padding: 15px;
    }
    
    /* ==================== MOBILE ADD FILE IN SIDEBAR ==================== */
    .file-icon.add-file {
        border-width: 2px;
    }
    .swipe-indicator {
        display: block;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 60px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
        z-index: 50;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .swipe-indicator.left {
        left: 5px;
    }
    
    .swipe-indicator.right {
        right: 5px;
    }
    
    .swipe-indicator.visible {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE: SMALL MOBILE ==================== */
@media (max-width: 380px) {
    :root {
        --header-height: 55px;
        --bottom-nav-height: 55px;
        --mobile-toggle-height: 45px;
    }
    
    .welcome-content {
        padding: 20px 12px;
    }
    
    .welcome-header h1 {
        font-size: 22px;
    }
    
    .welcome-subtitle {
        font-size: 13px;
    }
    
    .project-card {
        padding: 12px;
    }
    
    .project-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .project-card h3 {
        font-size: 15px;
    }
    
    .file-icon {
        width: 42px;
        height: 42px;
    }
    
    .file-icon i {
        font-size: 20px;
    }
    
    .mobile-toggle-btn {
        font-size: 14px;
    }
    
    .code-editor {
        font-size: 13px;
    }
    
    .start-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --header-height: 50px;
        --bottom-nav-height: 50px;
        --mobile-toggle-height: 40px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .left-sidebar {
        height: var(--bottom-nav-height);
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
    }
    
    .file-icon i {
        font-size: 18px;
    }
    
    .editor-header {
        padding: 6px 10px;
    }
    
    .mobile-toggle-btn {
        height: var(--mobile-toggle-height);
        font-size: 13px;
    }
    
    .welcome-modal {
        padding-top: 55px;
    }
    
    .welcome-content {
        max-height: calc(100vh - 60px);
    }
}

/* ==================== KEYBOARD OPEN STATE ==================== */
@media (max-width: 768px) {
    .keyboard-open .left-sidebar {
        display: none;
    }
    
    .keyboard-open .mobile-toggle-btn {
        display: none;
    }
    
    .keyboard-open .editor-section,
    .keyboard-open .preview-section {
        bottom: 0;
    }
    
    .keyboard-open .editor-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

/* =========================================================================
   DROPDOWN NAVIGATION
   ========================================================================= */
.main-menu {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    align-items: center;
}
.nav-dropdown {
    position: relative;
}
.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-trigger i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}
/* Dropdown контент - БІЛЬШИЙ */
.dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 340px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}
/* Стрілочка зверху */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}
.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Елементи dropdown - БІЛЬШІ */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: var(--gray-100, #f5f5f5);
}
.dropdown-item i {
    font-size: 26px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gray-100, #f5f5f5);
    color: var(--black);
    transition: all 0.2s ease;
}
/* Кольори для іконок при hover */
.dropdown-item:hover i {
    background: var(--lime);
    color: var(--black);
}
.dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 18px;
}
.dropdown-desc {
    display: block;
    font-size: 14px;
    color: var(--gray-500, #6c757d);
}
/* Header actions group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Точка-розділювач */
.nav-dot {
    color: var(--gray-400, #adb5bd);
    font-size: 10px;
    user-select: none;
}

/* =========================================================================
   RESPONSIVE - ховаємо dropdown на мобільних
   ========================================================================= */
@media (max-width: 1024px) {
    .nav-dropdown .dropdown-content {
        display: none;
    }

    .dropdown-trigger i {
        display: none;
    }

    .nav-dot {
        display: none;
    }
}

/* =========================================================================
   PROJECT LIMIT MODAL - Koodi Club
   ========================================================================= */
.limit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.limit-modal-overlay.active {
    opacity: 1;
}

.limit-modal {
    background: var(--white);
    border-radius: 24px;
    border: 4px solid var(--black);
    box-shadow: 12px 12px 0 var(--black);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

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

.limit-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.limit-modal h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
}

.limit-modal-text {
    font-size: 16px;
    color: var(--darkgray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.limit-modal-text strong {
    color: var(--black);
}

.limit-modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.limit-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f5f5f5;
    border-radius: 16px;
    border: 2px solid transparent;
    text-align: left;
    transition: all 0.2s ease;
}

.limit-option:hover {
    border-color: var(--black);
}

.limit-option.premium {
    background: var(--lime);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--black);
}

.limit-option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.limit-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.limit-option-text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.limit-option-text span {
    font-size: 14px;
    color: var(--darkgray);
}

.limit-option.premium .limit-option-text span {
    color: var(--black);
    opacity: 0.8;
}

.limit-modal-buttons {
    display: flex;
    gap: 12px;
}

.limit-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 16px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.limit-btn.secondary {
    background: var(--white);
    color: var(--black);
}

.limit-btn.secondary:hover {
    background: #f0f0f0;
    box-shadow: 4px 4px 0 var(--black);
    transform: translateY(-2px);
}

.limit-btn.primary {
    background: var(--lime);
    color: var(--black);
    box-shadow: 4px 4px 0 var(--black);
}

.limit-btn.primary:hover {
    background: var(--pink);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--black);
}

.limit-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--black);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.limit-modal-close:hover {
    background: var(--pink);
    transform: rotate(90deg);
}

@media (max-width: 500px) {
    .limit-modal {
        padding: 30px 20px;
    }

    .limit-modal h2 {
        font-size: 20px;
    }

    .limit-modal-buttons {
        flex-direction: column;
    }

    .limit-option {
        padding: 14px 16px;
    }

    .limit-option-icon {
        font-size: 28px;
    }
}
