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

input, textarea, select, button {
    color: inherit;
    font-family: inherit;
}

html {
    background: transparent !important;
    background-color: transparent !important;
}

body {
    font-family: "GTAArtDeco", Arial, sans-serif;
    background: transparent !important;
    background-color: transparent !important;
    overflow: hidden;
    user-select: none;
    color: white;
    margin: 0;
    padding: 0;
}

[data-lucide], svg.lucide {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

svg path, svg line, svg circle, svg rect, svg polyline, svg polygon {
    stroke: inherit;
}

#root {
    background: none !important;
    background-color: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#root > * {
    pointer-events: auto;
}

#root > .hidden {
    pointer-events: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes progress {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}
.animate-progress {
    animation: progress 2s linear forwards;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.hidden { display: none !important; }

.recipe-card-item {
    will-change: transform, opacity;
}

#creator-app {
    position: relative;
    z-index: 10;
    width: 1200px;
    height: 750px;
    background: rgba(9, 9, 11, 0.95);
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: auto;
}

.sidebar {
    width: 260px;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 20;
}

.sidebar-header {
    margin-bottom: 40px;
    padding: 0 4px;
    margin-top: 8px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon i, .logo-icon svg {
    color: black !important;
    stroke: black !important;
    width: 24px !important;
    height: 24px !important;
}

.logo-icon svg * { stroke: black !important; }

.logo-text h1 {
    color: white;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 4px;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-desc {
    margin-top: 24px;
    color: #6b7280;
    font-size: 10px;
    line-height: 1.6;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.nav-section-title {
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-left: 16px;
}

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-btn i, .nav-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.nav-btn svg, .nav-btn svg * { stroke: currentColor !important; }
.nav-btn:hover { color: #d1d5db; }
.nav-btn.active { color: white; }

.nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: white;
    border-radius: 999px;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    pointer-events: none;
}

.sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-badge {
    background: rgba(18, 18, 18, 0.5);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.admin-icon i, .admin-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.admin-icon svg, .admin-icon svg * { stroke: #f87171 !important; }

.admin-text { display: flex; flex-direction: column; }
.admin-label { color: #6b7280; font-size: 9px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.admin-mode { color: white; font-weight: 700; font-size: 12px; }

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.page-header {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.page-title-container { display: flex; align-items: center; gap: 16px; }
.page-title { color: white; font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }

.page-badge {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-actions { display: flex; gap: 12px; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary svg { width: 16px !important; height: 16px !important; }
.btn-secondary svg, .btn-secondary svg * { stroke: currentColor !important; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.btn-primary {
    background: white;
    border: none;
    color: black;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary svg { width: 16px !important; height: 16px !important; }
.btn-primary svg, .btn-primary svg * { stroke: black !important; }
.btn-primary:hover { background: #e5e5e5; }

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-danger svg { width: 16px !important; height: 16px !important; }
.btn-danger svg, .btn-danger svg * { stroke: currentColor !important; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.3); color: #fca5a5; }

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 32px;
    z-index: 10;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(18, 18, 18, 0.5);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.stat-card-title { color: white; font-weight: 700; font-size: 14px; }

.stat-card-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon i, .stat-card-icon svg { color: black !important; stroke: black !important; width: 16px !important; height: 16px !important; }
.stat-card-icon svg * { stroke: black !important; }
.stat-card-value { font-size: 36px; font-weight: 700; color: white; letter-spacing: -1px; }
.stat-card-desc { color: #4b5563; font-size: 10px; margin-top: 8px; }

.list-container {
    background: rgba(18, 18, 18, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
}

.list-item {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.list-item:last-child { margin-bottom: 0; }
.list-item:hover { background: rgba(26, 26, 26, 1); }
.list-item-left { display: flex; align-items: center; gap: 16px; }

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item-icon i, .list-item-icon svg { color: white !important; stroke: white !important; width: 20px !important; height: 20px !important; }
.list-item-icon svg * { stroke: white !important; }
.list-item-info h4 { color: white; font-weight: 700; font-size: 14px; }
.list-item-info p { color: #6b7280; font-size: 12px; }
.list-item-actions { display: flex; gap: 8px; }
.list-item-actions button { padding: 8px 16px; }
.empty-state { color: #6b7280; text-align: center; padding: 80px 0; }

.alert {
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-warning i, .alert-warning svg { color: #f59e0b; flex-shrink: 0; width: 16px !important; height: 16px !important; }
.alert-warning svg, .alert-warning svg * { stroke: #f59e0b !important; }
.alert-warning p { color: #fde68a; font-size: 12px; }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.modal-large { width: 700px; }
.modal-small { width: 400px; text-align: center; }
.modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.modal-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i, .modal-icon svg { color: black !important; stroke: black !important; width: 20px !important; height: 20px !important; }
.modal-icon svg * { stroke: black !important; }
.modal-title { color: white; font-size: 20px; font-weight: 700; }
.modal-subtitle { color: #6b7280; font-size: 12px; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 20px; }

.modal-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
    color: #9ca3af;
}

.modal-tab:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.modal-tab.active { background: white; color: black; }
.modal-content { flex: 1; overflow: visible; padding-right: 8px; max-height: none; position: relative; }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; padding-bottom: 16px; }

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    background: #09090b;
}

.modal-footer button { flex: 1; padding: 12px; }

.delete-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.delete-icon i, .delete-icon svg { width: 32px !important; height: 32px !important; }
.delete-icon svg, .delete-icon svg * { stroke: #f87171 !important; }
.delete-title { color: white; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.delete-message { color: #6b7280; font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: #9ca3af; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.form-group input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: #1e1e1e; }
.form-group input::placeholder { color: #4b5563; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-hint { color: #4b5563; font-size: 11px; margin-top: 6px; }
.coords-input { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.coords-input input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.coords-input input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: #1e1e1e; }
.coords-input input::placeholder { color: #4b5563; }
.coords-buttons { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.coords-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
}

.coords-btn i, .coords-btn svg { width: 12px !important; height: 12px !important; }
.coords-btn svg, .coords-btn svg * { stroke: currentColor !important; }
.coords-btn:hover { color: white; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.coords-btn-primary { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.coords-btn-primary:hover { background: rgba(59, 130, 246, 0.3); border-color: rgba(59, 130, 246, 0.5); color: #93c5fd; }

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    appearance: none;
    background: #1a1a1a;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.checkbox-group { margin-top: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: white; font-size: 13px; font-weight: 500; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: white; }

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
}

.toggle-switch:hover { background: rgba(255, 255, 255, 0.12); }
.toggle-switch.active { background: white; }

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #555;
    border-radius: 50%;
}

.toggle-switch.active::after { left: 23px; background: #09090b; }

.custom-dropdown { position: relative; width: 100%; }

.custom-dropdown-trigger {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown-trigger:hover { border-color: rgba(255, 255, 255, 0.2); background: #1e1e1e; }
.custom-dropdown-trigger.open { border-color: rgba(255, 255, 255, 0.3); }
.custom-dropdown-arrow { width: 16px; height: 16px; }
.custom-dropdown-trigger.open .custom-dropdown-arrow { transform: rotate(180deg); }

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    z-index: 999999;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.custom-dropdown-menu.open { display: block; }

.custom-dropdown-option {
    padding: 12px 16px;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-dropdown-option:hover { background: rgba(255, 255, 255, 0.05); color: white; }
.custom-dropdown-option.selected { background: rgba(255, 255, 255, 0.08); color: white; }

.tag-input-container {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    min-height: 48px;
}

.tags-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tags-list:empty { margin-bottom: 0; }
.tag { background: rgba(255, 255, 255, 0.1); color: white; padding: 6px 10px; border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.tag button { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.tag button:hover { color: #f87171; }
.tag-input-container input { background: transparent; border: none; color: white; font-size: 13px; width: 100%; outline: none; }

.access-section { margin-top: 16px; }
.access-section > label { display: block; color: #9ca3af; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.private-owner-lookup { margin-bottom: 16px; }
.private-owner-lookup label { display: block; color: #9ca3af; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.lookup-row { display: flex; gap: 8px; align-items: center; }

.lookup-row input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.lookup-row input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: #1e1e1e; }
.lookup-row input::placeholder { color: #4b5563; }
.lookup-row .btn-secondary { white-space: nowrap; flex-shrink: 0; }

.owner-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.owner-info-grid .form-group { margin-bottom: 0; }
.owner-info-grid .form-group label { display: block; color: #9ca3af; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.owner-info-grid .form-group input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
}

.owner-info-grid .form-group input:focus { outline: none; }
.access-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.access-list:empty { margin-bottom: 0; }

.access-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.access-item input {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-size: 13px;
}

.access-item input:focus { outline: none; border-color: rgba(255, 255, 255, 0.2); }
.access-item input::placeholder { color: #4b5563; }

.access-item button {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.access-item button:hover { background: rgba(239, 68, 68, 0.3); }

.add-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.add-btn i, .add-btn svg { width: 16px !important; height: 16px !important; }
.add-btn svg, .add-btn svg * { stroke: currentColor !important; }
.add-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.recipes-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.recipes-header h4 { color: white; font-size: 14px; font-weight: 700; }
.recipes-editor-list { display: flex; flex-direction: column; gap: 8px; }

.recipe-editor-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.recipe-editor-info { display: flex; align-items: center; gap: 12px; }

.recipe-editor-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-editor-name { color: white; font-weight: 600; font-size: 13px; }
.recipe-editor-meta { color: #6b7280; font-size: 11px; }
.recipe-editor-actions { display: flex; gap: 8px; flex-shrink: 0; }
.recipe-editor-actions .btn-secondary, .recipe-editor-actions .btn-danger { padding: 8px 14px; font-size: 11px; }
.ingredients-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.ingredient-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 80px auto;
    gap: 10px;
    align-items: center;
}

.ingredient-item input {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-size: 13px;
}

.ingredient-item input:focus { outline: none; border-color: rgba(255, 255, 255, 0.2); }
.ingredient-item input::placeholder { color: #4b5563; }

.ingredient-item button {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.ingredient-item button:hover { background: rgba(239, 68, 68, 0.3); }

.modal-tab-content .settings-section h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.modal-tab-content .settings-grid { display: flex; flex-direction: column; gap: 12px; }

.modal-tab-content .setting-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-tab-content .setting-info { display: flex; flex-direction: column; gap: 2px; }
.modal-tab-content .setting-label { color: white; font-size: 13px; font-weight: 600; }
.modal-tab-content .setting-desc { color: #6b7280; font-size: 11px; }

.settings-section { margin-bottom: 32px; }
.settings-section-title { color: #666; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; padding-left: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.settings-grid.single { grid-template-columns: 1fr; }

.setting-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
}

.setting-item:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.setting-item-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-item-info { flex: 1; min-width: 0; }
.setting-item-label { color: white; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.setting-item-desc { color: #555; font-size: 11px; line-height: 1.4; }
.setting-item-control { flex-shrink: 0; }
.setting-item.wide { grid-column: span 2; }
.setting-item.with-input .setting-item-header { flex-direction: column; align-items: stretch; gap: 12px; }
.setting-item.with-input .setting-item-control { width: 100%; }

.settings-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.settings-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.2); background: #0f0f0f; }
.settings-input::placeholder { color: #444; }

.settings-input-inline {
    width: 80px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.settings-input-inline:focus { outline: none; border-color: rgba(255, 255, 255, 0.2); }

.settings-info-box {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-info-box.warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.settings-info-box.warning p { color: #fde68a; font-size: 12px; }
.settings-info-box.info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); }
.settings-info-box.info p { color: #bfdbfe; font-size: 12px; }
.prop-model-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.prop-model-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: #222222;
}
.prop-model-item.selected {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.prop-model-image-container {
    width: 100%;
    height: 100px;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prop-model-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.prop-model-no-image {
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.prop-model-label {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.prop-model-name {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-family: "GTAArtDeco", Arial, sans-serif;
    text-align: center;
    word-break: break-all;
}

#bench-app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    background-color: transparent !important;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#bench-app.hidden {
    display: none !important;
}

#bench-app > * {
    pointer-events: auto;
}

.bench-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
    background: transparent !important;
}

.bench-main-panel {
    pointer-events: auto;
    position: relative;
    z-index: 10;
    display: flex;
    height: 85vh;
    width: 100%;
    max-width: 1280px;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 9, 11, 0.9);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.bench-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
}

.bench-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bench-logo {
    position: relative;
    display: flex;
    height: 56px;
    width: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.bench-logo-icon {
    width: 28px !important;
    height: 28px !important;
    color: black !important;
    stroke: black !important;
    stroke-width: 2.5px;
}

.bench-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bench-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: white;
    line-height: 1;
}

.bench-header-divider {
    height: 40px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 12px;
}

.bench-level-badge {
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
}

.bench-close-btn {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 700;
    color: #a1a1aa;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bench-close-btn:hover {
    background: white;
    color: black;
}

.bench-search-section {
    padding: 0 40px 32px;
}

.bench-search-wrapper {
    position: relative;
}

.bench-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px !important;
    height: 20px !important;
    color: #71717a;
    pointer-events: none;
}

.bench-search-input {
    display: block;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 16px 20px 48px;
    font-size: 16px;
    font-weight: 500;
    color: #e4e4e7;
    transition: all 0.2s ease;
}

.bench-search-input::placeholder {
    color: #52525b;
}

.bench-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.bench-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px 40px;
}

.bench-content-header {
    margin-bottom: 24px;
}

.bench-content-title {
    font-size: 20px;
    font-weight: 700;
    color: #fafafa;
}

.bench-content-subtitle {
    font-size: 14px;
    color: #71717a;
    margin-top: 4px;
}

.bench-recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .bench-recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bench-recipe-card {
    position: relative;
    display: flex;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 10, 0.9);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bench-recipe-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 10, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.bench-recipe-image-box {
    position: relative;
    height: 128px;
    width: 128px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
}

.bench-recipe-image {
    height: 80px;
    width: 80px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.bench-recipe-card:hover .bench-recipe-image {
    transform: scale(1.1);
    opacity: 1;
}

.bench-recipe-yield {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.bench-recipe-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}

.bench-recipe-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.bench-recipe-name {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.bench-recipe-card:hover .bench-recipe-name {
    color: #fafafa;
}

.bench-recipe-level {
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
    margin-top: 4px;
}

.bench-recipe-xp {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    background: white;
    color: black;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.bench-recipe-materials-wrapper {
    position: relative;
    margin-top: 16px;
}

.bench-recipe-materials {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 108px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.bench-recipe-materials::-webkit-scrollbar {
    width: 4px;
}

.bench-recipe-materials::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}

.bench-recipe-materials::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.bench-recipe-materials::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bench-recipe-materials-wrapper.has-overflow::after {
    content: '';
    position: absolute;
    left: 0;
    right: 6px;
    bottom: 0;
    height: 24px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.95));
    pointer-events: none;
    border-radius: 0 0 8px 8px;
    transition: opacity 0.2s ease;
}

.bench-recipe-card:hover .bench-recipe-materials-wrapper.has-overflow::after {
    opacity: 0;
}

.bench-recipe-materials-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    max-width: 300px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bench-recipe-card:hover .bench-recipe-materials-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bench-recipe-materials-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.15);
}

.bench-recipe-materials-tooltip::before {
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0a0a0a;
    z-index: 1;
}

.bench-recipe-materials-tooltip-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #71717a;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bench-recipe-materials-tooltip-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.bench-recipe-materials-tooltip-list::-webkit-scrollbar {
    width: 4px;
}

.bench-recipe-materials-tooltip-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.bench-recipe-tooltip-material {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
}

.bench-recipe-tooltip-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.bench-recipe-tooltip-name {
    flex: 1;
    color: #d4d4d8;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bench-recipe-tooltip-amount {
    color: #fafafa;
    font-weight: 700;
    font-family: "GTAArtDeco", Arial, sans-serif;
    flex-shrink: 0;
}

.bench-recipe-material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.bench-recipe-material-left {
    display: flex;
    align-items: center;
    color: #71717a;
    font-weight: 500;
}

.bench-recipe-material-left svg {
    width: 14px !important;
    height: 14px !important;
    margin-right: 8px;
}

.bench-recipe-material-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 4px;
}

.bench-recipe-material-amount {
    font-family: "GTAArtDeco", Arial, sans-serif;
    font-weight: 700;
}

.bench-recipe-material-amount.has-enough {
    color: #71717a;
}

.bench-recipe-material-amount.missing {
    color: #ef4444;
}

.bench-empty-slot {
    display: flex;
    min-height: 170px;
    height: 100%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px dashed #27272a;
    background: rgba(10, 10, 10, 0.3);
    padding: 16px;
    transition: all 0.2s ease;
}

.bench-empty-slot:hover {
    border-color: #3f3f46;
    background: rgba(10, 10, 10, 0.5);
}

.bench-empty-slot-icon {
    display: flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(39, 39, 42, 0.5);
    color: #52525b;
    transition: all 0.2s ease;
}

.bench-empty-slot:hover .bench-empty-slot-icon {
    background: #3f3f46;
    color: #71717a;
}

.bench-empty-slot-icon svg {
    width: 24px !important;
    height: 24px !important;
}

.bench-empty-slot-text {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #52525b;
}

.item-autocomplete-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 0%;
    min-width: 0;
}
.item-autocomplete-wrapper > input {
    width: 100% !important;
}

.item-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    z-index: 999999;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.item-autocomplete-dropdown.open {
    display: block;
}

.item-autocomplete-option {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.item-autocomplete-option:last-child {
    border-bottom: none;
}

.item-autocomplete-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.item-autocomplete-option:first-child {
    border-radius: 10px 10px 0 0;
}

.item-autocomplete-option:last-child {
    border-radius: 0 0 10px 10px;
}

.item-autocomplete-option:only-child {
    border-radius: 10px;
}

.item-autocomplete-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    flex-shrink: 0;
}

.item-autocomplete-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-autocomplete-label {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-autocomplete-name {
    color: #666;
    font-size: 11px;
    font-family: "GTAArtDeco", Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-autocomplete-weight {
    color: #555;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.item-autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: #555;
    font-size: 12px;
}

.item-autocomplete-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #888;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.item-browse-btn {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.item-browse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}
.item-browse-btn svg,
.item-browse-btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#item-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.item-browser-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.item-browser-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.item-browser-card.selected {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}
.item-browser-card-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
}
.item-browser-card-label {
    color: white;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-browser-card-name {
    color: #555;
    font-size: 10px;
    font-family: "GTAArtDeco", Arial, sans-serif;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-browser-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    font-size: 13px;
    padding: 40px 0;
}
