.wizard-container {
    display: flex;
    flex-direction: column;
}

.wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    flex-shrink: 0;
}

.wizard-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.wizard-header p {
    opacity: 0.9;
    font-size: 18px;
}

.progress-container {
    padding: 1em;
    border-bottom: 1px solid var(--slim-main-dark-trans);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--slim-main-dark-extra-trans);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
    max-width: 150px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--slim-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slim-main-dark-trans);
    font-size: 20px;
    margin-bottom: 15px;
    border: 2px solid var(--slim-main-dark-extra-trans);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, var(--slim-success-light), var(--slim-success-button), var(--slim-success-dark));
    color: white;
    border: 2px solid var(--slim-gray);
    transform: scale(1.1);
}

.step.active .step-circle {
    background: linear-gradient(
            to bottom,
            #2a3d94,
            var(--slim-standard-button),
            #4b63c9
    );
    color: white;
    border: 2px solid var(--slim-gray);
    transform: scale(1.1);
}

.step-label {
    font-size: 1em;
    color: var(--slim-main-dark-trans);
    text-align: center;
    line-height: 1.3;
}

.step.active .step-label {
    color: var(--slim-standard-button);
    font-weight: 600;
}

.step-content {
    width: 100%;
    padding: 1em;
}

.step-content.gray {
    background: var(--slim-gray);
}

.step-content.no-padding {
    padding: 0;
}

.slim-card-body.no-padding {
    padding: 0;
}

.step-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.step-content > p {
    text-align: center;
    margin-bottom: 40px;
    color: #6c757d;
    font-size: 18px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.radio-option-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.radio-option-content small {
    color: #6c757d;
    font-size: 14px;
}

.wizard-actions {
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 117, 125, 0.3);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.summary-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.summary-item .label {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-item .value {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.wizard-step {
    max-width: 1100px;
    margin: 0 auto;
}

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

.title {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.title h1 {
    margin: 0;
    font-size: 20px;
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
}

.tags-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--gap);
    align-items: start;
}

/* LEFT: tag list */
.tag-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
}

.controls {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.btn.ghost {
    background: transparent;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chip {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--chip-bg);
    cursor: pointer;
    border: 1px solid var(--slim-standard-button);
    transition: all .15s ease;
    min-width: 150px;
}

.chip-text {
    color: var(--slim-standard-button);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.chip.inactive:hover {
    transform: none;
    box-shadow: none;
    cursor: auto;
}

.chip:hover {
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08);
}

.chip .meta {
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
    margin-left: auto;
}

/* RIGHT: translation editor */
.tag-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-editor .tabs-container {
    border-radius: 5px;
    box-shadow: none;
}

.tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

/* Radio tabs CSS-only */
.tab-input {
    display: none;
}

.tab-label {
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
}

.tab-input:checked + .tab-label {
    background: linear-gradient(90deg, #eef2ff, #eef6ff);
    color: var(--chip-text);
    border-color: rgba(79, 70, 229, 0.12);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.06);
}

.panel {
    display: none;
    padding-top: 8px;
}

.tag-metadata {
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.side-panel-body .tag-metadata {
    padding: 0 0 1em;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.field input:focus {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.18);
}

.panel-footer {
    margin-top: auto;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1em 1em 1em;
}

.draggable-tag-item {
    padding: 6px 10px;
    margin: 5px 0;
    cursor: grab;
    justify-content: space-between;
}

.tags-drag-and-drop {
    min-height: 160px;
    padding: 10px;
    border-radius: 5px;
    border: 2px dashed var(--slim-main-dark-trans);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--slim-main-dark-trans);
    transition: background-color 0.3s ease;
    flex-wrap: wrap;
    gap: 5px;
}

.tags-drag-and-drop.over {
    background-color: #f0f8ff;
}

.btn-close-red {
    border: none;
    color: #fff;
    background-color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-close-red:hover {
    background-color: #c0392b; /* rojo más oscuro */
    transform: scale(1.1);
}

.btn-close-red:active {
    background-color: #a93226; /* rojo aún más oscuro */
    transform: scale(0.95);
}

/* PROJECTS PREVIEW */
.project-preview-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 10px;
}

.project-preview-layout h4 {
    color: var(--slim-standard-button);
}

.preview-item p {
    font-size: small;
    font-weight: 600;
}

.preview-item div {
    font-size: small;
    font-weight: 600;
}

.slim-description p {
    font-weight: normal;
}

.preview-item .slim-description a {
    color: var(--slim-standard-button);
    font-weight: 400;
}

.preview-item span {
    font-weight: normal;
}

.chip.preview-tag {
    width: fit-content;
    min-width: 0;
    cursor: default;
}

.description-preview {
    padding: 10px;
    background: var(--slim-gray);
    border-radius: 5px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.description-preview p {
    font-weight: normal;
}

.description-preview li {
    font-size: small;
    font-weight: normal;
    list-style-position: inside;
}

h5.slim-subtitle {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--slim-standard-button);
}

/* small responsive */
@media (max-width: 880px) {
    .layout {
        grid-template-columns:1fr;
    }

    .tag-list {
        order: 2;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-content {
        padding: 30px 20px;
    }

    .wizard-actions {
        padding: 30px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 30px 10px;
        justify-content: center;
    }

    .step {
        max-width: 100px;
    }

    .step-label {
        font-size: 12px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

    .wizard-header {
        padding: 30px 20px;
    }

    .wizard-header h1 {
        font-size: 24px;
    }

    .progress-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .step-content h2 {
        font-size: 22px;
    }

    .radio-option {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
}